wok view python/receipt @ rev 15979
binutils: add to ARM arch and clean receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Feb 28 22:37:42 2014 +0100 (2014-02-28) |
parents | bf4a09ef1d2e |
children | 61bec0518c8c |
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"
14 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm"
15 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \
16 ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev"
17 SUGGESTED="tcl tk"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 # Temporary workaround for FS#22322
24 # See http://bugs.python.org/issue10835 for upstream report
25 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
26 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
27 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
28 ./configure \
29 --enable-shared \
30 --build=$HOST_SYSTEM \
31 --host=$HOST_SYSTEM &&
32 make && make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 python_version=${VERSION:0:3}
39 mkdir -p $fs/usr/include/${PACKAGE}$python_version
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib $fs/usr
42 # needed for mericurial to work now
43 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \
44 $fs/usr/include/${PACKAGE}$python_version
45 rm -f $fs/usr/bin/*-config
46 }