wok view python/receipt @ rev 10928
screen: add vertical split
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Aug 18 08:32:00 2011 +0200 (2011-08-18) |
parents | 1596b5b5bd81 |
children | 3ab0e975f37e |
line source
1 # SliTaz package receipt.
3 PACKAGE="python"
4 VERSION="2.7.1"
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 # Fix urllib Security Vulnerability
21 # http://blog.python.org/2011/04/urllib-security-vulnerability-fixed.html
22 patch -Np1 -i $stuff/CVE-2011-1521.patch
23 ./configure \
24 --enable-shared \
25 --build=$HOST_SYSTEM \
26 --host=$HOST_SYSTEM &&
27 make && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 python_version=${VERSION:0:3}
34 mkdir -p $fs/usr/include/${PACKAGE}$python_version
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/lib $fs/usr
37 # needed for mericurial to work now
38 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
39 $fs/usr/include/${PACKAGE}$python_version
40 rm -f $fs/usr/bin/*-config
42 # Python can be symlink to python$python_version ???
43 #cd $fs/usr/bin
44 #rm python && ln -s python$python_version python
45 }