summaryrefslogtreecommitdiffstats
path: root/extra/python/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-12-26 15:34:35 +0100
committersibel <lesibel@free.fr>2010-12-26 15:34:35 +0100
commit1e6661d34c4b7005433b7c604fd0df230fd2d2d1 (patch)
treeba8af8b66b45bd3978bc1b7f71180b98e6952348 /extra/python/Pkgfile
parentdf5167af270c3059c45866b9f06bad95155e6f6a (diff)
downloadnutyx-pakxe-1e6661d34c4b7005433b7c604fd0df230fd2d2d1.tar.gz
nutyx-pakxe-1e6661d34c4b7005433b7c604fd0df230fd2d2d1.tar.bz2
nutyx-pakxe-1e6661d34c4b7005433b7c604fd0df230fd2d2d1.tar.xz
nutyx-pakxe-1e6661d34c4b7005433b7c604fd0df230fd2d2d1.zip
python#3.1.3-2, maj port
Diffstat (limited to 'extra/python/Pkgfile')
-rwxr-xr-xextra/python/Pkgfile35
1 files changed, 24 insertions, 11 deletions
diff --git a/extra/python/Pkgfile b/extra/python/Pkgfile
index 6096b0b55..33db0a697 100755
--- a/extra/python/Pkgfile
+++ b/extra/python/Pkgfile
@@ -6,18 +6,31 @@
name=python
version=3.1.3
-release=1
+release=2
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
-make
-make DESTDIR=$PKG install
+ 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
}
-
+