wok-current annotate py3k/receipt @ rev 11323
Up: bind to 9.8.1-P1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Nov 17 13:11:35 2011 +0000 (2011-11-17) |
parents | b5dedd192e8a |
children | d7dc17383311 |
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@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 |
pascal@1822 | 19 ./configure --enable-shared --with-ncurses \ |
pascal@1822 | 20 --prefix=/usr --infodir=/usr/share/info \ |
pascal@1822 | 21 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1822 | 22 make && |
slaxemulator@11027 | 23 make DESTDIR=$DESTDIR install |
pascal@1822 | 24 } |
pascal@1822 | 25 |
pascal@1822 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1822 | 27 genpkg_rules() |
pascal@1822 | 28 { |
slaxemulator@9619 | 29 python_version=${VERSION:0:3} |
slaxemulator@9619 | 30 mkdir -p $fs/usr/include/python${python_version}m |
pascal@1822 | 31 cp -a $_pkg/usr/bin $fs/usr |
pascal@1822 | 32 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@9619 | 33 # needed for python3 to work |
slaxemulator@9619 | 34 cp -a $_pkg/usr/include/python${python_version}m/pyconfig.h \ |
slaxemulator@9619 | 35 $fs/usr/include/python${python_version}m |
pascal@1822 | 36 rm -f $fs/usr/bin/*-config |
pascal@1822 | 37 } |
pascal@1822 | 38 |