summaryrefslogtreecommitdiffstats
path: root/extra/python/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-12-27 08:36:02 +0000
committersibel <lesibel@free.fr>2010-12-27 08:36:02 +0000
commitd4bc29609450f9d47803b309f3125cccb8bdb54d (patch)
tree0057b17ca29c5b8aa9a981e0d5e5b825ad2048ef /extra/python/Pkgfile
parent7c40f57b40464b680298d14bf4e370b8551999c4 (diff)
downloadnutyx-pakxe-d4bc29609450f9d47803b309f3125cccb8bdb54d.tar.gz
nutyx-pakxe-d4bc29609450f9d47803b309f3125cccb8bdb54d.tar.bz2
nutyx-pakxe-d4bc29609450f9d47803b309f3125cccb8bdb54d.tar.xz
nutyx-pakxe-d4bc29609450f9d47803b309f3125cccb8bdb54d.zip
python#3.1.3-3, maj port
Diffstat (limited to 'extra/python/Pkgfile')
-rwxr-xr-xextra/python/Pkgfile10
1 files changed, 8 insertions, 2 deletions
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
}