summaryrefslogtreecommitdiffstats
path: root/extra/python2/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-12-26 18:25:31 +0100
committersibel <lesibel@free.fr>2010-12-26 18:25:31 +0100
commit73bdd624a6e4addc51078f2a4d49661a9bc9ce86 (patch)
tree60afeab3980c038793d73213f3f5d7b81c9432ca /extra/python2/Pkgfile
parent1839299804ca88292ee037fb4c900c44e6e1799b (diff)
downloadnutyx-pakxe-73bdd624a6e4addc51078f2a4d49661a9bc9ce86.tar.gz
nutyx-pakxe-73bdd624a6e4addc51078f2a4d49661a9bc9ce86.tar.bz2
nutyx-pakxe-73bdd624a6e4addc51078f2a4d49661a9bc9ce86.tar.xz
nutyx-pakxe-73bdd624a6e4addc51078f2a4d49661a9bc9ce86.zip
python#2.7.1-1, ajout port
Diffstat (limited to 'extra/python2/Pkgfile')
-rwxr-xr-xextra/python2/Pkgfile36
1 files changed, 36 insertions, 0 deletions
diff --git a/extra/python2/Pkgfile b/extra/python2/Pkgfile
new file mode 100755
index 000000000..d4df64b0f
--- /dev/null
+++ b/extra/python2/Pkgfile
@@ -0,0 +1,36 @@
+# Description: Environnement de développement python
+# URL: http://www.python.org
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: pth, sqlite3
+
+name=python
+version=2.7.1
+release=1
+source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2)
+
+build() {
+ cd Python-$version
+ sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py
+
+ ./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
+}
+