wok-current annotate python/receipt @ rev 16151
Add links-dfb (Links with DirectFB support)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 23:26:16 2014 +0100 (2014-03-26) |
parents | 61bec0518c8c |
children | a1b05b1a9d1d |
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@16026 | 13 #HOST_ARCH="i486 arm" |
pankso@18 | 14 |
slaxemulator@14609 | 15 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm" |
pascal@12990 | 16 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \ |
pascal@13403 | 17 ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev" |
pascal@12990 | 18 SUGGESTED="tcl tk" |
pankso@10807 | 19 |
pankso@16026 | 20 # Handle cross compilation |
pankso@16026 | 21 case "$ARCH" in |
pankso@16062 | 22 arm*) BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev ncursesw-dev \ |
pankso@16062 | 23 tcl-dev db-dev" ;; |
pankso@16026 | 24 esac |
pankso@16026 | 25 |
pankso@18 | 26 # Rules to configure and make the package. |
pankso@18 | 27 compile_rules() |
pankso@18 | 28 { |
slaxemulator@10975 | 29 # Temporary workaround for FS#22322 |
slaxemulator@10975 | 30 # See http://bugs.python.org/issue10835 for upstream report |
slaxemulator@10975 | 31 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c |
slaxemulator@10975 | 32 # Enable built-in SQLite3 module to load extensions (fix FS#22122) |
slaxemulator@10975 | 33 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py |
pankso@16026 | 34 case "$ARCH" in |
pankso@16026 | 35 arm*) |
pankso@16062 | 36 #ac_cv_file__dev_ptmx=no |
pankso@16062 | 37 #ac_cv_file__dev_ptc=no |
pankso@16062 | 38 cp -s $CONFIG_SITE . |
pankso@16062 | 39 CONFIG_SITE="$(pwd)/cook.site" |
pankso@16062 | 40 echo 'ac_cv_file__dev_ptmx=no' >> $CONFIG_SITE |
pankso@16062 | 41 echo 'ac_cv_file__dev_ptc=no' >> $CONFIG_SITE |
pankso@16026 | 42 ./configure \ |
pankso@16026 | 43 --disable-ipv6 \ |
pankso@16026 | 44 --enable-shared \ |
pankso@16026 | 45 --build=i486-slitaz-linux \ |
pankso@16026 | 46 --host=${ARCH}-slitaz-linux-gnueabi ;; |
pankso@16026 | 47 i?86) |
pankso@16026 | 48 ./configure \ |
pankso@16026 | 49 --enable-shared \ |
pankso@16026 | 50 --build=${HOST_SYSTEM} \ |
pankso@16026 | 51 --host=${HOST_SYSTEM} ;; |
pankso@16026 | 52 esac && |
slaxemulator@10327 | 53 make && make DESTDIR=$DESTDIR install |
pankso@18 | 54 } |
pankso@18 | 55 |
pankso@18 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 57 genpkg_rules() |
pankso@18 | 58 { |
pascal@7468 | 59 python_version=${VERSION:0:3} |
pascal@7468 | 60 mkdir -p $fs/usr/include/${PACKAGE}$python_version |
slaxemulator@14609 | 61 cp -a $install/usr/bin $fs/usr |
slaxemulator@14609 | 62 cp -a $install/usr/lib $fs/usr |
pankso@16062 | 63 # needed for mercurial to work now |
slaxemulator@14609 | 64 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \ |
pascal@7468 | 65 $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 66 rm -f $fs/usr/bin/*-config |
pankso@18 | 67 } |
pankso@18 | 68 |