wok view python/receipt @ rev 14559

thunderbird-langpack-pt_PT: Up to 17.0.6esr
author Dominique Corbex <domcox@slitaz.org>
date Thu May 23 10:10:42 2013 +0200 (2013-05-23)
parents 25462b421cd8
children 6a489592a614
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"
13 DEPENDS="openssl bzlib readline sqlite zlib ncursesw"
14 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \
15 ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev"
16 SUGGESTED="tcl tk"
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 }