commit: cc9bb66c6e9345489f6c35b4dd97f8f640b53be6
parent: e72fe5b65f8f4facabb233e97df88832a9fe519b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 31 Dec 2018 07:34:11 +0100
dev-libs/libtomcrypt: Less moving parts
Fixes:
- IUSE.invalid
- dependency.bad
- metadata.missing
Diffstat:
2 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/dev-libs/libtomcrypt/libtomcrypt-1.18.2.ebuild b/dev-libs/libtomcrypt/libtomcrypt-1.18.2.ebuild
@@ -12,23 +12,19 @@ SRC_URI="https://github.com/libtom/libtomcrypt/releases/download/v${PV}/crypt-${
LICENSE="WTFPL-2"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="doc +libtommath tomsfastmath"
+IUSE="doc"
-RDEPEND="libtommath? ( dev-libs/libtommath )
- tomsfastmath? ( >=dev-libs/tomsfastmath-0.12 )
- !libtommath? ( !tomsfastmath? ( dev-libs/libtommath ) )"
+RDEPEND="dev-libs/libtommath"
DEPEND="${RDEPEND}
doc? ( virtual/latex-base app-text/ghostscript-gpl )"
src_compile() {
- local extraflags=""
- use libtommath && append-flags "-DUSE_LTM -DLTM_DESC" && extraflags="-ltommath"
- use tomsfastmath && append-flags "-DUSE_TFM -DTFM_DESC" && extraflags="${extraflags} -ltfm"
- EXTRALIBS="${extraflags}" \
- CC=$(tc-getCC) \
- IGNORE_SPEED=1 \
- emake -f makefile.shared \
- || die "emake failed"
+ append-flags "-DUSE_LTM -DLTM_DESC"
+
+ EXTRALIBS="-ltommath" \
+ CC=$(tc-getCC) \
+ IGNORE_SPEED=1 \
+ emake -f makefile.shared || die "emake failed"
use doc && emake emake -f makefile.shared docs
}
diff --git a/dev-libs/libtomcrypt/metadata.xml b/dev-libs/libtomcrypt/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>contact@hacktivis.me</email>
+ <name>Haelwenn (lanodan) Monnier</name>
+</maintainer>
+<upstream>
+ <remote-id type="github">libtom/libtomcrypt</remote-id>
+</upstream>
+</pkgmetadata>