summaryrefslogtreecommitdiffstats
path: root/extra/python
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python')
-rw-r--r--extra/python/.footprint5
-rwxr-xr-xextra/python/Pkgfile35
2 files changed, 28 insertions, 12 deletions
diff --git a/extra/python/.footprint b/extra/python/.footprint
index 799553f72..89a59a174 100644
--- a/extra/python/.footprint
+++ b/extra/python/.footprint
@@ -1,8 +1,11 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
--rwxr-xr-x root/root usr/bin/2to3
+lrwxrwxrwx root/root usr/bin/idle -> idle3
-rwxr-xr-x root/root usr/bin/idle3
+lrwxrwxrwx root/root usr/bin/pydoc -> pydoc3
-rwxr-xr-x root/root usr/bin/pydoc3
+lrwxrwxrwx root/root usr/bin/python -> python3
+lrwxrwxrwx root/root usr/bin/python-config -> python3-config
-rwxr-xr-x root/root usr/bin/python3
lrwxrwxrwx root/root usr/bin/python3-config -> python3.1-config
-rwxr-xr-x root/root usr/bin/python3.1
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
}
-
+