From 816c523ef460a710f709a1d8e6d5d68545ff651d Mon Sep 17 00:00:00 2001 From: tnut Date: Sat, 5 Mar 2011 20:37:31 +0100 Subject: python pas de dépendances MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/python/Pkgfile | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 base/python/Pkgfile (limited to 'base/python/Pkgfile') diff --git a/base/python/Pkgfile b/base/python/Pkgfile new file mode 100755 index 000000000..7d58b3f65 --- /dev/null +++ b/base/python/Pkgfile @@ -0,0 +1,42 @@ +# Description: Environnement de développement python +# URL: http://www.python.org +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: +# Run on: + +name=python +version=3.2 +release=1 +source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2) + +build() { + cd Python-$version + rm -r Modules/expat + rm -r Modules/zlib + rm -r Modules/_ctypes/{darwin,libffi}* + + export OPT="${CFLAGS}" + export CPPFLAGS+="`pkg-config --cflags-only-I libffi`" + + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-shared \ + --with-threads \ + --with-computed-gotos \ + --enable-ipv6 \ + --with-wide-unicode \ + --with-system-ffi + make + make DESTDIR=$PKG install + + ln -sf python3 $PKG/usr/bin/python + ln -sf python3-config $PKG/usr/bin/python-config + ln -sf idle3 $PKG/usr/bin/idle + ln -sf pydoc3 $PKG/usr/bin/pydoc + + rm $PKG/usr/bin/2to3 + install -Dm644 LICENSE $PKG/usr/share/licenses/$name/LICENSE +} + -- cgit v1.2.3-70-g09d2