From ea2045fa8351cf4dc3285995755ef47f02c3fe69 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 14 Feb 2011 14:08:46 +0100 Subject: [PATCH] Added gtk+3-3.0.0 build template. --- srcpkgs/gir-gtk+3 | 1 + srcpkgs/gtk+3-devel | 1 + srcpkgs/gtk+3/depends | 2 + srcpkgs/gtk+3/gir-gtk+3.template | 12 +++++ srcpkgs/gtk+3/gtk+3-devel.template | 59 +++++++++++++++++++++ srcpkgs/gtk+3/template | 66 ++++++++++++++++++++++++ xbps-src/common/mapping_shlib_binpkg.txt | 3 ++ 7 files changed, 144 insertions(+) create mode 120000 srcpkgs/gir-gtk+3 create mode 120000 srcpkgs/gtk+3-devel create mode 100644 srcpkgs/gtk+3/depends create mode 100644 srcpkgs/gtk+3/gir-gtk+3.template create mode 100644 srcpkgs/gtk+3/gtk+3-devel.template create mode 100644 srcpkgs/gtk+3/template diff --git a/srcpkgs/gir-gtk+3 b/srcpkgs/gir-gtk+3 new file mode 120000 index 00000000000..6dc54ba3851 --- /dev/null +++ b/srcpkgs/gir-gtk+3 @@ -0,0 +1 @@ +gtk+3 \ No newline at end of file diff --git a/srcpkgs/gtk+3-devel b/srcpkgs/gtk+3-devel new file mode 120000 index 00000000000..6dc54ba3851 --- /dev/null +++ b/srcpkgs/gtk+3-devel @@ -0,0 +1 @@ +gtk+3 \ No newline at end of file diff --git a/srcpkgs/gtk+3/depends b/srcpkgs/gtk+3/depends new file mode 100644 index 00000000000..ab0d9627ad7 --- /dev/null +++ b/srcpkgs/gtk+3/depends @@ -0,0 +1,2 @@ +abi_depends=">=3.0.0" +api_depends="${abi_depends}" diff --git a/srcpkgs/gtk+3/gir-gtk+3.template b/srcpkgs/gtk+3/gir-gtk+3.template new file mode 100644 index 00000000000..9fcbe58eff8 --- /dev/null +++ b/srcpkgs/gtk+3/gir-gtk+3.template @@ -0,0 +1,12 @@ +# Template file for 'gir-gtk+'. +# +short_desc="Introspection data for GTK+" +long_desc="${long_desc} + + This package contains small pieces of introspection data for the GTK+ library." + +do_install() +{ + install -d ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/girepository-1.0 ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/gtk+3/gtk+3-devel.template b/srcpkgs/gtk+3/gtk+3-devel.template new file mode 100644 index 00000000000..7ab326f7954 --- /dev/null +++ b/srcpkgs/gtk+3/gtk+3-devel.template @@ -0,0 +1,59 @@ +# Template file for 'gtk+-devel'. +# +short_desc="${sourcepkg} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc +Add_dependency run glib +Add_dependency run pango +Add_dependency run cairo +Add_dependency run gdk-pixbuf +Add_dependency run pkg-config +Add_dependency run libXext-devel +Add_dependency run libXrender-devel +Add_dependency run libXinerama-devel +Add_dependency run libXi-devel +Add_dependency run libXrandr-devel +Add_dependency run libXcursor-devel +Add_dependency run pango-devel +Add_dependency run libX11-devel +Add_dependency run libXcomposite-devel +Add_dependency run libXdamage-devel +Add_dependency run libXfixes-devel +Add_dependency run atk-devel +Add_dependency run cairo-devel +Add_dependency run gdk-pixbuf-devel +Add_dependency run libpng-devel +Add_dependency run glib-devel +Add_dependency run freetype-devel +Add_dependency run fontconfig-devel +Add_dependency run gtk+3 +Add_dependency run python + +do_install() +{ + local lver="3.0.0" + local libdirs="immodules printbackends engines" + + for dir in ${libdirs}; do + mkdir -p ${DESTDIR}/usr/lib/gtk-3.0/${lver}/${dir} + done + mkdir -p ${DESTDIR}/usr/bin + mkdir -p ${DESTDIR}/usr/share/man/man1 + mkdir -p ${DESTDIR}/usr/lib/gtk-3.0/modules + + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + for bin in gtk3-demo; do + mv ${SRCPKGDESTDIR}/usr/bin/${bin} ${DESTDIR}/usr/bin + [ ! -f ${SRCPKGDESTDIR}/usr/share/man/man1/${bin}.1 ] && \ + continue + mv ${SRCPKGDESTDIR}/usr/share/man/man1/${bin}.1 \ + ${DESTDIR}/usr/share/man/man1 + done + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/{gir-*,gtk-doc} ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/share/aclocal ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/share/gtk-3.0 ${DESTDIR}/usr/share +} diff --git a/srcpkgs/gtk+3/template b/srcpkgs/gtk+3/template new file mode 100644 index 00000000000..e37b1b1e189 --- /dev/null +++ b/srcpkgs/gtk+3/template @@ -0,0 +1,66 @@ +# Template build file for 'gtk+3'. +pkgname=gtk+3 +version=3.0.0 +wrksrc="gtk+-${version}" +distfiles="${GNOME_SITE}/gtk+/3.0/gtk+-$version.tar.bz2" +build_style=gnu_configure +configure_args="--disable-cups --disable-schemas-compile +--enable-gtk2-dependency" +short_desc="The GTK+ toolkit (v3)" +maintainer="Juan RP " +checksum=ec0729bf28f09a16e0b0a6a588556c7cee091f40426505b3694a9488bf6cbf67 +long_desc=" + GTK+ is a multi-platform toolkit for creating graphical user + interfaces. Offering a complete set of widgets, GTK+ is suitable for + projects ranging from small one-off tools to complete application + suites. + + GTK+ has been designed from the ground up to support a range of + languages, not only C/C++. Using GTK+ from languages such as Perl and + Python (especially in combination with the Glade GUI builder) provides + an effective method of rapid application development." + +triggers="gtk3-immodules gsettings-schemas" +conf_files="/etc/gtk-3.0/im-multipress.conf" +subpackages="gir-gtk+3 gtk+3-devel" + +Add_dependency run glibc +Add_dependency run glib +Add_dependency run atk +Add_dependency run pango +Add_dependency run cairo +Add_dependency run libpng +Add_dependency run fontconfig +Add_dependency run freetype +Add_dependency run gdk-pixbuf +Add_dependency run libXext +Add_dependency run libXinerama +Add_dependency run libXi +Add_dependency run libXrandr +Add_dependency run libXcursor +Add_dependency run libX11 +Add_dependency run libXcomposite +Add_dependency run libXdamage +Add_dependency run libXfixes + +Add_dependency build libXext-devel +Add_dependency build libXinerama-devel +Add_dependency build libXi-devel +Add_dependency build libXrandr-devel +Add_dependency build libXcursor-devel +Add_dependency build pango-devel +Add_dependency build libX11-devel +Add_dependency build libXcomposite-devel +Add_dependency build libXdamage-devel +Add_dependency build libXfixes-devel +Add_dependency build atk-devel +Add_dependency build cairo-devel +Add_dependency build gdk-pixbuf-devel +Add_dependency build glibc-devel +Add_dependency build libpng-devel +Add_dependency build glib-devel +Add_dependency build freetype-devel +Add_dependency build fontconfig-devel + +Add_dependency full gtk+ ">=0" # for gtk-update-icon-cache +Add_dependency full shared-mime-info diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 00a4567e8b3..e6068603c3d 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -760,3 +760,6 @@ libjson-glib-1.0.so json-glib json-glib-devel liblxc.so liblxc lxc-devel libvirt.so libvirt libvirt-devel libvirt-qemu.so libvirt libvirt-devel +libgdk-3.so gtk+3 gtk+3-devel +libgtk-3.so gtk+3 gtk+3-devel +libgailutil-3.so gtk+3 gtk+3-devel