summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/python/.footprint3
-rwxr-xr-xextra/python/Pkgfile10
2 files changed, 11 insertions, 2 deletions
diff --git a/extra/python/.footprint b/extra/python/.footprint
index 89a59a174..babd1e0a2 100644
--- a/extra/python/.footprint
+++ b/extra/python/.footprint
@@ -3950,6 +3950,9 @@ drwxr-xr-x root/root usr/lib/python3.1/xmlrpc/
-rw-r--r-- root/root usr/lib/python3.1/zipfile.pyc
-rw-r--r-- root/root usr/lib/python3.1/zipfile.pyo
drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/licenses/
+drwxr-xr-x root/root usr/share/licenses/python/
+-rw-r--r-- root/root usr/share/licenses/python/LICENSE
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/python3.1.1.gz
diff --git a/extra/python/Pkgfile b/extra/python/Pkgfile
index 33db0a697..00a9b6927 100755
--- a/extra/python/Pkgfile
+++ b/extra/python/Pkgfile
@@ -6,13 +6,16 @@
name=python
version=3.1.3
-release=2
+release=3
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
+ export OPT="${CFLAGS}"
+ export CPPFLAGS+="`pkg-config --cflags-only-I libffi`"
+
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
@@ -30,7 +33,10 @@ build() {
ln -sf idle3 $PKG/usr/bin/idle
ln -sf pydoc3 $PKG/usr/bin/pydoc
-
+ sed -i "s#$SRC/Python-$version:##" $pkgdir/usr/lib/python3.1/config/Makefile
+
rm $PKG/usr/bin/2to3
+
+ install -Dm644 LICENSE $PKG/usr/share/licenses/$name/LICENSE
}