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