summaryrefslogtreecommitdiff
path: root/community/python-bsddb
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-12 23:14:51 +0000
committerroot <root@rshg054.dnsready.net>2012-01-12 23:14:51 +0000
commitb5f690637837ff269bf5d248ee2dc37ea5236ca8 (patch)
treee63126d6f2f33cb2d56549f0657e1ce075e3acc9 /community/python-bsddb
parent3a0439ec6aea4411ac6d11c90cd8220f8f12a660 (diff)
Thu Jan 12 23:14:51 UTC 2012
Diffstat (limited to 'community/python-bsddb')
-rw-r--r--community/python-bsddb/PKGBUILD10
-rw-r--r--community/python-bsddb/db_5.3.patch20
2 files changed, 28 insertions, 2 deletions
diff --git a/community/python-bsddb/PKGBUILD b/community/python-bsddb/PKGBUILD
index a3f29df6f..79210ea23 100644
--- a/community/python-bsddb/PKGBUILD
+++ b/community/python-bsddb/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 55994 2011-09-28 12:21:07Z stephane $
+# $Id: PKGBUILD 61959 2012-01-11 15:22:37Z stephane $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
@@ -7,20 +7,26 @@
pkgbase=python-bsddb
pkgname=('python2-bsddb' 'python-bsddb')
pkgver=5.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="Python interface for BerkeleyDB"
license=('MIT')
arch=('i686' 'x86_64')
url="http://www.jcea.es/programacion/pybsddb.htm"
makedepends=('python2-distribute' 'python-distribute')
source=(http://pypi.python.org/packages/source/b/bsddb3/bsddb3-${pkgver}.tar.gz
+ db_5.3.patch
LICENSE)
sha1sums=('4395c125807fc8c4bac4d367f4556e623605c7a8'
+ '150bb6ce1758ca29f55e876ac75dbac76c9d743d'
'ef4e4caf618781104dbf5824279ed39d127b4713')
build () {
cd "${srcdir}"
+ pushd bsddb3-${pkgver}
+ patch -Np1 -i ../db_5.3.patch
+ popd
+
cp -r bsddb3-${pkgver}{,-python2}
# Build python 3 module
diff --git a/community/python-bsddb/db_5.3.patch b/community/python-bsddb/db_5.3.patch
new file mode 100644
index 000000000..6ea4d18bb
--- /dev/null
+++ b/community/python-bsddb/db_5.3.patch
@@ -0,0 +1,20 @@
+# HG changeset patch
+# User Jesus Cea <jcea@jcea.es>
+# Date 1324876054 -3600
+# Node ID b9ff8f6918a383ed4985e4a09ca36ed1776dba12
+# Parent 670b1ec4472908a9dc745a338a9f595f92aba667
+Support Berkeley DB 5.3.x
+
+diff -r 670b1ec44729 -r b9ff8f6918a3 setup2.py
+--- a/setup2.py Mon Dec 26 06:04:34 2011 +0100
++++ b/setup2.py Mon Dec 26 06:07:34 2011 +0100
+@@ -128,7 +128,7 @@
+ incdir = libdir = None
+ if not BERKELEYDB_DIR and not BERKELEYDB_LIBDIR and not BERKELEYDB_INCDIR:
+ # Supported Berkeley DB versions, in order of preference.
+- db_ver_list = ((5, 2), (5, 1), (5, 0),
++ db_ver_list = ((5, 3), (5, 2), (5, 1), (5, 0),
+ (4, 8), (4, 7), (4, 6), (4, 5), (4, 4), (4, 3), (4, 2))
+
+ # construct a list of paths to look for the header file in on
+