wok-next view python/receipt @ rev 11083
Up: claws-mail-spam_report to 0.3.14.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Oct 17 01:56:28 2011 +0000 (2011-10-17) |
parents | ba7621a1b976 |
children | 290346adb440 |
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 ncursesw-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 # Temporary workaround for FS#22322
21 # See http://bugs.python.org/issue10835 for upstream report
22 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
23 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
24 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
25 ./configure \
26 --enable-shared \
27 --build=$HOST_SYSTEM \
28 --host=$HOST_SYSTEM &&
29 make && make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 python_version=${VERSION:0:3}
36 mkdir -p $fs/usr/include/${PACKAGE}$python_version
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib $fs/usr
39 # needed for mericurial to work now
40 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
41 $fs/usr/include/${PACKAGE}$python_version
42 rm -f $fs/usr/bin/*-config
44 # Python can be symlink to python$python_version ???
45 #cd $fs/usr/bin
46 #rm python && ln -s python$python_version python
47 }