wok-6.x annotate python/receipt @ rev 14909
slitaz-i18n: add slitaz-configs as bdep; slitaz-configs: back openbox menu; locale-el, locale-ru: add keyboard layout icons; locale-fr, locale-hu, locale-pt_BR: recook with openbox menu.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Aug 05 11:40:01 2013 +0300 (2013-08-05) |
parents | fc917d308352 |
children | bf4a09ef1d2e |
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" |
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 |
slaxemulator@14609 | 13 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm" |
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 |
slaxemulator@14609 | 39 cp -a $install/usr/bin $fs/usr |
slaxemulator@14609 | 40 cp -a $install/usr/lib $fs/usr |
slaxemulator@6616 | 41 # needed for mericurial to work now |
slaxemulator@14609 | 42 cp -a $install/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 } |
pankso@18 | 46 |