Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/tdb/
Date: Sun, 25 Jul 2021 10:52:19
Message-Id: 1627210318.68d510080396b8c5c6d285aaf596210770cf7e14.soap@gentoo
1 commit: 68d510080396b8c5c6d285aaf596210770cf7e14
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 25 10:51:58 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 25 10:51:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68d51008
7
8 sys-libs/tdb: add 1.4.5
9
10 Bug: https://bugs.gentoo.org/803386
11 Bug: https://bugs.gentoo.org/803920
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 sys-libs/tdb/Manifest | 1 +
15 sys-libs/tdb/tdb-1.4.5.ebuild | 59 +++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 60 insertions(+)
17
18 diff --git a/sys-libs/tdb/Manifest b/sys-libs/tdb/Manifest
19 index 225967fb158..8b152902bb2 100644
20 --- a/sys-libs/tdb/Manifest
21 +++ b/sys-libs/tdb/Manifest
22 @@ -1,2 +1,3 @@
23 DIST tdb-1.4.3.tar.gz 702836 BLAKE2B 6593c3be527b383a7e8fd85b3613cf2429f6b665a7c609a56f57a6f5b41a080c1a681d712afd423c2bc1c741e06d7cd2c90949d9c5bf78ca834b18c64e23d51c SHA512 99488839e7da396f04df60412d21a7d3e09efeab52772d6cb5e9470a3dfd585d73ef2422c51cd0d8ccc123a65d455de400d5d6b24a21a2a50d3da60d9a70e67a
24 DIST tdb-1.4.4.tar.gz 714367 BLAKE2B fdd84fc76a428b3b98ca481a9ef42c46d21f67f6ca8d92a90e6f0c1d24aa8f1f3b773c8fdcb43b572f8a1441349af491cb5d4ad9440d0b95fb51b89591510e27 SHA512 ef0a997aacebcc804e84ec4a14de8189513ddd1083ba677e421269c21a94f5ca8fc188185645855e5ef81417f4843c8649417ff28f286b768d690907d5d4cb07
25 +DIST tdb-1.4.5.tar.gz 729650 BLAKE2B 5d8a226cf251268d70f68759fb792628559fa3b10e7843d1a53914ea24f0ceca61fe0c3f348d704ebc8df4c56fe2365690b585b1c96cf53d63ecae1960aca58a SHA512 373b2ce5b2c68fbc28b7679f0e7531115b91ddc6a68b27acada39b995f66b508b19f24d712fc4388654199abd69857e53ebd435d1ed47e3a69ba85ff667fed56
26
27 diff --git a/sys-libs/tdb/tdb-1.4.5.ebuild b/sys-libs/tdb/tdb-1.4.5.ebuild
28 new file mode 100644
29 index 00000000000..e16b6ec87c6
30 --- /dev/null
31 +++ b/sys-libs/tdb/tdb-1.4.5.ebuild
32 @@ -0,0 +1,59 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{8..10} )
39 +PYTHON_REQ_USE="threads(+)"
40 +inherit waf-utils multilib-minimal python-single-r1
41 +
42 +DESCRIPTION="Simple database API"
43 +HOMEPAGE="https://tdb.samba.org/"
44 +SRC_URI="https://samba.org/ftp/tdb/${P}.tar.gz"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="python"
50 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
51 +RESTRICT="test"
52 +
53 +RDEPEND="
54 + !elibc_FreeBSD? ( dev-libs/libbsd[${MULTILIB_USEDEP}] )
55 + python? ( ${PYTHON_DEPS} )"
56 +DEPEND="${RDEPEND}"
57 +BDEPEND="${PYTHON_DEPS}
58 + app-text/docbook-xml-dtd:4.2"
59 +
60 +WAF_BINARY="${S}/buildtools/bin/waf"
61 +
62 +src_prepare() {
63 + default
64 + python_fix_shebang .
65 + multilib_copy_sources
66 +}
67 +
68 +multilib_src_configure() {
69 + local extra_opts=()
70 + if ! multilib_is_native_abi || ! use python ; then
71 + extra_opts+=( --disable-python )
72 + fi
73 +
74 + waf-utils_src_configure "${extra_opts[@]}"
75 +}
76 +
77 +multilib_src_compile() {
78 + # need to avoid parallel building, this looks like the sanest way with waf-utils/multiprocessing eclasses
79 + unset MAKEOPTS
80 + waf-utils_src_compile
81 +}
82 +
83 +multilib_src_test() {
84 + # the default src_test runs 'make test' and 'make check', letting
85 + # the tests fail occasionally (reason: unknown)
86 + emake check
87 +}
88 +
89 +multilib_src_install() {
90 + waf-utils_src_install
91 +}