diff options
author | root <root@rshg054.dnsready.net> | 2012-01-10 23:15:00 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-01-10 23:15:00 +0000 |
commit | b8012183bbaae70ce4a714c618a967e85df9f521 (patch) | |
tree | 1df6f612c4f75faa9f54467e0a856bcdde0b6a1a /community-testing/python-bsddb | |
parent | fdcaf644692e151ddc596b148465ce4a77e6b670 (diff) |
Tue Jan 10 23:14:59 UTC 2012
Diffstat (limited to 'community-testing/python-bsddb')
-rw-r--r-- | community-testing/python-bsddb/LICENSE | 19 | ||||
-rw-r--r-- | community-testing/python-bsddb/PKGBUILD | 55 | ||||
-rw-r--r-- | community-testing/python-bsddb/db_5.3.patch | 20 |
3 files changed, 94 insertions, 0 deletions
diff --git a/community-testing/python-bsddb/LICENSE b/community-testing/python-bsddb/LICENSE new file mode 100644 index 000000000..7d6035775 --- /dev/null +++ b/community-testing/python-bsddb/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2008-2009 Jesus Cea Avion + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.
\ No newline at end of file diff --git a/community-testing/python-bsddb/PKGBUILD b/community-testing/python-bsddb/PKGBUILD new file mode 100644 index 000000000..8f7c2fb53 --- /dev/null +++ b/community-testing/python-bsddb/PKGBUILD @@ -0,0 +1,55 @@ +# $Id: PKGBUILD 61884 2012-01-09 18:50:28Z stephane $ +# Maintainer: Kaiting Chen <kaitocracy@gmail.com> +# Contributor: Stéphane Gaudreault <stephane@archlinux.org> +# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com> +# Contributor: William Rea <sillywilly@gmail.com> + +pkgbase=python-bsddb +pkgname=('python2-bsddb' 'python-bsddb') +pkgver=5.2.0 +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 + cd bsddb3-${pkgver} + python setup.py --berkeley-db=/usr build + + # Build python 2 module + cd ../bsddb3-${pkgver}-python2 + python2 setup.py --berkeley-db=/usr build +} + +package_python2-bsddb() { + depends=('db' 'python2>=2.7') + cd "${srcdir}/bsddb3-${pkgver}-python2" + + python2 setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} + +package_python-bsddb() { + depends=('db' 'python>=3.2') + cd "${srcdir}/bsddb3-${pkgver}" + + python setup.py --berkeley-db=/usr install --root="${pkgdir}" --skip-build --optimize=1 + install -Dm644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +} diff --git a/community-testing/python-bsddb/db_5.3.patch b/community-testing/python-bsddb/db_5.3.patch new file mode 100644 index 000000000..6ea4d18bb --- /dev/null +++ b/community-testing/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 + |