summaryrefslogtreecommitdiffstats
path: root/python/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:15:45 +0100
commit3f57a7f93b3e7550cbd73036f6a56654e17d1d5c (patch)
tree819b14ab0377fe2054fe59866669d904e9e0b4b5 /python/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.gz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.bz2
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.tar.xz
nutyx-extra-3f57a7f93b3e7550cbd73036f6a56654e17d1d5c.zip
split de git pakxe et NuTyX-extra
Diffstat (limited to 'python/Pkgfile')
-rwxr-xr-xpython/Pkgfile47
1 files changed, 47 insertions, 0 deletions
diff --git a/python/Pkgfile b/python/Pkgfile
new file mode 100755
index 000000000..00ed3bb32
--- /dev/null
+++ b/python/Pkgfile
@@ -0,0 +1,47 @@
+# Description: Environnement de développement python
+# URL: http://www.python.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: sqlite3,expat
+# Run on: expat,libffi,zlib
+
+name=python
+version=3.2.2
+release=1
+source=( http://www.python.org/ftp/python/$version/Python-$version.tar.xz)
+
+build() {
+ cd Python-$version
+
+ sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python|" Lib/cgi.py
+
+ rm -r Modules/zlib
+ rm -r Modules/expat
+ 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-expat \
+ --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
+ [[ -r $PKG/usr/lib/pkgconfig/python-3.2mu.pc ]] || ln -s python-3.2.pc $PKG/usr/lib/pkgconfig/python-3.2mu.pc
+ [[ -r $PKG/usr/lib/pkgconfig/python3.pc ]] || ln -s python-3.2.pc $PKG/usr/lib/pkgconfig/python3.pc
+}