wok-6.x view python/receipt @ rev 13024

aaphoto, joe, kmod, mplayer-svn, polkit-dev, polkit-pam, ruby-enterprise, wordpress, xfe-extras: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 11 16:33:12 2012 +0200 (2012-06-11)
parents 290346adb440
children fc917d308352
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"
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 }