1 |
commit: 87ac2c93178e64c1e36a9cd01c0cd346cea6ce7d |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 6 12:53:57 2018 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 6 13:35:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87ac2c93 |
7 |
|
8 |
sci-libs/mmdb: Build shared libs |
9 |
|
10 |
Closes: https://bugs.gentoo.org/641534 |
11 |
Closes: https://bugs.gentoo.org/642944 |
12 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
14 |
|
15 |
sci-libs/mmdb/{mmdb-2.0.5.ebuild => mmdb-2.0.5-r1.ebuild} | 15 ++++++++++++++- |
16 |
1 file changed, 14 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/sci-libs/mmdb/mmdb-2.0.5.ebuild b/sci-libs/mmdb/mmdb-2.0.5-r1.ebuild |
19 |
similarity index 64% |
20 |
rename from sci-libs/mmdb/mmdb-2.0.5.ebuild |
21 |
rename to sci-libs/mmdb/mmdb-2.0.5-r1.ebuild |
22 |
index c19513a7729..d9a8ad2243d 100644 |
23 |
--- a/sci-libs/mmdb/mmdb-2.0.5.ebuild |
24 |
+++ b/sci-libs/mmdb/mmdb-2.0.5-r1.ebuild |
25 |
@@ -1,4 +1,4 @@ |
26 |
-# Copyright 1999-2017 Gentoo Foundation |
27 |
+# Copyright 1999-2018 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
|
30 |
EAPI=6 |
31 |
@@ -15,3 +15,16 @@ KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" |
32 |
IUSE="static-libs" |
33 |
|
34 |
S="${WORKDIR}"/${MY_P} |
35 |
+ |
36 |
+src_configure() { |
37 |
+ econf \ |
38 |
+ --enable-shared \ |
39 |
+ $(use_enable static-libs static) |
40 |
+} |
41 |
+ |
42 |
+src_install() { |
43 |
+ default |
44 |
+ if ! use static-libs; then |
45 |
+ find "${ED}" -name '*.la' -delete || die |
46 |
+ fi |
47 |
+} |