wok-stable annotate python/receipt @ rev 5192
Up: sftp-server (5.4p1)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Mar 27 23:39:02 2010 +0100 (2010-03-27) |
parents | f3327707164a |
children | 0996fc654392 |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="python" |
erjo@4785 | 4 VERSION="2.5.1" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="The Python programming language." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@18 | 8 SOURCE="Python" |
pascal@5031 | 9 DEPENDS="openssl ncurses bzlib libdb readline sqlite zlib xorg-libXss ncursesw \ |
pascal@5031 | 10 gdbm tk" |
pascal@1655 | 11 BUILD_DEPENDS="readline-dev openssl openssl-dev ncurses ncurses-dev" |
pankso@18 | 12 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@18 | 13 WEB_SITE="http://www.python.org/" |
pankso@18 | 14 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" |
pankso@18 | 15 |
pankso@18 | 16 # Rules to configure and make the package. |
pankso@18 | 17 compile_rules() |
pankso@18 | 18 { |
pankso@18 | 19 cd $src |
pankso@18 | 20 ./configure --enable-shared --with-ncurses \ |
pankso@18 | 21 --prefix=/usr --infodir=/usr/share/info \ |
pascal@1470 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1470 | 23 make && |
pankso@18 | 24 make DESTDIR=$PWD/_pkg install |
pankso@18 | 25 } |
pankso@18 | 26 |
pankso@18 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 28 genpkg_rules() |
pankso@18 | 29 { |
pankso@18 | 30 mkdir -p $fs/usr |
pankso@18 | 31 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 32 cp -a $_pkg/usr/lib $fs/usr |
pankso@18 | 33 rm -f $fs/usr/bin/*-config |
pankso@18 | 34 strip -s $fs/usr/bin/* 2>/dev/null |
pankso@18 | 35 strip -s $fs/usr/lib/*.so* 2>/dev/null |
pankso@18 | 36 |
pankso@18 | 37 # Python can be symlink to python2.5 ??? |
pankso@18 | 38 #cd $fs/usr/bin |
pankso@18 | 39 #rm python && ln -s python2.5 python |
pankso@18 | 40 } |
pankso@18 | 41 |