Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/gdbm/
Date: Mon, 07 Feb 2022 01:22:35
Message-Id: 1644196098.f7e9e6af2ae8a6908d1cf5093565683d8cfe6525.sam@gentoo
1 commit: f7e9e6af2ae8a6908d1cf5093565683d8cfe6525
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 7 00:56:08 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 7 01:08:18 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7e9e6af
7
8 sys-libs/gdbm: add 1.23
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-libs/gdbm/Manifest | 1 +
13 sys-libs/gdbm/gdbm-1.23.ebuild | 43 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/sys-libs/gdbm/Manifest b/sys-libs/gdbm/Manifest
17 index 32567a6b6fb8..55fa566e2012 100644
18 --- a/sys-libs/gdbm/Manifest
19 +++ b/sys-libs/gdbm/Manifest
20 @@ -1 +1,2 @@
21 DIST gdbm-1.22.tar.gz 1090100 BLAKE2B f27c65e8cc7c71fc4f4a119b92e1d1b2068c1ec87456d5a555879dc23654ad4e7cf8172049aa9f4f9c432cc7140ff61fc36ddf6d5e45c321add67a105754a59c SHA512 67461fc4f41e825d0134175ff99c913ccb4aa7ea3d0f64f32bdedbc7677b3ecabd2c525ac6b2ee47a9561e002e4224e492b72088d57bb4862a1f8c089521ec51
22 +DIST gdbm-1.23.tar.gz 1115854 BLAKE2B a47746577cf2f3c9b62faea496c4d6a50a8f1b0a5af448cb2215e90057c99b5b630ba3f5357c85dfb7fd98ba4e90969e30a779120c29106ed1e8736721f9bec1 SHA512 918080cb0225b221c11eb7339634a95e00c526072395f7a3d46ccf42ef020dea7c4c5bec34aff2c4f16033e1fff6583252b7e978f68b8d7f8736b0e025838e10
23
24 diff --git a/sys-libs/gdbm/gdbm-1.23.ebuild b/sys-libs/gdbm/gdbm-1.23.ebuild
25 new file mode 100644
26 index 000000000000..621facf084e4
27 --- /dev/null
28 +++ b/sys-libs/gdbm/gdbm-1.23.ebuild
29 @@ -0,0 +1,43 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit multilib-minimal
36 +
37 +DESCRIPTION="Standard GNU database libraries"
38 +HOMEPAGE="https://www.gnu.org/software/gdbm/"
39 +SRC_URI="mirror://gnu/gdbm/${P}.tar.gz"
40 +
41 +LICENSE="GPL-3"
42 +SLOT="0/6" # libgdbm.so version
43 +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"
44 +IUSE="+berkdb nls +readline static-libs"
45 +
46 +DEPEND="readline? ( sys-libs/readline:=[${MULTILIB_USEDEP}] )"
47 +RDEPEND="${DEPEND}"
48 +
49 +multilib_src_configure() {
50 + # gdbm doesn't appear to use either of these libraries
51 + export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no
52 +
53 + local myeconfargs=(
54 + --includedir="${EPREFIX}"/usr/include/gdbm
55 + $(use_enable berkdb libgdbm-compat)
56 + $(use_enable nls)
57 + $(use_enable static-libs static)
58 + $(use_with readline)
59 + )
60 +
61 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
62 +}
63 +
64 +multilib_src_install_all() {
65 + einstalldocs
66 +
67 + if ! use static-libs ; then
68 + find "${ED}" -name '*.la' -delete || die
69 + fi
70 +
71 + mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die
72 +}