wok-current annotate python/receipt @ rev 10327

python: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun May 22 00:49:28 2011 +0000 (2011-05-22)
parents 9e8cd7598a81
children 1596b5b5bd81
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@10327 21 ./configure --enable-shared --with-ncurses $CONFIGURE_ARGS &&
slaxemulator@10327 22 make && make DESTDIR=$DESTDIR install
pankso@18 23 }
pankso@18 24
pankso@18 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 26 genpkg_rules()
pankso@18 27 {
pascal@7468 28 python_version=${VERSION:0:3}
pascal@7468 29 mkdir -p $fs/usr/include/${PACKAGE}$python_version
pankso@18 30 cp -a $_pkg/usr/bin $fs/usr
pankso@18 31 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@6616 32 # needed for mericurial to work now
pascal@7468 33 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
pascal@7468 34 $fs/usr/include/${PACKAGE}$python_version
pankso@18 35 rm -f $fs/usr/bin/*-config
pankso@18 36
pascal@7468 37 # Python can be symlink to python$python_version ???
pankso@18 38 #cd $fs/usr/bin
pascal@7468 39 #rm python && ln -s python$python_version python
pankso@18 40 }
pankso@18 41