summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-15 04:02:42 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-15 04:02:42 +0000
commit739048ce5c230e6e3d7a4249e4a7a931376a8a5d (patch)
tree51d71df291fddec54b6948de68f21143af82ee61
parentUpdate EAPI. Fix dependencies. Set SUPPORT_PYTHON_ABIS. (diff)
downloadgentoo-2-739048ce5c230e6e3d7a4249e4a7a931376a8a5d.tar.gz
gentoo-2-739048ce5c230e6e3d7a4249e4a7a931376a8a5d.tar.bz2
gentoo-2-739048ce5c230e6e3d7a4249e4a7a931376a8a5d.zip
Version bump.
(Portage version: 2.2.0_alpha4_p23/cvs/Linux x86_64)
-rw-r--r--dev-python/bsddb3/ChangeLog8
-rw-r--r--dev-python/bsddb3/bsddb3-5.1.1.ebuild82
2 files changed, 89 insertions, 1 deletions
diff --git a/dev-python/bsddb3/ChangeLog b/dev-python/bsddb3/ChangeLog
index 4da53f069105..333c8a4072e2 100644
--- a/dev-python/bsddb3/ChangeLog
+++ b/dev-python/bsddb3/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/bsddb3
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.59 2010/11/07 19:59:13 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.60 2010/11/15 04:02:42 arfrever Exp $
+
+*bsddb3-5.1.1 (15 Nov 2010)
+
+ 15 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +bsddb3-5.1.1.ebuild:
+ Version bump.
*bsddb3-5.1.0 (07 Nov 2010)
diff --git a/dev-python/bsddb3/bsddb3-5.1.1.ebuild b/dev-python/bsddb3/bsddb3-5.1.1.ebuild
new file mode 100644
index 000000000000..b3320afad9ae
--- /dev/null
+++ b/dev-python/bsddb3/bsddb3-5.1.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.1.1.ebuild,v 1.1 2010/11/15 04:02:42 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2 3:3.1"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.0"
+
+inherit db-use distutils multilib
+
+DESCRIPTION="Python bindings for Berkeley DB"
+HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm http://pypi.python.org/pypi/bsddb3"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND=">=sys-libs/db-4.6"
+DEPEND="${RDEPEND}
+ dev-python/setuptools"
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
+DOCS="ChangeLog TODO.txt"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # Don't require bsddb module with Python 2.7.
+ sed -e "/finally :/i\ except ImportError: pass" -i setup2.py
+}
+
+src_configure() {
+ local DB_VER
+ if has_version sys-libs/db:5.1; then
+ DB_VER="5.1"
+ elif has_version sys-libs/db:5.0; then
+ DB_VER="5.0"
+ elif has_version sys-libs/db:4.8; then
+ DB_VER="4.8"
+ elif has_version sys-libs/db:4.7; then
+ DB_VER="4.7"
+ else
+ DB_VER="4.6"
+ fi
+
+ sed -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" -i setup2.py setup3.py || die "sed failed"
+}
+
+src_compile() {
+ distutils_src_compile \
+ --berkeley-db="${EPREFIX}/usr" \
+ --berkeley-db-incdir="${EPREFIX}$(db_includedir ${DB_VER})" \
+ --berkeley-db-libdir="${EPREFIX}/usr/$(get_libdir)"
+}
+
+src_test() {
+ tests() {
+ rm -f build
+ ln -s build-${PYTHON_ABI} build
+
+ echo TMPDIR="${T}/tests-${PYTHON_ABI}" "$(PYTHON)" test.py
+ TMPDIR="${T}/tests-${PYTHON_ABI}" "$(PYTHON)" test.py
+ }
+ python_execute_function tests
+}
+
+src_install() {
+ distutils_src_install
+
+ delete_tests() {
+ rm -fr "${ED}$(python_get_sitedir)/bsddb3/tests"
+ }
+ python_execute_function -q delete_tests
+
+ if use doc; then
+ dohtml -r docs/html/* || die "dohtml failed"
+ fi
+}