# HG changeset patch # User Nathan Neulinger # Date 1431788113 0 # Node ID b63ceafee13416fc3292261848f79dfb3052c39b # Parent 4fe6f820c1f64bea96088c35fe947d300d182243 Add py3k3: Python 3.3.x - py3k is 3.2.x diff -r 4fe6f820c1f6 -r b63ceafee134 py3k3-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/py3k3-dev/receipt Sat May 16 14:55:13 2015 +0000 @@ -0,0 +1,24 @@ +# SliTaz package receipt. + +PACKAGE="py3k3-dev" +VERSION="3.3.6" +CATEGORY="development" +SHORT_DESC="The Python programming language devel files." +MAINTAINER="nneul@neulinger.org" +LICENSE="PSL" +WANTED="py3k3" +SOURCE="Python" +WEB_SITE="https://www.python.org/" + +DEPENDS="py3k3" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $install/usr/include $fs/usr + cp -a $install/usr/bin/*-config $fs/usr/bin + chmod 755 $fs/usr/bin/*-config + rm $fs/usr/include/*/pyconfig.h +} + diff -r 4fe6f820c1f6 -r b63ceafee134 py3k3/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/py3k3/receipt Sat May 16 14:55:13 2015 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="py3k3" +VERSION="3.3.6" +CATEGORY="development" +SHORT_DESC="The Python 3000 programming language." +MAINTAINER="nneul@neulinger.org" +LICENSE="GPL" +SOURCE="Python" +TARBALL="$SOURCE-$VERSION.tgz" +WEB_SITE="https://www.python.org/download/releases/" +WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" + +DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm tk xorg-libXext" +BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev ncursesw-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + mkdir -p $DESTDIR/usr/lib/pkgconfig + ./configure --enable-shared \ + --prefix=/usr --infodir=/usr/share/info \ + --mandir=/usr/share/man $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + python_version=${VERSION:0:3} + mkdir -p $fs/usr/include/python${python_version}m + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib $fs/usr + # needed for python3 to work + cp -a $install/usr/include/python${python_version}m/pyconfig.h \ + $fs/usr/include/python${python_version}m + rm -f $fs/usr/bin/*-config +} +