wok-4.x view python/receipt @ rev 12282
mc: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 14 08:07:25 2012 +0200 (2012-05-14) |
parents | 3ab0e975f37e |
children | fbe5ef3d3083 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python"
4 VERSION="2.7.2"
5 CATEGORY="development"
6 SHORT_DESC="The Python programming language."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="Python"
9 TARBALL="$SOURCE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.python.org/"
11 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
12 SUGGESTED="tcl tk"
14 DEPENDS="openssl bzlib readline sqlite zlib ncursesw"
15 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev ncursesw-dev tcl-dev \
16 tk-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 # Temporary workaround for FS#22322
23 # See http://bugs.python.org/issue10835 for upstream report
24 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
25 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
26 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
27 ./configure \
28 --enable-shared \
29 --build=$HOST_SYSTEM \
30 --host=$HOST_SYSTEM &&
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 python_version=${VERSION:0:3}
38 mkdir -p $fs/usr/include/${PACKAGE}$python_version
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/lib $fs/usr
41 # needed for mericurial to work now
42 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
43 $fs/usr/include/${PACKAGE}$python_version
44 rm -f $fs/usr/bin/*-config
46 # Python can be symlink to python$python_version ???
47 #cd $fs/usr/bin
48 #rm python && ln -s python$python_version python
49 }