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