wok view py3k/receipt @ rev 15088

py3k: add bdeps...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 13 21:00:08 2013 +0000 (2013-08-13)
parents 451fc310dda0
children a6a127d9957f
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 LICENSE="GPL"
9 SOURCE="Python"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.python.org/download/releases/3.2/"
12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
14 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \
15 tk xorg-libXext"
16 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --enable-shared --with-ncurses \
23 --prefix=/usr --infodir=/usr/share/info \
24 --mandir=/usr/share/man $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 python_version=${VERSION:0:3}
33 mkdir -p $fs/usr/include/python${python_version}m
34 cp -a $install/usr/bin $fs/usr
35 cp -a $install/usr/lib $fs/usr
36 # needed for python3 to work
37 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
38 $fs/usr/include/python${python_version}m
39 rm -f $fs/usr/bin/*-config
40 }