wok-current view py3k/receipt @ rev 10808

xorg-server*: up to 1.9.5 for bug fixes and --enable-kdrive so you build Xfbdev
author Christophe Lincoln <pankso@slitaz.org>
date Sun Jun 05 01:00:43 2011 +0200 (2011-06-05)
parents a8538bcee85b
children 451fc310dda0
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k"
4 VERSION="3.2"
5 CATEGORY="development"
6 SHORT_DESC="The Python 3000 programming language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 SOURCE="Python"
9 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \
10 tk xorg-libXext"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.python.org/download/releases/3.2/"
13 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 patch -Np1 -i $stuff/CVE-2011-1521.patch
20 ./configure --enable-shared --with-ncurses \
21 --prefix=/usr --infodir=/usr/share/info \
22 --mandir=/usr/share/man $CONFIGURE_ARGS &&
23 make &&
24 make DESTDIR=$PWD/_pkg 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/python${python_version}m
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/lib $fs/usr
34 # needed for python3 to work
35 cp -a $_pkg/usr/include/python${python_version}m/pyconfig.h \
36 $fs/usr/include/python${python_version}m
37 rm -f $fs/usr/bin/*-config
38 }