Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/gdbm/
Date: Tue, 19 Oct 2021 10:04:05
Message-Id: 1634637834.a245228a60625fc67b812c35feaa7c03e1bf5bb0.polynomial-c@gentoo
1 commit: a245228a60625fc67b812c35feaa7c03e1bf5bb0
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 19 09:57:43 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 19 10:03:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a245228a
7
8 sys-libs/gdbm: Bump to version 1.22
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-libs/gdbm/Manifest | 1 +
13 sys-libs/gdbm/gdbm-1.22.ebuild | 43 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/sys-libs/gdbm/Manifest b/sys-libs/gdbm/Manifest
17 index 7780aa02a3d..cc45ed4a87d 100644
18 --- a/sys-libs/gdbm/Manifest
19 +++ b/sys-libs/gdbm/Manifest
20 @@ -2,3 +2,4 @@ DIST gdbm-1.19.tar.gz 967861 BLAKE2B 92a1a9c461c763b01d7abced58800aa8db200ae7462
21 DIST gdbm-1.20.tar.gz 987628 BLAKE2B b0e01e63714b0485f9ac28f4a2260bf9309d2b3a87f6ccf6c9901619d383b6527d068b8614220eb6a6dec909fbf3fab5162a6c67bb928cfedaef36f1df26d0df SHA512 5f2fbd4318259e5b879ea2bff09e22defbb4e566ebbe11c44ac5b5369fd00745d7ed9f72ec1206153027eba245c4ee4a515a8ec6d67f84ec477483e72753590b
22 DIST gdbm-1.21-gettext-ac.patch.gz 7142 BLAKE2B 1cb4eed1dbea047e115b13831ab2c6af9b639c48324c83b60ee926e7731a4b59fb779aaea8508d12fd5e5d64328464768a153135a555c1783086e4d1e981d86f SHA512 714dc008b5d5a5882f13c8bfc889e04a0b2c142a06ffe479f3ba3b21e8d6f08f579d1b111237ad9e1987d9aae27f67b4689aa3cd664c2adadb1bb856497ed3f8
23 DIST gdbm-1.21.tar.gz 1005982 BLAKE2B 1f9b04507601b9660a9a81edc29e9b7c0d9adececf21e372670bcf1acf3d0551d858af3e7cf9202b460691cc851ca6dfcc5014ae28161b06f31c9442d3a9fe96 SHA512 b2a31802d1af9f97b24d3dd01cb048bab4a8e748297f1b70851c0342400dde4281242b7f80bd92a36035e22398d240d131b550ab444ee838a077522a6921fa43
24 +DIST gdbm-1.22.tar.gz 1090100 BLAKE2B f27c65e8cc7c71fc4f4a119b92e1d1b2068c1ec87456d5a555879dc23654ad4e7cf8172049aa9f4f9c432cc7140ff61fc36ddf6d5e45c321add67a105754a59c SHA512 67461fc4f41e825d0134175ff99c913ccb4aa7ea3d0f64f32bdedbc7677b3ecabd2c525ac6b2ee47a9561e002e4224e492b72088d57bb4862a1f8c089521ec51
25
26 diff --git a/sys-libs/gdbm/gdbm-1.22.ebuild b/sys-libs/gdbm/gdbm-1.22.ebuild
27 new file mode 100644
28 index 00000000000..ea2981b0de2
29 --- /dev/null
30 +++ b/sys-libs/gdbm/gdbm-1.22.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit multilib-minimal
38 +
39 +DESCRIPTION="Standard GNU database libraries"
40 +HOMEPAGE="https://www.gnu.org/software/gdbm/"
41 +SRC_URI="mirror://gnu/gdbm/${P}.tar.gz"
42 +
43 +LICENSE="GPL-3"
44 +SLOT="0/6" # libgdbm.so version
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 +IUSE="+berkdb nls +readline static-libs"
47 +
48 +DEPEND="
49 + readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
50 +"
51 +RDEPEND="${DEPEND}"
52 +
53 +multilib_src_configure() {
54 + # gdbm doesn't appear to use either of these libraries
55 + export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
56 +
57 + local myeconfargs=(
58 + --includedir="${EPREFIX}"/usr/include/gdbm
59 + $(use_enable berkdb libgdbm-compat)
60 + $(use_enable nls)
61 + $(use_enable static-libs static)
62 + $(use_with readline)
63 + )
64 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
65 +}
66 +
67 +multilib_src_install_all() {
68 + einstalldocs
69 +
70 + if ! use static-libs ; then
71 + find "${ED}" -name '*.la' -delete || die
72 + fi
73 + mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
74 +}