wok-current annotate python/receipt @ rev 10816
apr: force apr to use /dev/*random
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Jun 06 01:57:27 2011 +0200 (2011-06-06) |
parents | 1596b5b5bd81 |
children | 3ab0e975f37e |
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@18 | 9 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@18 | 10 WEB_SITE="http://www.python.org/" |
pankso@18 | 11 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" |
pankso@18 | 12 |
pankso@10807 | 13 DEPENDS="openssl bzlib readline sqlite zlib ncursesw" |
pankso@10807 | 14 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev ncursesw-dev" |
pankso@10807 | 15 |
pankso@18 | 16 # Rules to configure and make the package. |
pankso@18 | 17 compile_rules() |
pankso@18 | 18 { |
pankso@18 | 19 cd $src |
slaxemulator@9611 | 20 # Fix urllib Security Vulnerability |
slaxemulator@9611 | 21 # http://blog.python.org/2011/04/urllib-security-vulnerability-fixed.html |
slaxemulator@9611 | 22 patch -Np1 -i $stuff/CVE-2011-1521.patch |
pankso@10807 | 23 ./configure \ |
pankso@10807 | 24 --enable-shared \ |
pankso@10364 | 25 --build=$HOST_SYSTEM \ |
pankso@10364 | 26 --host=$HOST_SYSTEM && |
slaxemulator@10327 | 27 make && make DESTDIR=$DESTDIR install |
pankso@18 | 28 } |
pankso@18 | 29 |
pankso@18 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 31 genpkg_rules() |
pankso@18 | 32 { |
pascal@7468 | 33 python_version=${VERSION:0:3} |
pascal@7468 | 34 mkdir -p $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 35 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 36 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@6616 | 37 # needed for mericurial to work now |
pascal@7468 | 38 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \ |
pascal@7468 | 39 $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 40 rm -f $fs/usr/bin/*-config |
pankso@18 | 41 |
pascal@7468 | 42 # Python can be symlink to python$python_version ??? |
pankso@18 | 43 #cd $fs/usr/bin |
pascal@7468 | 44 #rm python && ln -s python$python_version python |
pankso@18 | 45 } |
pankso@18 | 46 |