sci-libs/mmdb: Build shared libs
authorJustin Lecher <jlec@gentoo.org>
Sat, 6 Jan 2018 12:53:57 +0000 (12:53 +0000)
committerJustin Lecher <jlec@gentoo.org>
Sat, 6 Jan 2018 13:35:36 +0000 (13:35 +0000)
Closes: https://bugs.gentoo.org/641534
Closes: https://bugs.gentoo.org/642944
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sci-libs/mmdb/mmdb-2.0.5-r1.ebuild [moved from sci-libs/mmdb/mmdb-2.0.5.ebuild with 64% similarity]

similarity index 64%
rename from sci-libs/mmdb/mmdb-2.0.5.ebuild
rename to sci-libs/mmdb/mmdb-2.0.5-r1.ebuild
index c19513a77290823d13f8eeeb7659fc720cf5f218..d9a8ad2243da4f39f202f2bae9a683e5d075f69a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -15,3 +15,16 @@ KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
 IUSE="static-libs"
 
 S="${WORKDIR}"/${MY_P}
+
+src_configure() {
+       econf \
+               --enable-shared \
+               $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       if ! use static-libs; then
+               find "${ED}" -name '*.la' -delete || die
+       fi
+}