summaryrefslogtreecommitdiff
path: root/libre/python2-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/python2-libre/PKGBUILD')
-rw-r--r--libre/python2-libre/PKGBUILD45
1 files changed, 22 insertions, 23 deletions
diff --git a/libre/python2-libre/PKGBUILD b/libre/python2-libre/PKGBUILD
index 78550b63f..c4f09188d 100644
--- a/libre/python2-libre/PKGBUILD
+++ b/libre/python2-libre/PKGBUILD
@@ -6,7 +6,7 @@
_pkgname=python2
pkgname=python2-libre
pkgver=2.7.2
-pkgrel=2
+pkgrel=4
_pybasever=2.7
pkgdesc="A high-level scripting language"
arch=('i686' 'x86_64')
@@ -17,30 +17,15 @@ makedepends=('tk')
optdepends=('tk: for IDLE')
conflicts=('python<3')
options=('!makeflags')
-source=(http://repo.parabolagnulinux.org/other/Python-${pkgver}.tar.xz
+source=(http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}-${pkgrel}-any.src.tar.xz
doc_license_change.patch
- WDAS.patch)
-md5sums=('5f8a18361784411b16dbb1cdcd6f6664'
- '1e6595f85a1da7f42b69456119924d50'
- '3f8c0e310a0be0bd8b319d6c46bbd427')
+ WDAS.patch
+ linux2.patch
+ gdbm-magic-values.patch)
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
replaces=("$_pkgname")
-mksource() {
- [ ! -d "Python-${pkgver}" ] && \
- wget -O - http://www.python.org/ftp/python/${pkgver%rc?}/Python-${pkgver}.tar.xz |\
- tar -xJf -
-
- cd "Python-${pkgver}"
-# http://bugs.python.org/issue12417
- patch -Np1 -i ../WDAS.patch || return 1
- patch -Np0 -i ../doc_license_change.patch || return 1
-
- cd ..
- tar -cJf Python-${pkgver}.tar.xz "Python-${pkgver}"
-}
-
build() {
cd "${srcdir}/Python-${pkgver}"
@@ -54,6 +39,14 @@ build() {
# FS#23997
sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python2|" Lib/cgi.py
+ # Make sure sys.platform is set to linux2, even on kernel 3.X
+ # cf http://bugs.python.org/issue12326
+ patch -Np1 -i ../linux2.patch
+
+ # gdbm has new magic that whichdb does not recognize
+ # http://bugs.python.org/issue13007
+ patch -Np1 -i ../gdbm-magic-values.patch
+
# Ensure that we are using the system copy of various libraries (expat, zlib and libffi),
# rather than copies shipped in the tarball
rm -r Modules/expat
@@ -62,9 +55,10 @@ build() {
export OPT="${CFLAGS}"
./configure --prefix=/usr --enable-shared --with-threads --enable-ipv6 \
- --enable-unicode=ucs4 --with-system-expat --with-system-ffi
+ --enable-unicode=ucs4 --with-system-expat --with-system-ffi \
+ --with-dbmliborder=gdbm:ndbm
- make
+ make MACHDEP=linux2
}
package() {
@@ -101,5 +95,10 @@ package() {
"${pkgdir}/usr/lib/python${_pybasever}/config/Makefile"
# license
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
+md5sums=('456d053a5d418adc913a4971e95fe918'
+ '1e6595f85a1da7f42b69456119924d50'
+ '3f8c0e310a0be0bd8b319d6c46bbd427'
+ '74c04694573e0d331e2a99d7b9179460'
+ '2874e9d93f4f46c1460605a5c7751372')