wok-6.x annotate python/receipt @ rev 12794
Up: slitaz-base-files (5.2.1) Bunch of new functions in libs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 17 09:12:52 2012 +0200 (2012-05-17) |
parents | 3ab0e975f37e |
children | 25462b421cd8 |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="python" |
slaxemulator@10975 | 4 VERSION="2.7.2" |
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@12477 | 14 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev ncursesw-dev tcl-dev \ |
pankso@12477 | 15 tk-dev" |
pankso@10807 | 16 |
pankso@18 | 17 # Rules to configure and make the package. |
pankso@18 | 18 compile_rules() |
pankso@18 | 19 { |
pankso@18 | 20 cd $src |
slaxemulator@10975 | 21 # Temporary workaround for FS#22322 |
slaxemulator@10975 | 22 # See http://bugs.python.org/issue10835 for upstream report |
slaxemulator@10975 | 23 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c |
slaxemulator@10975 | 24 # Enable built-in SQLite3 module to load extensions (fix FS#22122) |
slaxemulator@10975 | 25 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py |
pankso@10807 | 26 ./configure \ |
pankso@10807 | 27 --enable-shared \ |
pankso@10364 | 28 --build=$HOST_SYSTEM \ |
pankso@10364 | 29 --host=$HOST_SYSTEM && |
slaxemulator@10327 | 30 make && make DESTDIR=$DESTDIR install |
pankso@18 | 31 } |
pankso@18 | 32 |
pankso@18 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 34 genpkg_rules() |
pankso@18 | 35 { |
pascal@7468 | 36 python_version=${VERSION:0:3} |
pascal@7468 | 37 mkdir -p $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 38 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 39 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@6616 | 40 # needed for mericurial to work now |
pascal@7468 | 41 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \ |
pascal@7468 | 42 $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 43 rm -f $fs/usr/bin/*-config |
pankso@18 | 44 |
pascal@7468 | 45 # Python can be symlink to python$python_version ??? |
pankso@18 | 46 #cd $fs/usr/bin |
pascal@7468 | 47 #rm python && ln -s python$python_version python |
pankso@18 | 48 } |
pankso@18 | 49 |