diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-14 00:47:11 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-04-14 00:47:11 +0000 |
commit | f4e421094162aad33f748d1ffc7a26ba4e63039c (patch) | |
tree | 800266af8e4c55b68c364a7bdf5a56dc51456837 /dev-python/bsddb3 | |
parent | old (diff) | |
download | gentoo-2-f4e421094162aad33f748d1ffc7a26ba4e63039c.tar.gz gentoo-2-f4e421094162aad33f748d1ffc7a26ba4e63039c.tar.bz2 gentoo-2-f4e421094162aad33f748d1ffc7a26ba4e63039c.zip |
Version bump.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/bsddb3')
-rw-r--r-- | dev-python/bsddb3/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/bsddb3/bsddb3-5.0.0.ebuild | 74 |
2 files changed, 81 insertions, 1 deletions
diff --git a/dev-python/bsddb3/ChangeLog b/dev-python/bsddb3/ChangeLog index 19244dc05067..5767bc79fe7f 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.51 2010/04/11 12:45:43 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/bsddb3/ChangeLog,v 1.52 2010/04/14 00:47:11 arfrever Exp $ + +*bsddb3-5.0.0 (14 Apr 2010) + + 14 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + +bsddb3-5.0.0.ebuild: + Version bump. 11 Apr 2010; <nixnut@gentoo.org> bsddb3-4.8.3.ebuild: ppc stable #302680 diff --git a/dev-python/bsddb3/bsddb3-5.0.0.ebuild b/dev-python/bsddb3/bsddb3-5.0.0.ebuild new file mode 100644 index 000000000000..8aec327c1157 --- /dev/null +++ b/dev-python/bsddb3/bsddb3-5.0.0.ebuild @@ -0,0 +1,74 @@ +# 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.0.0.ebuild,v 1.1 2010/04/14 00:47:11 arfrever Exp $ + +EAPI="3" +PYTHON_DEPEND="2 3:3.1" +SUPPORT_PYTHON_ABIS="1" + +inherit db-use distutils eutils multilib + +DESCRIPTION="Python bindings for Berkeley DB" +HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm http://pypi.python.org/pypi/bsddb3" +SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86" +IUSE="" +# Documentation missing in >=4.8.2 tarball. +# IUSE="doc" + +RDEPEND=">=sys-libs/db-4.6" +DEPEND="${RDEPEND} + dev-python/setuptools" +# doc? ( dev-python/sphinx ) +RESTRICT_PYTHON_ABIS="3.0" + +DOCS="TODO.txt" + +src_compile() { + local DB_VER + if 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 -i \ + -e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" \ + setup2.py setup3.py || die "sed failed" + + distutils_src_compile \ + "--berkeley-db=${EPREFIX}/usr" \ + "--berkeley-db-incdir=${EPREFIX}$(db_includedir ${DB_VER})" \ + "--berkeley-db-libdir=${EPREFIX}/usr/$(get_libdir)" + +# if use doc; then +# mkdir html +# sphinx-build docs html || die "Generation of documentation failed" +# fi +} + +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 + + rm -fr "${ED}"usr/lib*/python*/site-packages/${PN}/tests + +# use doc && dohtml -r html/* +} |