summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2013-05-28 19:00:19 +0000
committerIan Delaney <idella4@gentoo.org>2013-05-28 19:00:19 +0000
commit278970eff9bffc57f6669c7e90e591cfd85084ae (patch)
treebb721be8013cb074743ae3d1005ebc97c7ddac4e /dev-python/bsddb3
parentVersion bump, drop old, vala stuff is always needed at build time (diff)
downloadgentoo-2-278970eff9bffc57f6669c7e90e591cfd85084ae.tar.gz
gentoo-2-278970eff9bffc57f6669c7e90e591cfd85084ae.tar.bz2
gentoo-2-278970eff9bffc57f6669c7e90e591cfd85084ae.zip
revbump, migrate -> distutils-r1, tes fail cited wrt Bug #470976
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/bsddb3')
-rw-r--r--dev-python/bsddb3/ChangeLog8
-rw-r--r--dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild71
-rw-r--r--dev-python/bsddb3/bsddb3-5.3.0.ebuild6
3 files changed, 81 insertions, 4 deletions
diff --git a/dev-python/bsddb3/ChangeLog b/dev-python/bsddb3/ChangeLog
index e6d79658afd1..29395b398130 100644
--- a/dev-python/bsddb3/ChangeLog
+++ b/dev-python/bsddb3/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/bsddb3
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.86 2013/02/02 22:28:13 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.87 2013/05/28 19:00:19 idella4 Exp $
+
+*bsddb3-5.3.0-r1 (28 May 2013)
+
+ 28 May 2013; Ian Delaney <idella4@gentoo.org> +bsddb3-5.3.0-r1.ebuild,
+ bsddb3-5.3.0.ebuild:
+ revbump, migrate -> distutils-r1, tes fail cited wrt Bug #470976
02 Feb 2013; Agostino Sarubbo <ago@gentoo.org> bsddb3-5.3.0.ebuild:
Add ~arm, wrt bug #449220
diff --git a/dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild b/dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild
new file mode 100644
index 000000000000..d2596888b5da
--- /dev/null
+++ b/dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0-r1.ebuild,v 1.1 2013/05/28 19:00:19 idella4 Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_2,3_3} )
+
+inherit db-use distutils-r1 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="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND=">=sys-libs/db-4.8.30"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
+DOCS=( ChangeLog TODO.txt )
+DISTUTILS_IN_SOURCE_BUILD=1
+
+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"
+ else
+ DB_VER="4.8"
+ fi
+ sed -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" -i setup2.py setup3.py || die "sed failed"
+}
+
+src_compile() {
+ distutils-r1_src_compile \
+ --berkeley-db="${EPREFIX}/usr" \
+ --berkeley-db-incdir="${EPREFIX}$(db_includedir ${DB_VER})" \
+ --berkeley-db-libdir="${EPREFIX}/usr/$(get_libdir)"
+}
+
+python_test() {
+ # https://sourceforge.net/p/pybsddb/bugs/72/
+ pushd "${BUILD_DIR}"/../ > /dev/null
+ if [[ "${EPYTHON}" == python2* ]]; then
+ "${PYTHON}" build/lib/bsddb3/tests/test_all.py
+ elif [[ "${EPYTHON}" == python3* ]]; then
+ "${PYTHON}" setup.py build
+ einfo "all 500 tests are run silently and may take a number of minutes to complete"
+ "${PYTHON}" ./test3.py
+ fi
+}
+
+python_install() {
+ rm -fr "${ED}$(python_get_sitedir)/bsddb3/tests"
+
+ if use doc; then
+ dohtml -r docs/html/* || die "dohtml failed"
+ fi
+ distutils-r1_python_install
+}
+
+python_install_all() {
+ local HTML_DOCS=( docs/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/bsddb3/bsddb3-5.3.0.ebuild b/dev-python/bsddb3/bsddb3-5.3.0.ebuild
index 6fa6181e43b7..996d88196589 100644
--- a/dev-python/bsddb3/bsddb3-5.3.0.ebuild
+++ b/dev-python/bsddb3/bsddb3-5.3.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild,v 1.11 2013/02/02 22:28:13 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/bsddb3-5.3.0.ebuild,v 1.12 2013/05/28 19:00:19 idella4 Exp $
EAPI="3"
PYTHON_DEPEND="2 3:3.1"
@@ -38,8 +38,8 @@ src_configure() {
sed -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" -i setup2.py setup3.py || die "sed failed"
}
-src_compile() {
- distutils_src_compile \
+python_compile() {
+ distutils-r1_python_compile \
--berkeley-db="${EPREFIX}/usr" \
--berkeley-db-incdir="${EPREFIX}$(db_includedir ${DB_VER})" \
--berkeley-db-libdir="${EPREFIX}/usr/$(get_libdir)"