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