wok-current view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="python"
4 VERSION="2.7.5"
5 CATEGORY="development"
6 SHORT_DESC="The Python programming language."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="PSL"
9 SOURCE="Python"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.python.org/"
12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
13 #HOST_ARCH="i486 arm"
15 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm"
16 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \
17 ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev"
18 SUGGESTED="tcl tk"
20 # Handle cross compilation
21 case "$ARCH" in
22 arm*) BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev ncursesw-dev \
23 tcl-dev db-dev" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Temporary workaround for FS#22322
30 # See http://bugs.python.org/issue10835 for upstream report
31 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
32 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
33 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
34 case "$ARCH" in
35 arm*)
36 #ac_cv_file__dev_ptmx=no
37 #ac_cv_file__dev_ptc=no
38 cp -s $CONFIG_SITE .
39 CONFIG_SITE="$(pwd)/cook.site"
40 echo 'ac_cv_file__dev_ptmx=no' >> $CONFIG_SITE
41 echo 'ac_cv_file__dev_ptc=no' >> $CONFIG_SITE
42 ./configure \
43 --disable-ipv6 \
44 --enable-shared \
45 --build=i486-slitaz-linux \
46 --host=${ARCH}-slitaz-linux-gnueabi ;;
47 i?86)
48 ./configure \
49 --enable-shared \
50 --build=${HOST_SYSTEM} \
51 --host=${HOST_SYSTEM} ;;
52 esac &&
53 make && make DESTDIR=$DESTDIR install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 python_version=${VERSION:0:3}
60 mkdir -p $fs/usr/include/${PACKAGE}$python_version
61 cp -a $install/usr/bin $fs/usr
62 cp -a $install/usr/lib $fs/usr
63 # needed for mercurial to work now
64 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \
65 $fs/usr/include/${PACKAGE}$python_version
66 rm -f $fs/usr/bin/*-config
67 }