wok-next annotate py3k/receipt @ rev 10592
mtpfs: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 26 12:28:41 2011 +0200 (2011-05-26) |
parents | a8538bcee85b |
children | 451fc310dda0 |
rev | line source |
---|---|
pascal@1822 | 1 # SliTaz package receipt. |
pascal@1822 | 2 |
pascal@1822 | 3 PACKAGE="py3k" |
slaxemulator@9619 | 4 VERSION="3.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@1822 | 8 SOURCE="Python" |
slaxemulator@9619 | 9 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \ |
pascal@5031 | 10 tk xorg-libXext" |
pascal@1822 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
slaxemulator@9619 | 12 WEB_SITE="http://www.python.org/download/releases/3.2/" |
pascal@1822 | 13 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" |
pascal@1822 | 14 |
pascal@1822 | 15 # Rules to configure and make the package. |
pascal@1822 | 16 compile_rules() |
pascal@1822 | 17 { |
pascal@1822 | 18 cd $src |
slaxemulator@9619 | 19 patch -Np1 -i $stuff/CVE-2011-1521.patch |
pascal@1822 | 20 ./configure --enable-shared --with-ncurses \ |
pascal@1822 | 21 --prefix=/usr --infodir=/usr/share/info \ |
pascal@1822 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1822 | 23 make && |
pascal@1822 | 24 make DESTDIR=$PWD/_pkg install |
pascal@1822 | 25 } |
pascal@1822 | 26 |
pascal@1822 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1822 | 28 genpkg_rules() |
pascal@1822 | 29 { |
slaxemulator@9619 | 30 python_version=${VERSION:0:3} |
slaxemulator@9619 | 31 mkdir -p $fs/usr/include/python${python_version}m |
pascal@1822 | 32 cp -a $_pkg/usr/bin $fs/usr |
pascal@1822 | 33 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@9619 | 34 # needed for python3 to work |
slaxemulator@9619 | 35 cp -a $_pkg/usr/include/python${python_version}m/pyconfig.h \ |
slaxemulator@9619 | 36 $fs/usr/include/python${python_version}m |
pascal@1822 | 37 rm -f $fs/usr/bin/*-config |
pascal@1822 | 38 } |
pascal@1822 | 39 |