wok-next view gnome-python/receipt @ rev 20332
Up exosip, httpfs-fuse, libvncserver, upx; add upx391 (for httpfs-fuse)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 15 14:21:32 2017 +0200 (2017-11-15) |
parents | 16df76e1fc6a |
children | d43bf7aae921 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gnome-python"
4 VERSION="2.28.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Python bindings for GNOME."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnome.org/"
11 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
13 BUILD_DEPENDS="python-dev pygobject-dev pygtk-dev libgnome-dev audiofile \
14 esound libxml2-dev"
15 SPLIT="gnome-python gnome-python-dev python-gconf"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --libexecdir=/usr/lib/$PACKAGE \
22 --sysconfdir=/etc/gnome \
23 --disable-pam $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 case $PACKAGE in
31 gnome-python)
32 DEPENDS="python pygobject pygtk libgnome"
33 mkdir -p $fs/usr/share
34 cp -a $install/usr/share/pygtk $fs/usr/share
35 cp -a $install/usr/lib $fs/usr
36 rm -rf $fs/usr/lib/pkgconfig
37 rm -rf $fs/usr/lib/gnome-vfs-2.0/modules/*a
38 ;;
39 gnome-python-dev)
40 CAT="development|Python bindings for GNOME, development files."
41 DEPENDS="gnome-python pkg-config"
42 mkdir -p $fs/usr/lib/gnome-vfs-2.0/modules
43 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
44 cp -a $install/usr/lib/gnome-vfs-2.0/modules/*.so $fs/usr/lib/gnome-vfs-2.0/modules
45 cp -a $install/usr/include $fs/usr
46 ;;
47 python-gconf)
48 CAT="system-tools|Python bindings for gconf."
49 _PYTHONVER=$(grep ^VERSION= $WOK/python/receipt | cut -d "=" -f2 | sed -e 's/"//g')
50 mkdir -p $fs/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0
51 cp -a $install/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0/gconf.so \
52 $fs/usr/lib/python${_PYTHONVER%.*}/site-packages/gtk-2.0
53 ;;
54 esac
55 }