From bd7d7208554b9ae9a1416f46512a6ac4b7f08caa Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 20 Oct 2021 12:55:45 -0400 Subject: app-crypt/stoken: fix automagic dep on libtomcrypt Also rename 'static' to 'static-libs'. Also drop libstoken.la. Signed-off-by: Mike Gilbert --- app-crypt/stoken/stoken-0.92-r2.ebuild | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app-crypt/stoken/stoken-0.92-r2.ebuild (limited to 'app-crypt/stoken/stoken-0.92-r2.ebuild') diff --git a/app-crypt/stoken/stoken-0.92-r2.ebuild b/app-crypt/stoken/stoken-0.92-r2.ebuild new file mode 100644 index 000000000000..9cf7d5d6aeb7 --- /dev/null +++ b/app-crypt/stoken/stoken-0.92-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit autotools + +DESCRIPTION="Software Token for Linux/UNIX" +HOMEPAGE="https://github.com/cernekee/stoken" +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-libs" + +# 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 +} + +src_configure() { + 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 +} -- cgit v1.2.3-65-gdbad