commit:     bd7d7208554b9ae9a1416f46512a6ac4b7f08caa
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 20 16:55:45 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Oct 20 16:55:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd7d7208

app-crypt/stoken: fix automagic dep on libtomcrypt

Also rename 'static' to 'static-libs'.
Also drop libstoken.la.

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 .../{stoken-0.92-r1.ebuild => stoken-0.92-r2.ebuild}  | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/app-crypt/stoken/stoken-0.92-r1.ebuild 
b/app-crypt/stoken/stoken-0.92-r2.ebuild
similarity index 61%
rename from app-crypt/stoken/stoken-0.92-r1.ebuild
rename to app-crypt/stoken/stoken-0.92-r2.ebuild
index 2508df6bacd..9cf7d5d6aeb 100644
--- a/app-crypt/stoken/stoken-0.92-r1.ebuild
+++ b/app-crypt/stoken/stoken-0.92-r2.ebuild
@@ -12,19 +12,30 @@ 
SRC_URI="https://github.com/cernekee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="LGPL-2.1+"
 SLOT="0"
 KEYWORDS="amd64 arm arm64 ppc64 ~riscv x86"
-IUSE="gtk static"
+IUSE="gtk static-libs"
 
-#      || ( dev-libs/nettle dev-libs/libtomcrypt )    libtomcrypt is not 
packaged
+# TODO: add a USE flag to enable optional use of tomcrypt instead of nettle.
 RDEPEND="
        dev-libs/nettle
        gtk? ( >=x11-libs/gtk+-3.12:3 )"
 DEPEND="${RDEPEND}"
 
 src_prepare() {
+       default
        eautoreconf
-       eapply_user
 }
 
 src_configure() {
-       econf $(use_with gtk) --enable-static=$(usex static)
+       local myconf=(
+               $(use_with gtk)
+               $(use_enable static-libs static)
+               --with-nettle
+               --without-tomcrypt
+       )
+       econf "${myconf[@]}"
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -type f -delete || die
 }

Reply via email to