wok-6.x view python/receipt @ rev 5005
p*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 28 17:01:48 2010 +0100 (2010-02-28) |
parents | 0d52697af703 |
children | 8fd90285da5e |
line source
1 # SliTaz package receipt.
3 PACKAGE="python"
4 VERSION="2.5.1"
5 CATEGORY="development"
6 SHORT_DESC="The Python programming language."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="Python"
9 DEPENDS="openssl ncurses bzlib libdb readline sqlite zlib xorg-libXss"
10 BUILD_DEPENDS="readline-dev openssl openssl-dev ncurses ncurses-dev"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.python.org/"
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=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr
30 cp -a $_pkg/usr/bin $fs/usr
31 cp -a $_pkg/usr/lib $fs/usr
32 rm -f $fs/usr/bin/*-config
33 strip -s $fs/usr/bin/* 2>/dev/null
34 strip -s $fs/usr/lib/*.so* 2>/dev/null
36 # Python can be symlink to python2.5 ???
37 #cd $fs/usr/bin
38 #rm python && ln -s python2.5 python
39 }