summaryrefslogtreecommitdiffstats
path: root/python2/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-03-24 16:11:53 +0100
committerpiernov <piernov@piernov.org>2012-03-24 16:11:53 +0100
commit001e788b1f4c8a3994fd40f5ba22811fe8f0acb8 (patch)
treea0e3894096a8ad468ecf8edded656b39246d68b4 /python2/Pkgfile
parent4712b433c969338b815f77b2a436de2d9a70f6d5 (diff)
downloadnutyx-pakxe-001e788b1f4c8a3994fd40f5ba22811fe8f0acb8.tar.gz
nutyx-pakxe-001e788b1f4c8a3994fd40f5ba22811fe8f0acb8.tar.bz2
nutyx-pakxe-001e788b1f4c8a3994fd40f5ba22811fe8f0acb8.tar.xz
nutyx-pakxe-001e788b1f4c8a3994fd40f5ba22811fe8f0acb8.zip
python2 2.7.2-2 ajout patch db51+gdbm
Diffstat (limited to 'python2/Pkgfile')
-rwxr-xr-xpython2/Pkgfile11
1 files changed, 6 insertions, 5 deletions
diff --git a/python2/Pkgfile b/python2/Pkgfile
index a292bea61..8395b79be 100755
--- a/python2/Pkgfile
+++ b/python2/Pkgfile
@@ -6,18 +6,19 @@
name=python2
version=2.7.2
-release=1
+release=2
_pybasever=2.7
-
-source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2
- python-2.7-db51.diff)
+source=(http://www.python.org/ftp/python/$version/Python-$version.tar.bz2
+ python-2.7-db51.diff
+ gdbm-magic-values.patch)
build() {
cd Python-$version
sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
-# patch -Np1 -i ../python-2.7-db51.diff
+ patch -Np1 -i ../python-2.7-db51.diff
+ patch -Np1 -i ../gdbm-magic-values.patch
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python2|" Lib/cgi.py