summaryrefslogtreecommitdiffstats
path: root/extra/python/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python/Pkgfile')
-rwxr-xr-xextra/python/Pkgfile15
1 files changed, 11 insertions, 4 deletions
diff --git a/extra/python/Pkgfile b/extra/python/Pkgfile
index 00a9b6927..99ac74e95 100755
--- a/extra/python/Pkgfile
+++ b/extra/python/Pkgfile
@@ -2,16 +2,23 @@
# URL: http://www.python.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: pth, sqlite3
+# Depends on: expat, bzip2, gdbm, openssl, libffi, zlib, tk, sqlite3
name=python
version=3.1.3
-release=3
-source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2)
+release=4
+source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2
+ python-internal-expat.patch)
build() {
cd Python-$version
- sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py
+
+ patch -Np0 -i ../python-internal-expat.patch
+ rm -r Modules/expat
+ rm -r Modules/zlib
+ rm -r Modules/_ctypes/{darwin,libffi}*
+
+# sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py
export OPT="${CFLAGS}"
export CPPFLAGS+="`pkg-config --cflags-only-I libffi`"