wok-next annotate python/receipt @ rev 9470

Remove some uneeded strips (thoses ones are handled by Tazwok)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Apr 04 01:29:52 2011 +0200 (2011-04-04)
parents 5d9a6e5f6f88
children 9e8cd7598a81
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="python"
slaxemulator@7446 4 VERSION="2.7.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"
pankso@5251 9 DEPENDS="openssl bzlib readline sqlite zlib ncursesw"
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
slaxemulator@9467 18 ./configure --enable-shared --with-ncurses &&
pascal@1470 19 make &&
slaxemulator@9467 20 make DESTDIR=$DESTDIR install
pankso@18 21 }
pankso@18 22
pankso@18 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 24 genpkg_rules()
pankso@18 25 {
pascal@7468 26 python_version=${VERSION:0:3}
pascal@7468 27 mkdir -p $fs/usr/include/${PACKAGE}$python_version
pankso@18 28 cp -a $_pkg/usr/bin $fs/usr
pankso@18 29 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@6616 30 # needed for mericurial to work now
pascal@7468 31 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
pascal@7468 32 $fs/usr/include/${PACKAGE}$python_version
pankso@18 33 rm -f $fs/usr/bin/*-config
pankso@18 34
pascal@7468 35 # Python can be symlink to python$python_version ???
pankso@18 36 #cd $fs/usr/bin
pascal@7468 37 #rm python && ln -s python$python_version python
pankso@18 38 }
pankso@18 39