# HG changeset patch # User Christopher Rogers # Date 1293152377 0 # Node ID 8f61ae7039d153bb4bb4635a8a8a4d4d899f55e0 # Parent 0ed652eb0c62a15960fe1e620f802080704e8df6 Add gnome-python. diff -r 0ed652eb0c62 -r 8f61ae7039d1 gnome-python/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnome-python/receipt Fri Dec 24 00:59:37 2010 +0000 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="gnome-python" +VERSION="2.28.1" +CATEGORY="system-tools" +SHORT_DESC="Python bindings for GNOME (only gconf)." +MAINTAINER="pankso@slitaz.org" +DEPENDS="python pygtk GConf python-gconf pyorbit libgnomecanvas" +BUILD_DEPENDS="python-dev pygtk-dev GConf-dev libbonobo-dev pyorbit \ +libgnomecanvas-dev" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.gnome.org/" +WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./waf configure --prefix=/usr \ + --enable-modules="gconf,bonobo,bonobo.ui,gnome,gnomecanvas" && + ./waf build && + ./waf install --destdir=$PWD/_pkg +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + # We provide devel file with this pkg. Maybe one day we will have + # gnome-python-dev and more bindings such as libgnome. + mkdir -p $fs/usr/lib $fs/usr/share + cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib + cp -a $_pkg/usr/lib/python* $fs/usr/lib + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/share/pygtk $fs/usr/share + # GConf module goes in python-gconf + rm $fs/usr/lib/python*/site-packages/gtk-*/gconf.so +} diff -r 0ed652eb0c62 -r 8f61ae7039d1 python-gconf/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-gconf/receipt Fri Dec 24 00:59:37 2010 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="python-gconf" +VERSION="2.28.1" +CATEGORY="system-tools" +SHORT_DESC="Python bindings for gconf." +MAINTAINER="pankso@slitaz.org" +DEPENDS="python GConf" +WANTED="gnome-python" +WEB_SITE="http://www.gnome.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _PYTHONVER=$(grep ^VERSION= $WOK/python/receipt | cut -d "=" -f2 | sed -e 's/"//g') + mkdir -p $fs/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0 + cp -a $_pkg/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0/gconf.so \ + $fs/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0 +}