wok-4.x rev 7788
Add gnome-python.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Dec 24 00:59:37 2010 +0000 (2010-12-24) |
parents | 0ed652eb0c62 |
children | e1a68e3741e2 |
files | gnome-python/receipt python-gconf/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gnome-python/receipt Fri Dec 24 00:59:37 2010 +0000 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gnome-python" 1.7 +VERSION="2.28.1" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Python bindings for GNOME (only gconf)." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="python pygtk GConf python-gconf pyorbit libgnomecanvas" 1.12 +BUILD_DEPENDS="python-dev pygtk-dev GConf-dev libbonobo-dev pyorbit \ 1.13 +libgnomecanvas-dev" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.15 +WEB_SITE="http://www.gnome.org/" 1.16 +WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./waf configure --prefix=/usr \ 1.23 + --enable-modules="gconf,bonobo,bonobo.ui,gnome,gnomecanvas" && 1.24 + ./waf build && 1.25 + ./waf install --destdir=$PWD/_pkg 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + # We provide devel file with this pkg. Maybe one day we will have 1.32 + # gnome-python-dev and more bindings such as libgnome. 1.33 + mkdir -p $fs/usr/lib $fs/usr/share 1.34 + cp -a $_pkg/usr/lib/pkgconfig $fs/usr/lib 1.35 + cp -a $_pkg/usr/lib/python* $fs/usr/lib 1.36 + cp -a $_pkg/usr/include $fs/usr 1.37 + cp -a $_pkg/usr/share/pygtk $fs/usr/share 1.38 + # GConf module goes in python-gconf 1.39 + rm $fs/usr/lib/python*/site-packages/gtk-*/gconf.so 1.40 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/python-gconf/receipt Fri Dec 24 00:59:37 2010 +0000 2.3 @@ -0,0 +1,19 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="python-gconf" 2.7 +VERSION="2.28.1" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="Python bindings for gconf." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +DEPENDS="python GConf" 2.12 +WANTED="gnome-python" 2.13 +WEB_SITE="http://www.gnome.org/" 2.14 + 2.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.16 +genpkg_rules() 2.17 +{ 2.18 + _PYTHONVER=$(grep ^VERSION= $WOK/python/receipt | cut -d "=" -f2 | sed -e 's/"//g') 2.19 + mkdir -p $fs/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0 2.20 + cp -a $_pkg/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0/gconf.so \ 2.21 + $fs/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0 2.22 +}