wok annotate python/receipt @ rev 10542
glade-perl: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 19:01:52 2011 +0200 (2011-05-25) |
parents | 686120919f40 |
children | ba7621a1b976 |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="python" |
slaxemulator@7446 | 4 VERSION="2.7.1" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="The Python programming language." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@18 | 8 SOURCE="Python" |
pankso@5251 | 9 DEPENDS="openssl bzlib readline sqlite zlib ncursesw" |
pankso@18 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@18 | 11 WEB_SITE="http://www.python.org/" |
pankso@18 | 12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" |
pankso@18 | 13 |
pankso@18 | 14 # Rules to configure and make the package. |
pankso@18 | 15 compile_rules() |
pankso@18 | 16 { |
pankso@18 | 17 cd $src |
slaxemulator@9611 | 18 # Fix urllib Security Vulnerability |
slaxemulator@9611 | 19 # http://blog.python.org/2011/04/urllib-security-vulnerability-fixed.html |
slaxemulator@9611 | 20 patch -Np1 -i $stuff/CVE-2011-1521.patch |
pankso@10364 | 21 ./configure --enable-shared \ |
pankso@10364 | 22 --build=$HOST_SYSTEM \ |
pankso@10364 | 23 --host=$HOST_SYSTEM && |
slaxemulator@10327 | 24 make && make DESTDIR=$DESTDIR install |
pankso@18 | 25 } |
pankso@18 | 26 |
pankso@18 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 28 genpkg_rules() |
pankso@18 | 29 { |
pascal@7468 | 30 python_version=${VERSION:0:3} |
pascal@7468 | 31 mkdir -p $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 32 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 33 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@6616 | 34 # needed for mericurial to work now |
pascal@7468 | 35 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \ |
pascal@7468 | 36 $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 37 rm -f $fs/usr/bin/*-config |
pankso@18 | 38 |
pascal@7468 | 39 # Python can be symlink to python$python_version ??? |
pankso@18 | 40 #cd $fs/usr/bin |
pascal@7468 | 41 #rm python && ln -s python$python_version python |
pankso@18 | 42 } |
pankso@18 | 43 |