wok view python/receipt @ rev 10434

grub4dos: fix path to lib (no more i386-pc but i386-slitaz)
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 25 00:43:57 2011 +0200 (2011-05-25)
parents 686120919f40
children ba7621a1b976
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 DEPENDS="openssl bzlib readline sqlite zlib ncursesw"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.python.org/"
12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 # Fix urllib Security Vulnerability
19 # http://blog.python.org/2011/04/urllib-security-vulnerability-fixed.html
20 patch -Np1 -i $stuff/CVE-2011-1521.patch
21 ./configure --enable-shared \
22 --build=$HOST_SYSTEM \
23 --host=$HOST_SYSTEM &&
24 make && make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 python_version=${VERSION:0:3}
31 mkdir -p $fs/usr/include/${PACKAGE}$python_version
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/lib $fs/usr
34 # needed for mericurial to work now
35 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
36 $fs/usr/include/${PACKAGE}$python_version
37 rm -f $fs/usr/bin/*-config
39 # Python can be symlink to python$python_version ???
40 #cd $fs/usr/bin
41 #rm python && ln -s python$python_version python
42 }