wok-stable view python/receipt @ rev 5068
move static binaries in /usr/share/boot to avoid tazwok strip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 12 17:24:19 2010 +0100 (2010-03-12) |
parents | f3327707164a |
children | 0996fc654392 |
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 ncursesw \
10 gdbm tk"
11 BUILD_DEPENDS="readline-dev openssl openssl-dev ncurses ncurses-dev"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.python.org/"
14 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
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 mkdir -p $fs/usr
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 rm -f $fs/usr/bin/*-config
34 strip -s $fs/usr/bin/* 2>/dev/null
35 strip -s $fs/usr/lib/*.so* 2>/dev/null
37 # Python can be symlink to python2.5 ???
38 #cd $fs/usr/bin
39 #rm python && ln -s python2.5 python
40 }