wok-current view py3k/receipt @ rev 11323

Up: bind to 9.8.1-P1.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Nov 17 13:11:35 2011 +0000 (2011-11-17)
parents b5dedd192e8a
children d7dc17383311
line source
1 # SliTaz package receipt.
3 PACKAGE="py3k"
4 VERSION="3.2.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 ./configure --enable-shared --with-ncurses \
20 --prefix=/usr --infodir=/usr/share/info \
21 --mandir=/usr/share/man $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 python_version=${VERSION:0:3}
30 mkdir -p $fs/usr/include/python${python_version}m
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 # needed for python3 to work
34 cp -a $_pkg/usr/include/python${python_version}m/pyconfig.h \
35 $fs/usr/include/python${python_version}m
36 rm -f $fs/usr/bin/*-config
37 }