wok-next view python/receipt @ rev 14959
evas: fix bdeps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 19:35:08 2013 +0200 (2013-08-08) |
parents | fc917d308352 |
children | bf4a09ef1d2e |
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 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 gdbm"
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 $install/usr/bin $fs/usr
40 cp -a $install/usr/lib $fs/usr
41 # needed for mericurial to work now
42 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \
43 $fs/usr/include/${PACKAGE}$python_version
44 rm -f $fs/usr/bin/*-config
45 }