wok-next view python/receipt @ rev 12730
Add: xosd (On Screen Display)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 05 19:03:44 2012 +0200 (2012-05-05) |
parents | 3ab0e975f37e |
children | 25462b421cd8 |
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 tcl-dev \
15 tk-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 # Temporary workaround for FS#22322
22 # See http://bugs.python.org/issue10835 for upstream report
23 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
24 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
25 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
26 ./configure \
27 --enable-shared \
28 --build=$HOST_SYSTEM \
29 --host=$HOST_SYSTEM &&
30 make && make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 python_version=${VERSION:0:3}
37 mkdir -p $fs/usr/include/${PACKAGE}$python_version
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/lib $fs/usr
40 # needed for mericurial to work now
41 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
42 $fs/usr/include/${PACKAGE}$python_version
43 rm -f $fs/usr/bin/*-config
45 # Python can be symlink to python$python_version ???
46 #cd $fs/usr/bin
47 #rm python && ln -s python$python_version python
48 }