From 0596d4f941b478e1dcf243a2fc64b0d9d432e139 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 5 Mar 2010 16:01:54 +0100 Subject: [PATCH] pygtk: add -devel subpkg, bumprev. --HG-- extra : convert_revision : 14abb7765e7473da3c349ba870084e312c2825fd --- srcpkgs/pygtk-devel | 1 + srcpkgs/pygtk/pygtk-devel.template | 15 +++++++++++++++ srcpkgs/pygtk/template | 12 ++++++++---- 3 files changed, 24 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/pygtk-devel create mode 100644 srcpkgs/pygtk/pygtk-devel.template diff --git a/srcpkgs/pygtk-devel b/srcpkgs/pygtk-devel new file mode 120000 index 0000000000..8f91ed0696 --- /dev/null +++ b/srcpkgs/pygtk-devel @@ -0,0 +1 @@ +pygtk \ No newline at end of file diff --git a/srcpkgs/pygtk/pygtk-devel.template b/srcpkgs/pygtk/pygtk-devel.template new file mode 100644 index 0000000000..20ade2650e --- /dev/null +++ b/srcpkgs/pygtk/pygtk-devel.template @@ -0,0 +1,15 @@ +# Template file for 'pygtk-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run pygtk + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/{include,share,bin} ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/{pkgconfig,pygtk} ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/pygtk/template b/srcpkgs/pygtk/template index 22c6088450..66bf8b4a89 100644 --- a/srcpkgs/pygtk/template +++ b/srcpkgs/pygtk/template @@ -1,7 +1,7 @@ # Template file for 'pygtk' pkgname=pygtk version=2.16.0 -revision=1 +revision=2 distfiles="${GNOME_SITE}/$pkgname/2.16/$pkgname-$version.tar.bz2" build_style=gnu_configure short_desc="Python bindings for the GTK+ toolkit" @@ -10,7 +10,10 @@ checksum=7fae5e01af217a01738eae41c38ad7f86d1f538f444300d0fa2847aafb7444a8 long_desc=" Pygtk is a set of Python bindings for the GTK+ toolkit." +subpackages="pygtk-devel" + # XXX: missing python-numpy build dep +Add_dependency run glibc Add_dependency run gtk+ Add_dependency run atk Add_dependency run glib @@ -18,10 +21,11 @@ Add_dependency run pango Add_dependency run cairo Add_dependency run freetype Add_dependency run fontconfig -Add_dependency run glibc Add_dependency run libglade Add_dependency run libxml2 Add_dependency run python +Add_dependency run pygobject +Add_dependency run pycairo Add_dependency build pkg-config Add_dependency build python-devel Add_dependency build gtk+-devel @@ -34,8 +38,8 @@ Add_dependency build fontconfig-devel Add_dependency build glibc-devel Add_dependency build libglade-devel Add_dependency build libxml2-devel -Add_dependency full pygobject -Add_dependency full pycairo +Add_dependency build pygobject-devel +Add_dependency build pycairo-devel post_install() {