wok annotate py3k3/receipt @ rev 18058
Add py3k3: Python 3.3.x - py3k is 3.2.x
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat May 16 14:55:13 2015 +0000 (2015-05-16) |
parents | |
children | 05e8a6b1bd47 |
rev | line source |
---|---|
nneul@18058 | 1 # SliTaz package receipt. |
nneul@18058 | 2 |
nneul@18058 | 3 PACKAGE="py3k3" |
nneul@18058 | 4 VERSION="3.3.6" |
nneul@18058 | 5 CATEGORY="development" |
nneul@18058 | 6 SHORT_DESC="The Python 3000 programming language." |
nneul@18058 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@18058 | 8 LICENSE="GPL" |
nneul@18058 | 9 SOURCE="Python" |
nneul@18058 | 10 TARBALL="$SOURCE-$VERSION.tgz" |
nneul@18058 | 11 WEB_SITE="https://www.python.org/download/releases/" |
nneul@18058 | 12 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" |
nneul@18058 | 13 |
nneul@18058 | 14 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm tk xorg-libXext" |
nneul@18058 | 15 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev ncursesw-dev" |
nneul@18058 | 16 |
nneul@18058 | 17 # Rules to configure and make the package. |
nneul@18058 | 18 compile_rules() |
nneul@18058 | 19 { |
nneul@18058 | 20 cd $src |
nneul@18058 | 21 mkdir -p $DESTDIR/usr/lib/pkgconfig |
nneul@18058 | 22 ./configure --enable-shared \ |
nneul@18058 | 23 --prefix=/usr --infodir=/usr/share/info \ |
nneul@18058 | 24 --mandir=/usr/share/man $CONFIGURE_ARGS && |
nneul@18058 | 25 make && |
nneul@18058 | 26 make DESTDIR=$DESTDIR install |
nneul@18058 | 27 } |
nneul@18058 | 28 |
nneul@18058 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18058 | 30 genpkg_rules() |
nneul@18058 | 31 { |
nneul@18058 | 32 python_version=${VERSION:0:3} |
nneul@18058 | 33 mkdir -p $fs/usr/include/python${python_version}m |
nneul@18058 | 34 cp -a $install/usr/bin $fs/usr |
nneul@18058 | 35 cp -a $install/usr/lib $fs/usr |
nneul@18058 | 36 # needed for python3 to work |
nneul@18058 | 37 cp -a $install/usr/include/python${python_version}m/pyconfig.h \ |
nneul@18058 | 38 $fs/usr/include/python${python_version}m |
nneul@18058 | 39 rm -f $fs/usr/bin/*-config |
nneul@18058 | 40 } |
nneul@18058 | 41 |