wok-next 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 | 4fe6f820c1f6 |
children | ed43b4392c05 |
files | py3k3-dev/receipt py3k3/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/py3k3-dev/receipt Sat May 16 14:55:13 2015 +0000 1.3 @@ -0,0 +1,24 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="py3k3-dev" 1.7 +VERSION="3.3.6" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The Python programming language devel files." 1.10 +MAINTAINER="nneul@neulinger.org" 1.11 +LICENSE="PSL" 1.12 +WANTED="py3k3" 1.13 +SOURCE="Python" 1.14 +WEB_SITE="https://www.python.org/" 1.15 + 1.16 +DEPENDS="py3k3" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/usr/bin 1.22 + cp -a $install/usr/include $fs/usr 1.23 + cp -a $install/usr/bin/*-config $fs/usr/bin 1.24 + chmod 755 $fs/usr/bin/*-config 1.25 + rm $fs/usr/include/*/pyconfig.h 1.26 +} 1.27 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/py3k3/receipt Sat May 16 14:55:13 2015 +0000 2.3 @@ -0,0 +1,41 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="py3k3" 2.7 +VERSION="3.3.6" 2.8 +CATEGORY="development" 2.9 +SHORT_DESC="The Python 3000 programming language." 2.10 +MAINTAINER="nneul@neulinger.org" 2.11 +LICENSE="GPL" 2.12 +SOURCE="Python" 2.13 +TARBALL="$SOURCE-$VERSION.tgz" 2.14 +WEB_SITE="https://www.python.org/download/releases/" 2.15 +WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" 2.16 + 2.17 +DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm tk xorg-libXext" 2.18 +BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev ncursesw-dev" 2.19 + 2.20 +# Rules to configure and make the package. 2.21 +compile_rules() 2.22 +{ 2.23 + cd $src 2.24 + mkdir -p $DESTDIR/usr/lib/pkgconfig 2.25 + ./configure --enable-shared \ 2.26 + --prefix=/usr --infodir=/usr/share/info \ 2.27 + --mandir=/usr/share/man $CONFIGURE_ARGS && 2.28 + make && 2.29 + make DESTDIR=$DESTDIR install 2.30 +} 2.31 + 2.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.33 +genpkg_rules() 2.34 +{ 2.35 + python_version=${VERSION:0:3} 2.36 + mkdir -p $fs/usr/include/python${python_version}m 2.37 + cp -a $install/usr/bin $fs/usr 2.38 + cp -a $install/usr/lib $fs/usr 2.39 + # needed for python3 to work 2.40 + cp -a $install/usr/include/python${python_version}m/pyconfig.h \ 2.41 + $fs/usr/include/python${python_version}m 2.42 + rm -f $fs/usr/bin/*-config 2.43 +} 2.44 +