wok-next view python/receipt @ rev 16058
tiff: add to ARM arch
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 11 22:58:46 2014 +0100 (2014-03-11) |
parents | fd4f1e692109 |
children | a29085892eee |
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="bzip2-dev readline-dev ncursesw-dev tcl-dev" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Temporary workaround for FS#22322
29 # See http://bugs.python.org/issue10835 for upstream report
30 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
31 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
32 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
33 case "$ARCH" in
34 arm*)
35 #export ac_cv_file_dev__ptmx=yes
36 ./configure \
37 --disable-ipv6 \
38 --enable-shared \
39 --build=i486-slitaz-linux \
40 --host=${ARCH}-slitaz-linux-gnueabi ;;
41 i?86)
42 ./configure \
43 --enable-shared \
44 --build=${HOST_SYSTEM} \
45 --host=${HOST_SYSTEM} ;;
46 esac &&
47 make && make DESTDIR=$DESTDIR install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 python_version=${VERSION:0:3}
54 mkdir -p $fs/usr/include/${PACKAGE}$python_version
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/lib $fs/usr
57 # needed for mericurial to work now
58 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \
59 $fs/usr/include/${PACKAGE}$python_version
60 rm -f $fs/usr/bin/*-config
61 }