From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bsddb3/
Date: Sun, 17 Jan 2021 16:16:07 +0000 (UTC) [thread overview]
Message-ID: <1610900161.24d91b11bc9132fa9b08c7260d76a87c755e6ae0.sam@gentoo> (raw)
commit: 24d91b11bc9132fa9b08c7260d76a87c755e6ae0
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 17 15:58:40 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 17 16:16:01 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24d91b11
dev-python/bsddb3: bump to 6.2.9
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-python/bsddb3/Manifest | 1 +
dev-python/bsddb3/bsddb3-6.2.9.ebuild | 62 +++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
diff --git a/dev-python/bsddb3/Manifest b/dev-python/bsddb3/Manifest
index 405c500854b..24805577e20 100644
--- a/dev-python/bsddb3/Manifest
+++ b/dev-python/bsddb3/Manifest
@@ -1 +1,2 @@
DIST bsddb3-6.2.7.tar.gz 437325 BLAKE2B ed7931a32766338c5674cc017a8528d30acf9397443f270bf93974c9ed7ae4abdc6b704d85d48f68e0c4b6d85c4ad71edf891e342e5f9b9a597453140adde742 SHA512 edd85fb697142ac152a10a299899c52b637a3b1e3d28d913c61f9de91ef292fc2055daeb18fca62242284b4189a61d5bf318aca6e2966849879043a46db000e0
+DIST bsddb3-6.2.9.tar.gz 230475 BLAKE2B 68c7c498d581dd5ca860060a3152f7ae135bbc75d00714764446d071e8ea88d303a73d1aa411db1ff8fc922aa6d486632fe38bef3596550150ed511a97fc9c9c SHA512 9e878ef865cba608fafe4274b660234927b9106323c3e4ddd728682b0f11b3c7edb9a3dd56cdfe8665eba890df4121695c9710b95bb2f43b8a0be3ec4050f61e
diff --git a/dev-python/bsddb3/bsddb3-6.2.9.ebuild b/dev-python/bsddb3/bsddb3-6.2.9.ebuild
new file mode 100644
index 00000000000..3851c82e606
--- /dev/null
+++ b/dev-python/bsddb3/bsddb3-6.2.9.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+PYTHON_REQ_USE="threads(+)"
+DISTUTILS_USE_SETUPTOOLS=no
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit db-use distutils-r1
+
+DESCRIPTION="Python bindings for Berkeley DB"
+HOMEPAGE="https://www.jcea.es/programacion/pybsddb.htm https://pypi.org/project/bsddb3/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ <sys-libs/db-6.3:=
+ || (
+ sys-libs/db:6.2
+ sys-libs/db:6.1
+ sys-libs/db:5.3
+ sys-libs/db:5.1
+ sys-libs/db:4.8
+ sys-libs/db:4.7
+ )"
+DEPEND="${RDEPEND}"
+
+python_prepare_all() {
+ # This list should be kept in sync with setup.py.
+ if [[ -z ${DB_VER} ]]; then
+ for DB_VER in 6.2 6.1 5.3 5.1 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_python_prepare_all
+}
+
+python_configure_all() {
+ # 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_test() {
+ PYTHONPATH=Lib3 "${EPYTHON}" test3.py -v || die "Testing failed with ${EPYTHON}"
+}
next reply other threads:[~2021-01-17 16:16 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-17 16:16 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-04 16:11 [gentoo-commits] repo/gentoo:master commit in: dev-python/bsddb3/ Michał Górny
2023-02-16 3:29 Sam James
2022-05-18 11:16 Andrew Ammerlaan
2021-08-24 21:02 Marek Szuba
2021-03-03 23:03 Sam James
2021-03-03 18:59 Sam James
2021-03-02 4:40 Sam James
2021-03-02 3:49 Sam James
2021-03-02 2:34 Sam James
2021-03-02 1:37 Sam James
2021-03-02 1:36 Sam James
2020-08-14 23:22 Andreas Sturmlechner
2020-08-01 21:23 Michał Górny
2020-06-06 19:31 Mart Raudsepp
2020-06-05 16:10 Sergei Trofimovich
2020-06-04 6:35 Agostino Sarubbo
2020-06-04 6:23 Agostino Sarubbo
2020-06-03 15:17 Agostino Sarubbo
2020-06-03 15:12 Agostino Sarubbo
2020-06-01 20:51 Sergei Trofimovich
2020-06-01 19:52 Sergei Trofimovich
2020-04-20 23:10 Marek Szuba
2020-04-15 5:33 Mike Gilbert
2019-05-21 22:43 Aaron Bauman
2019-04-21 12:19 David Seifert
2019-02-18 15:09 Alexis Ballier
2018-03-21 5:55 Markus Meier
2018-03-13 19:52 Michał Górny
2018-01-06 19:55 Sergei Trofimovich
2017-12-28 14:03 Sergei Trofimovich
2017-12-28 12:29 Sergei Trofimovich
2017-12-06 22:34 Sergei Trofimovich
2017-12-02 20:55 Mike Gilbert
2017-11-30 20:19 Tobias Klausmann
2017-06-15 14:23 Anthony G. Basile
2017-05-05 14:25 Manuel Rüger
2017-01-30 18:56 Lars Wendler
2017-01-30 18:56 Lars Wendler
2016-06-22 16:30 Mike Gilbert
2016-06-22 16:26 Mike Gilbert
2016-06-17 3:40 Mike Gilbert
2016-01-24 6:36 Jeroen Roovers
2016-01-14 21:56 Markus Meier
2016-01-05 10:49 Agostino Sarubbo
2015-11-08 16:06 Justin Lecher
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=1610900161.24d91b11bc9132fa9b08c7260d76a87c755e6ae0.sam@gentoo \
--to=sam@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