wok-next view pygtk/receipt @ rev 6594
fix python path
| author | Pascal Bellard <pascal.bellard@slitaz.org> | 
|---|---|
| date | Sat Oct 09 17:19:46 2010 +0200 (2010-10-09) | 
| parents | 5921dc28d8c6 | 
| children | 66d952425df7 | 
 line source
     1 # SliTaz package receipt.
     3 PACKAGE="pygtk"
     4 VERSION="2.16.0"
     5 CATEGORY="development"
     6 SHORT_DESC="GTK+ for Python"
     7 MAINTAINER="erjo@slitaz.org"
     8 DEPENDS="python pycairo pygobject expat gtk+ libglade libxml2 xorg-libX11 \
     9 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdmcp xorg-libXext \
    10 xorg-libXfixes xorg-libXinerama xorg-libXrandr xorg-libXrender \
    11 xorg-libXdamage libffi "
    12 BUILD_DEPENDS="pygobject-dev pycairo-dev libglade-dev python-dev xcb-util-dev expat-dev"
    13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
    14 WEB_SITE="http://www.pygtk.org/"
    15 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/pygtk/${VERSION%.*}/$TARBALL"
    18 # Rules to configure and make the package.
    19 compile_rules()
    20 {
    21 	cd $src
    22 	./configure --prefix=/usr \
    23 	 --infodir=/usr/share/info \
    24 	 --disable-docs \
    25 	 --mandir=/usr/share/man $CONFIGURE_ARGS &&
    26 	make &&
    27 	make DESTDIR=$PWD/_pkg install
    28 }
    30 # Rules to gen a SliTaz package suitable for Tazpkg.
    31 genpkg_rules()
    32 {
    33 	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    34 	mkdir -p $fs/usr/lib
    35 	cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib
    36 }