diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2012-03-01 16:42:21 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2012-03-01 16:42:21 +0000 |
commit | d1536db7be09457bce3618032544952340468420 (patch) | |
tree | b024ada20fdee29516535304cac21935bdd7db78 /dev-python/bsddb3 | |
parent | Fix Header. Drop default same-as-perl license. Currently the dependencies are... (diff) | |
download | gentoo-2-d1536db7be09457bce3618032544952340468420.tar.gz gentoo-2-d1536db7be09457bce3618032544952340468420.tar.bz2 gentoo-2-d1536db7be09457bce3618032544952340468420.zip |
Version bump bsddb3 to 5.3.0 for bug 404161.
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/bsddb3')
-rw-r--r-- | dev-python/bsddb3/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/bsddb3/bsddb3-5.3.0.ebuild | 70 |
2 files changed, 76 insertions, 1 deletions
diff --git a/dev-python/bsddb3/ChangeLog b/dev-python/bsddb3/ChangeLog index abe24350d264..ad412c434b5b 100644 --- a/dev-python/bsddb3/ChangeLog +++ b/dev-python/bsddb3/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/bsddb3 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.72 2012/02/22 04:59:02 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.73 2012/03/01 16:42:21 djc Exp $ + +*bsddb3-5.3.0 (01 Mar 2012) + + 01 Mar 2012; Dirkjan Ochtman <djc@gentoo.org> +bsddb3-5.3.0.ebuild: + Version bump to 5.3.0 for bug 404161 (thanks to Ian Delaney). 22 Feb 2012; Patrick Lauer <patrick@gentoo.org> bsddb3-5.1.2.ebuild, bsddb3-5.2.0.ebuild: diff --git a/dev-python/bsddb3/bsddb3-5.3.0.ebuild b/dev-python/bsddb3/bsddb3-5.3.0.ebuild new file mode 100644 index 000000000000..d8e175ac08ca --- /dev/null +++ b/dev-python/bsddb3/bsddb3-5.3.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2012 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.1 2012/03/01 16:42:21 djc Exp $ + +EAPI="3" +PYTHON_DEPEND="2 3:3.1" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.0 *-jython" + +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.8.30" +DEPEND="${RDEPEND} + dev-python/setuptools" + +PYTHON_CFLAGS=("2.* + -fno-strict-aliasing") + +DOCS="ChangeLog TODO.txt" + +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_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 +} |