wok-next annotate python/receipt @ rev 1470

freetds haserl-lua parcellite python xorg-xclock: update BUILD_DEPENDS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 12:01:29 2008 +0000 (2008-10-04)
parents 17a39e4461e4
children 42ddbfb9cf92
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="python"
pankso@18 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@1470 9 BUILD_DEPENDS="readline-dev"
pankso@18 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@18 11 WEB_SITE="http://www.python.org/"
pankso@18 12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
pankso@18 13
pankso@18 14 # Rules to configure and make the package.
pankso@18 15 compile_rules()
pankso@18 16 {
pankso@18 17 cd $src
pankso@18 18 ./configure --enable-shared --with-ncurses \
pankso@18 19 --prefix=/usr --infodir=/usr/share/info \
pascal@1470 20 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1470 21 make &&
pankso@18 22 make DESTDIR=$PWD/_pkg install
pankso@18 23 }
pankso@18 24
pankso@18 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 26 genpkg_rules()
pankso@18 27 {
pankso@18 28 mkdir -p $fs/usr
pankso@18 29 cp -a $_pkg/usr/bin $fs/usr
pankso@18 30 cp -a $_pkg/usr/lib $fs/usr
pankso@18 31 rm -f $fs/usr/bin/*-config
pankso@18 32 strip -s $fs/usr/bin/* 2>/dev/null
pankso@18 33 strip -s $fs/usr/lib/*.so* 2>/dev/null
pankso@18 34
pankso@18 35 # Python can be symlink to python2.5 ???
pankso@18 36 #cd $fs/usr/bin
pankso@18 37 #rm python && ln -s python2.5 python
pankso@18 38 }
pankso@18 39