wok-current annotate python/receipt @ rev 11641

lostirc: Fix receipt (desktop file should be copied by cook)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 03 14:54:52 2012 +0100 (2012-02-03)
parents ba7621a1b976
children 290346adb440
rev   line source
pankso@18 1 # SliTaz package receipt.
pankso@18 2
pankso@18 3 PACKAGE="python"
slaxemulator@10975 4 VERSION="2.7.2"
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@18 9 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@18 10 WEB_SITE="http://www.python.org/"
pankso@18 11 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
pankso@18 12
pankso@10807 13 DEPENDS="openssl bzlib readline sqlite zlib ncursesw"
pankso@10807 14 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev ncursesw-dev"
pankso@10807 15
pankso@18 16 # Rules to configure and make the package.
pankso@18 17 compile_rules()
pankso@18 18 {
pankso@18 19 cd $src
slaxemulator@10975 20 # Temporary workaround for FS#22322
slaxemulator@10975 21 # See http://bugs.python.org/issue10835 for upstream report
slaxemulator@10975 22 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
slaxemulator@10975 23 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
slaxemulator@10975 24 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
pankso@10807 25 ./configure \
pankso@10807 26 --enable-shared \
pankso@10364 27 --build=$HOST_SYSTEM \
pankso@10364 28 --host=$HOST_SYSTEM &&
slaxemulator@10327 29 make && make DESTDIR=$DESTDIR install
pankso@18 30 }
pankso@18 31
pankso@18 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@18 33 genpkg_rules()
pankso@18 34 {
pascal@7468 35 python_version=${VERSION:0:3}
pascal@7468 36 mkdir -p $fs/usr/include/${PACKAGE}$python_version
pankso@18 37 cp -a $_pkg/usr/bin $fs/usr
pankso@18 38 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@6616 39 # needed for mericurial to work now
pascal@7468 40 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
pascal@7468 41 $fs/usr/include/${PACKAGE}$python_version
pankso@18 42 rm -f $fs/usr/bin/*-config
pankso@18 43
pascal@7468 44 # Python can be symlink to python$python_version ???
pankso@18 45 #cd $fs/usr/bin
pascal@7468 46 #rm python && ln -s python$python_version python
pankso@18 47 }
pankso@18 48