wok-6.x annotate python/receipt @ rev 9901
lxpanel: we need lymenu-data in bdeps to have a menu...
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 17 13:36:31 2011 +0200 (2011-05-17) |
parents | 02bbaa9d12ba |
children | 686120919f40 |
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 |
slaxemulator@9467 | 21 ./configure --enable-shared --with-ncurses && |
pascal@1470 | 22 make && |
slaxemulator@9467 | 23 make DESTDIR=$DESTDIR install |
pankso@18 | 24 } |
pankso@18 | 25 |
pankso@18 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 27 genpkg_rules() |
pankso@18 | 28 { |
pascal@7468 | 29 python_version=${VERSION:0:3} |
pascal@7468 | 30 mkdir -p $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 31 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 32 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@6616 | 33 # needed for mericurial to work now |
pascal@7468 | 34 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \ |
pascal@7468 | 35 $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 36 rm -f $fs/usr/bin/*-config |
pankso@18 | 37 |
pascal@7468 | 38 # Python can be symlink to python$python_version ??? |
pankso@18 | 39 #cd $fs/usr/bin |
pascal@7468 | 40 #rm python && ln -s python$python_version python |
pankso@18 | 41 } |
pankso@18 | 42 |