wok annotate python/receipt @ rev 15378
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 19 13:53:26 2013 +0000 (2013-10-19) |
parents | bf4a09ef1d2e |
children | 61bec0518c8c |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="python" |
slaxemulator@14609 | 4 VERSION="2.7.5" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="The Python programming language." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 8 LICENSE="PSL" |
pankso@18 | 9 SOURCE="Python" |
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 |
slaxemulator@14609 | 14 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm" |
pascal@12990 | 15 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \ |
pascal@13403 | 16 ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev" |
pascal@12990 | 17 SUGGESTED="tcl tk" |
pankso@10807 | 18 |
pankso@18 | 19 # Rules to configure and make the package. |
pankso@18 | 20 compile_rules() |
pankso@18 | 21 { |
pankso@18 | 22 cd $src |
slaxemulator@10975 | 23 # Temporary workaround for FS#22322 |
slaxemulator@10975 | 24 # See http://bugs.python.org/issue10835 for upstream report |
slaxemulator@10975 | 25 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c |
slaxemulator@10975 | 26 # Enable built-in SQLite3 module to load extensions (fix FS#22122) |
slaxemulator@10975 | 27 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py |
pankso@10807 | 28 ./configure \ |
pankso@10807 | 29 --enable-shared \ |
pankso@10364 | 30 --build=$HOST_SYSTEM \ |
pankso@10364 | 31 --host=$HOST_SYSTEM && |
slaxemulator@10327 | 32 make && make DESTDIR=$DESTDIR install |
pankso@18 | 33 } |
pankso@18 | 34 |
pankso@18 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 36 genpkg_rules() |
pankso@18 | 37 { |
pascal@7468 | 38 python_version=${VERSION:0:3} |
pascal@7468 | 39 mkdir -p $fs/usr/include/${PACKAGE}$python_version |
slaxemulator@14609 | 40 cp -a $install/usr/bin $fs/usr |
slaxemulator@14609 | 41 cp -a $install/usr/lib $fs/usr |
slaxemulator@6616 | 42 # needed for mericurial to work now |
slaxemulator@14609 | 43 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \ |
pascal@7468 | 44 $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 45 rm -f $fs/usr/bin/*-config |
pankso@18 | 46 } |
pankso@18 | 47 |