summaryrefslogtreecommitdiffstats
path: root/base/python/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/python/Pkgfile')
-rwxr-xr-xbase/python/Pkgfile15
1 files changed, 10 insertions, 5 deletions
diff --git a/base/python/Pkgfile b/base/python/Pkgfile
index ece86814f..21cfbd50e 100755
--- a/base/python/Pkgfile
+++ b/base/python/Pkgfile
@@ -2,17 +2,21 @@
# URL: http://www.python.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: expat
-# Run on: expat
+# Depends on: sqlite3
+# Run on: expat,libffi,zlib
name=python
-version=3.2
-release=2
-source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2)
+version=3.2.1
+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}"
@@ -26,6 +30,7 @@ build() {
--with-computed-gotos \
--enable-ipv6 \
--with-wide-unicode \
+ --with-system-expat \
--with-system-ffi
make
make DESTDIR=$PKG install