public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bsddb3/
Date: Sun,  8 Nov 2015 16:06:53 +0000 (UTC)	[thread overview]
Message-ID: <1446998811.4758a65becf7fc2cf93b74880621d20c373d96e9.jlec@gentoo> (raw)

commit:     4758a65becf7fc2cf93b74880621d20c373d96e9
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  8 09:09:33 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Nov  8 16:06:51 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4758a65b

dev-python/bsddb3: Version Bump

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 dev-python/bsddb3/Manifest            |  1 +
 dev-python/bsddb3/bsddb3-6.1.1.ebuild | 75 +++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/dev-python/bsddb3/Manifest b/dev-python/bsddb3/Manifest
index 4eb8631..47240a9 100644
--- a/dev-python/bsddb3/Manifest
+++ b/dev-python/bsddb3/Manifest
@@ -1,2 +1,3 @@
 DIST bsddb3-6.0.1.tar.gz 347002 SHA256 abc34d83d6cbb40f1626ecc2b62e8163ba204f4bb6a65c23b125a171d224bf6d SHA512 14a35a4933f83f11267072956e0061053918974d556899ea7670e2e52f7fbf9cb9f64e1810323b60a63ece0576a6d2b1a2743adf2c06f7f1debba8dcc0f0b8da WHIRLPOOL a4441dd6ba6c2de6bacfe5584395059614087c6b8c01c61290bdba7e2a75d5ee7abed349f7519439828a5dafd48da46c91b98caed1b0fffe16c9201c79af0d71
 DIST bsddb3-6.1.0.tar.gz 340966 SHA256 b13163e3891c32390aea66edcf7880eb245abc89199a766b7b1907fc5c1efd15 SHA512 2c84f8fd8c5bcced843ea7f1f54511cc4845a75ac182b4f832b92800c4f230906bf5919cb7d10938e79272f0fe89a5ed9b3f90c02bf11ac651126e6982dcc0ff WHIRLPOOL b27e1c024705f64eb0cffd0bf87932af4dd9f3eb5bdbce40d2d6a250cd101be55ebf1f76c17ac6c40de9e28e0c84b9bfafd0c62d7c1950782eef8fa1137ebb3b
+DIST bsddb3-6.1.1.tar.gz 450571 SHA256 6f21b0252125c07798d784c164ef135ad153d226c01b290258ee1c5b9e7c4dd3 SHA512 f5e95edf2d18f04f4a306450a67ad675902b102cde9fdebd870727c2649ba7dd759206708c9225af871e0811e17812ef46c90ea6854eb3209ba36c86900ffb01 WHIRLPOOL c8552008d8de272ef665ca54ec134a8bf64e31c41b4738c9ff461d5d2f6c045f20bc9604bff2acbb86222d838649297d8e96060ec060f2da342ce0314e0b2211

diff --git a/dev-python/bsddb3/bsddb3-6.1.1.ebuild b/dev-python/bsddb3/bsddb3-6.1.1.ebuild
new file mode 100644
index 0000000..ddebf81
--- /dev/null
+++ b/dev-python/bsddb3/bsddb3-6.1.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
+
+inherit db-use distutils-r1 multilib
+
+DESCRIPTION="Python bindings for Berkeley DB"
+HOMEPAGE="http://www.jcea.es/programacion/pybsddb.htm https://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 ~amd64-linux ~x86-linux"
+IUSE="doc"
+
+RDEPEND="
+	>=sys-libs/db-4.7:=
+	<sys-libs/db-6.2:=
+"
+DEPEND="${RDEPEND}
+	dev-python/setuptools[${PYTHON_USEDEP}]"
+
+DISTUTILS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+	# This list should be kept in sync with setup.py.
+	if [[ -z ${DB_VER} ]]; then
+		for DB_VER in 6.1 6.0 5.3 5.2 5.1 5.0 4.8 4.7; do
+			has_version "sys-libs/db:${DB_VER}" && break
+		done
+	fi
+
+	# Force version.
+	sed -e "s/db_ver = None/db_ver = (${DB_VER%.*}, ${DB_VER#*.})/" \
+		-e "s/dblib = 'db'/dblib = '$(db_libname ${DB_VER})'/" \
+		-i setup2.py setup3.py || die
+
+	# Adjust test.py to look in build/lib.
+	sed -e "s/'lib.%s' % PLAT_SPEC/'lib'/" \
+		-i test2.py test3.py || die
+
+	distutils-r1_src_prepare
+}
+
+src_configure() {
+	# These are needed for both build and install.
+	export BERKELEYDB_DIR="${EPREFIX}/usr"
+	export BERKELEYDB_INCDIR="$(db_includedir ${DB_VER})"
+	export BERKELEYDB_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+	export YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1
+}
+
+python_compile() {
+	if ! python_is_python3; then
+		local -x CFLAGS="${CFLAGS} -fno-strict-aliasing"
+	fi
+	distutils-r1_python_compile
+}
+
+python_test() {
+	if python_is_python3; then
+		PYTHONPATH=Lib3 "${PYTHON}" test3.py -v || die "Testing failed with ${EPYTHON}"
+	else
+		PYTHONPATH=Lib "${PYTHON}" test.py -v || die "Testing failed with ${EPYTHON}"
+	fi
+}
+
+python_install_all() {
+	use doc && local HTML_DOCS=( docs/html/. )
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2015-11-08 16:06 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-08 16:06 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-01-05 10:49 [gentoo-commits] repo/gentoo:master commit in: dev-python/bsddb3/ Agostino Sarubbo
2016-01-14 21:56 Markus Meier
2016-01-24  6:36 Jeroen Roovers
2016-06-17  3:40 Mike Gilbert
2016-06-22 16:26 Mike Gilbert
2016-06-22 16:30 Mike Gilbert
2017-01-30 18:56 Lars Wendler
2017-01-30 18:56 Lars Wendler
2017-05-05 14:25 Manuel Rüger
2017-06-15 14:23 Anthony G. Basile
2017-11-30 20:19 Tobias Klausmann
2017-12-02 20:55 Mike Gilbert
2017-12-06 22:34 Sergei Trofimovich
2017-12-28 12:29 Sergei Trofimovich
2017-12-28 14:03 Sergei Trofimovich
2018-01-06 19:55 Sergei Trofimovich
2018-03-13 19:52 Michał Górny
2018-03-21  5:55 Markus Meier
2019-02-18 15:09 Alexis Ballier
2019-04-21 12:19 David Seifert
2019-05-21 22:43 Aaron Bauman
2020-04-15  5:33 Mike Gilbert
2020-04-20 23:10 Marek Szuba
2020-06-01 19:52 Sergei Trofimovich
2020-06-01 20:51 Sergei Trofimovich
2020-06-03 15:12 Agostino Sarubbo
2020-06-03 15:17 Agostino Sarubbo
2020-06-04  6:23 Agostino Sarubbo
2020-06-04  6:35 Agostino Sarubbo
2020-06-05 16:10 Sergei Trofimovich
2020-06-06 19:31 Mart Raudsepp
2020-08-01 21:23 Michał Górny
2020-08-14 23:22 Andreas Sturmlechner
2021-01-17 16:16 Sam James
2021-03-02  1:36 Sam James
2021-03-02  1:37 Sam James
2021-03-02  2:34 Sam James
2021-03-02  3:49 Sam James
2021-03-02  4:40 Sam James
2021-03-03 18:59 Sam James
2021-03-03 23:03 Sam James
2021-08-24 21:02 Marek Szuba
2022-05-18 11:16 Andrew Ammerlaan
2023-02-16  3:29 Sam James
2023-05-04 16:11 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1446998811.4758a65becf7fc2cf93b74880621d20c373d96e9.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox