1 |
commit: 85491b18e423158453e025e53b7a29f959da17f7 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 17 21:47:03 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 17 21:47:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85491b18 |
7 |
|
8 |
sys-libs/gdbm: Bump to version 1.20 |
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.20.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/gdbm/Manifest b/sys-libs/gdbm/Manifest |
17 |
index 17eea7760c5..e221d379cbd 100644 |
18 |
--- a/sys-libs/gdbm/Manifest |
19 |
+++ b/sys-libs/gdbm/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST gdbm-1.19.tar.gz 967861 BLAKE2B 92a1a9c461c763b01d7abced58800aa8db200ae746240c8ef8079a615d920efe95f0d805a8cfa63d8aa6bcbda637bcb07d98d630f58de5678b7633c3fcf6bf9b SHA512 118c5b8cdf74898bfb7c2100302fedf80096be017bf08e80a44486563cad5d93b93567622f2e7c7aceb72f30460504bd0b4ddfccf34df994ed65166e12ecd495 |
22 |
+DIST gdbm-1.20.tar.gz 987628 BLAKE2B b0e01e63714b0485f9ac28f4a2260bf9309d2b3a87f6ccf6c9901619d383b6527d068b8614220eb6a6dec909fbf3fab5162a6c67bb928cfedaef36f1df26d0df SHA512 5f2fbd4318259e5b879ea2bff09e22defbb4e566ebbe11c44ac5b5369fd00745d7ed9f72ec1206153027eba245c4ee4a515a8ec6d67f84ec477483e72753590b |
23 |
|
24 |
diff --git a/sys-libs/gdbm/gdbm-1.20.ebuild b/sys-libs/gdbm/gdbm-1.20.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..36ea91f14e6 |
27 |
--- /dev/null |
28 |
+++ b/sys-libs/gdbm/gdbm-1.20.ebuild |
29 |
@@ -0,0 +1,52 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit autotools 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=" |
47 |
+ readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) |
48 |
+" |
49 |
+RDEPEND="${DEPEND}" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}"/${PN}-1.18.1-gettext.patch #696838 |
53 |
+) |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ default |
57 |
+ eautoreconf |
58 |
+} |
59 |
+ |
60 |
+multilib_src_configure() { |
61 |
+ # gdbm doesn't appear to use either of these libraries |
62 |
+ export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no |
63 |
+ |
64 |
+ local myeconfargs=( |
65 |
+ --includedir="${EPREFIX}"/usr/include/gdbm |
66 |
+ $(use_enable berkdb libgdbm-compat) |
67 |
+ $(use_enable nls) |
68 |
+ $(use_enable static-libs static) |
69 |
+ $(use_with readline) |
70 |
+ ) |
71 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
72 |
+} |
73 |
+ |
74 |
+multilib_src_install_all() { |
75 |
+ einstalldocs |
76 |
+ |
77 |
+ if ! use static-libs ; then |
78 |
+ find "${ED}" -name '*.la' -delete || die |
79 |
+ fi |
80 |
+ mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die |
81 |
+} |