1 |
commit: cdea7ddd380498800f12646a5a959376bbe0c74c |
2 |
Author: David Michael <fedora.dm0 <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Sep 3 12:35:13 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 7 20:43:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdea7ddd |
7 |
|
8 |
sys-libs/gdbm: EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/739300 |
11 |
Package-Manager: Portage-3.0.4, Repoman-2.3.23 |
12 |
Signed-off-by: David Michael <fedora.dm0 <AT> gmail.com> |
13 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
14 |
|
15 |
sys-libs/gdbm/gdbm-1.18.1-r1.ebuild | 50 +++++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 50 insertions(+) |
17 |
|
18 |
diff --git a/sys-libs/gdbm/gdbm-1.18.1-r1.ebuild b/sys-libs/gdbm/gdbm-1.18.1-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..0a1c428f7d4 |
21 |
--- /dev/null |
22 |
+++ b/sys-libs/gdbm/gdbm-1.18.1-r1.ebuild |
23 |
@@ -0,0 +1,50 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit autotools flag-o-matic multilib multilib-minimal |
30 |
+ |
31 |
+DESCRIPTION="Standard GNU database libraries" |
32 |
+HOMEPAGE="https://www.gnu.org/software/gdbm/" |
33 |
+SRC_URI="mirror://gnu/gdbm/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-3" |
36 |
+SLOT="0/6" # libgdbm.so version |
37 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
38 |
+IUSE="+berkdb nls +readline static-libs" |
39 |
+ |
40 |
+DEPEND=" |
41 |
+ readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] ) |
42 |
+" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+PATCHES=("${FILESDIR}"/${PN}-1.18.1-gcc-10.patch) |
46 |
+ |
47 |
+src_prepare() { |
48 |
+ default |
49 |
+ eautoreconf |
50 |
+} |
51 |
+ |
52 |
+multilib_src_configure() { |
53 |
+ # gdbm doesn't appear to use either of these libraries |
54 |
+ export ac_cv_lib_dbm_main=no ac_cv_lib_ndbm_main=no |
55 |
+ |
56 |
+ local myeconfargs=( |
57 |
+ --includedir="${EPREFIX}"/usr/include/gdbm |
58 |
+ $(use_enable berkdb libgdbm-compat) |
59 |
+ $(use_enable nls) |
60 |
+ $(use_enable static-libs static) |
61 |
+ $(use_with readline) |
62 |
+ ) |
63 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
64 |
+} |
65 |
+ |
66 |
+multilib_src_install_all() { |
67 |
+ einstalldocs |
68 |
+ |
69 |
+ if ! use static-libs ; then |
70 |
+ find "${ED}" -name '*.la' -delete || die |
71 |
+ fi |
72 |
+ mv "${ED}"/usr/include/gdbm/gdbm.h "${ED}"/usr/include/ || die |
73 |
+} |