From 1ad23818eb731d772c44573ff90a6e896b330d88 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 14 Apr 2010 12:31:52 +0200 Subject: [PATCH] gimp: disable hal, add python subpkg. --HG-- extra : convert_revision : a575a1d8a816019d08cfb2be41b29542aa760956 --- srcpkgs/gimp/gimp-devel.template | 2 ++ srcpkgs/gimp/gimp-python.template | 28 ++++++++++++++++++++++++++++ srcpkgs/gimp/template | 17 +++++++++-------- 3 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/gimp/gimp-python.template diff --git a/srcpkgs/gimp/gimp-devel.template b/srcpkgs/gimp/gimp-devel.template index bb413491657..5260e0d2e7f 100644 --- a/srcpkgs/gimp/gimp-devel.template +++ b/srcpkgs/gimp/gimp-devel.template @@ -5,6 +5,8 @@ long_desc="${long_desc} This package contains files for development, headers, static libs, etc." +revision=1 + Add_dependency run intltool Add_dependency run pkg-config Add_dependency run gtk+-devel diff --git a/srcpkgs/gimp/gimp-python.template b/srcpkgs/gimp/gimp-python.template new file mode 100644 index 00000000000..23d4e752e41 --- /dev/null +++ b/srcpkgs/gimp/gimp-python.template @@ -0,0 +1,28 @@ +# Template file for 'gimp-python'. +# +short_desc="${sourcepkg} Python bindings" +long_desc="${long_desc} + + This package contains the Python bindings." + +Add_dependency run glibc +Add_dependency run python +Add_dependency run glib +Add_dependency run atk +Add_dependency run pango +Add_dependency run cairo +Add_dependency run freetype +Add_dependency run fontconfig +Add_dependency run gtk+ +Add_dependency run pygtk +Add_dependency run gimp + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/gimp/2.0/plug-ins + + mv ${SRCPKGDESTDIR}/usr/lib/gimp/2.0/python \ + ${DESTDIR}/usr/lib/gimp/2.0 + mv ${SRCPKGDESTDIR}/usr/lib/gimp/2.0/plug-ins/*.py \ + ${DESTDIR}//usr/lib/gimp/2.0/plug-ins +} diff --git a/srcpkgs/gimp/template b/srcpkgs/gimp/template index 7a932578b40..7eb5fe0372c 100644 --- a/srcpkgs/gimp/template +++ b/srcpkgs/gimp/template @@ -1,10 +1,11 @@ # Template build file for 'gimp'. pkgname=gimp version=2.6.8 +revision=1 distfiles="ftp://ftp.gimp.org/pub/gimp/v2.6/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--without-aa --without-gvfs --without-gnomevfs ---enable-gimp-remote" +--enable-gimp-remote --without-hal" short_desc="The GNU image manipulation program" maintainer="Juan RP " checksum=d5d4218b742390157fca23a9d2cce436904546a2ea419ffeb44a5f43c99a3332 @@ -27,7 +28,8 @@ conf_files=" /etc/gimp/2.0/gimprc /etc/gimp/2.0/controllerrc" -subpackages="$pkgname-devel" +subpackages="gimp-devel gimp-python" + Add_dependency run atk Add_dependency run glib Add_dependency run pango @@ -39,7 +41,6 @@ Add_dependency run glibc Add_dependency run lcms Add_dependency run alsa-lib Add_dependency run dbus-glib -Add_dependency run hal Add_dependency run dbus-libs Add_dependency run jpeg Add_dependency run libexif @@ -64,16 +65,16 @@ Add_dependency run expat Add_dependency run librsvg Add_dependency run gegl Add_dependency run babl -Add_dependency build intltool + Add_dependency build pkg-config -Add_dependency build gtk+-devel -Add_dependency build atk-devel +Add_dependency build intltool Add_dependency build glib-devel +Add_dependency build atk-devel Add_dependency build pango-devel Add_dependency build cairo-devel Add_dependency build freetype-devel Add_dependency build fontconfig-devel -Add_dependency build glibc-devel +Add_dependency build gtk+-devel Add_dependency build lcms-devel Add_dependency build alsa-lib-devel Add_dependency build dbus-glib-devel @@ -101,7 +102,7 @@ Add_dependency build expat-devel Add_dependency build librsvg-devel Add_dependency build gegl-devel Add_dependency build babl-devel -Add_dependency full pygtk +Add_dependency build pygtk-devel pre_configure() {