app-crypt/libmd: Add USE=static-libs
authorJeroen Roovers <jer@gentoo.org>
Sat, 29 Sep 2018 12:22:18 +0000 (14:22 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 29 Sep 2018 13:29:07 +0000 (15:29 +0200)
Package-Manager: Portage-2.3.50, Repoman-2.3.11
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
app-crypt/libmd/libmd-1.0.0-r1.ebuild [new file with mode: 0644]

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 (file)
index 0000000..61a43ba
--- /dev/null
@@ -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
+}