wok-6.x annotate py3k/receipt @ rev 15303

enigma: remove a wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 27 12:42:14 2013 +0000 (2013-09-27)
parents d7dc17383311
children 16df76e1fc6a
rev   line source
pascal@1822 1 # SliTaz package receipt.
pascal@1822 2
pascal@1822 3 PACKAGE="py3k"
slaxemulator@11027 4 VERSION="3.2.2"
pascal@1822 5 CATEGORY="development"
pascal@1822 6 SHORT_DESC="The Python 3000 programming language."
pascal@1822 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15088 8 LICENSE="GPL"
pascal@1822 9 SOURCE="Python"
pascal@1822 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
slaxemulator@9619 11 WEB_SITE="http://www.python.org/download/releases/3.2/"
pascal@1822 12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
pascal@1822 13
pascal@15088 14 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \
pascal@15088 15 tk xorg-libXext"
pascal@15094 16 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \
pascal@15094 17 ncursesw-dev"
pascal@15088 18
pascal@1822 19 # Rules to configure and make the package.
pascal@1822 20 compile_rules()
pascal@1822 21 {
pascal@1822 22 cd $src
pascal@15094 23 mkdir -p $DESTDIR/usr/lib/pkgconfig
pascal@15094 24 ./configure --enable-shared \
pascal@1822 25 --prefix=/usr --infodir=/usr/share/info \
pascal@1822 26 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1822 27 make &&
slaxemulator@11027 28 make DESTDIR=$DESTDIR install
pascal@1822 29 }
pascal@1822 30
pascal@1822 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1822 32 genpkg_rules()
pascal@1822 33 {
slaxemulator@9619 34 python_version=${VERSION:0:3}
slaxemulator@9619 35 mkdir -p $fs/usr/include/python${python_version}m
pascal@15088 36 cp -a $install/usr/bin $fs/usr
pascal@15088 37 cp -a $install/usr/lib $fs/usr
slaxemulator@9619 38 # needed for python3 to work
pascal@15088 39 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
slaxemulator@9619 40 $fs/usr/include/python${python_version}m
pascal@1822 41 rm -f $fs/usr/bin/*-config
pascal@1822 42 }
pascal@1822 43