commit:     f58dd73958f644927a4be9336c8cd1952ec5244a
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 29 12:22:18 2018 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Sep 29 13:29:07 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f58dd739

app-crypt/libmd: Add USE=static-libs

Package-Manager: Portage-2.3.50, Repoman-2.3.11
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 app-crypt/libmd/libmd-1.0.0-r1.ebuild | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/app-crypt/libmd/libmd-1.0.0-r1.ebuild 
b/app-crypt/libmd/libmd-1.0.0-r1.ebuild
new file mode 100644
index 00000000000..61a43ba2c9e
--- /dev/null
+++ b/app-crypt/libmd/libmd-1.0.0-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit multilib
+
+DESCRIPTION="Message Digest functions from BSD systems"
+HOMEPAGE="https://www.hadrons.org/software/libmd/";
+SRC_URI="https://archive.hadrons.org/software/libmd/${P}.tar.xz";
+
+LICENSE="|| ( BSD BSD-2 ISC BEER-WARE public-domain )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="static-libs"
+
+src_configure() {
+       econf $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+
+       if ! use static-libs; then
+               rm "${D}"/usr/$(get_libdir)/libmd.la || die
+       fi
+}

Reply via email to