wok-next diff py3k/receipt @ rev 10895

get-wakoopa: update wakoop to v2.0-2
author Liu Peng <rocky@slitaz.org>
date Thu Jul 07 05:59:46 2011 +0000 (2011-07-07)
parents a8538bcee85b
children 451fc310dda0
line diff
     1.1 --- a/py3k/receipt	Thu Dec 09 14:41:38 2010 +0000
     1.2 +++ b/py3k/receipt	Thu Jul 07 05:59:46 2011 +0000
     1.3 @@ -1,23 +1,22 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="py3k"
     1.7 -VERSION="3.1.3"
     1.8 +VERSION="3.2"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="The Python 3000 programming language."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  SOURCE="Python"
    1.13 -DEPENDS="openssl ncurses bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \
    1.14 +DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \
    1.15  tk xorg-libXext"
    1.16 -BUILD_DEPENDS="readline-dev openssl openssl-dev ncurses ncurses-dev
    1.17 - gdbm-dev"
    1.18  TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.19 -WEB_SITE="http://www.python.org/download/releases/3.0/"
    1.20 +WEB_SITE="http://www.python.org/download/releases/3.2/"
    1.21  WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
    1.22  
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {
    1.26  	cd $src
    1.27 +	patch -Np1 -i $stuff/CVE-2011-1521.patch
    1.28  	./configure --enable-shared --with-ncurses \
    1.29  	--prefix=/usr --infodir=/usr/share/info \
    1.30  	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.31 @@ -28,9 +27,13 @@
    1.32  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.33  genpkg_rules()
    1.34  {
    1.35 -	mkdir -p $fs/usr
    1.36 +	python_version=${VERSION:0:3}
    1.37 +	mkdir -p $fs/usr/include/python${python_version}m
    1.38  	cp -a $_pkg/usr/bin $fs/usr
    1.39  	cp -a $_pkg/usr/lib $fs/usr
    1.40 +	# needed for python3 to work
    1.41 +	cp -a $_pkg/usr/include/python${python_version}m/pyconfig.h \
    1.42 +		$fs/usr/include/python${python_version}m
    1.43  	rm -f $fs/usr/bin/*-config
    1.44  }
    1.45