1 |
commit: bd7d7208554b9ae9a1416f46512a6ac4b7f08caa |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 20 16:55:45 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 20 16:55:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd7d7208 |
7 |
|
8 |
app-crypt/stoken: fix automagic dep on libtomcrypt |
9 |
|
10 |
Also rename 'static' to 'static-libs'. |
11 |
Also drop libstoken.la. |
12 |
|
13 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
14 |
|
15 |
.../{stoken-0.92-r1.ebuild => stoken-0.92-r2.ebuild} | 19 +++++++++++++++---- |
16 |
1 file changed, 15 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/app-crypt/stoken/stoken-0.92-r1.ebuild b/app-crypt/stoken/stoken-0.92-r2.ebuild |
19 |
similarity index 61% |
20 |
rename from app-crypt/stoken/stoken-0.92-r1.ebuild |
21 |
rename to app-crypt/stoken/stoken-0.92-r2.ebuild |
22 |
index 2508df6bacd..9cf7d5d6aeb 100644 |
23 |
--- a/app-crypt/stoken/stoken-0.92-r1.ebuild |
24 |
+++ b/app-crypt/stoken/stoken-0.92-r2.ebuild |
25 |
@@ -12,19 +12,30 @@ SRC_URI="https://github.com/cernekee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
26 |
LICENSE="LGPL-2.1+" |
27 |
SLOT="0" |
28 |
KEYWORDS="amd64 arm arm64 ppc64 ~riscv x86" |
29 |
-IUSE="gtk static" |
30 |
+IUSE="gtk static-libs" |
31 |
|
32 |
-# || ( dev-libs/nettle dev-libs/libtomcrypt ) libtomcrypt is not packaged |
33 |
+# TODO: add a USE flag to enable optional use of tomcrypt instead of nettle. |
34 |
RDEPEND=" |
35 |
dev-libs/nettle |
36 |
gtk? ( >=x11-libs/gtk+-3.12:3 )" |
37 |
DEPEND="${RDEPEND}" |
38 |
|
39 |
src_prepare() { |
40 |
+ default |
41 |
eautoreconf |
42 |
- eapply_user |
43 |
} |
44 |
|
45 |
src_configure() { |
46 |
- econf $(use_with gtk) --enable-static=$(usex static) |
47 |
+ local myconf=( |
48 |
+ $(use_with gtk) |
49 |
+ $(use_enable static-libs static) |
50 |
+ --with-nettle |
51 |
+ --without-tomcrypt |
52 |
+ ) |
53 |
+ econf "${myconf[@]}" |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ default |
58 |
+ find "${ED}" -name '*.la' -type f -delete || die |
59 |
} |