1 |
commit: 6197d53d7b22a0045847111c7261784a452f3a5d |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 1 13:30:33 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 1 13:30:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6197d53d |
7 |
|
8 |
dev-libs/nettle: add USE=asm |
9 |
|
10 |
Closes: https://bugs.gentoo.org/710122 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
dev-libs/nettle/metadata.xml | 3 +++ |
15 |
dev-libs/nettle/nettle-3.6.ebuild | 3 ++- |
16 |
2 files changed, 5 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-libs/nettle/metadata.xml b/dev-libs/nettle/metadata.xml |
19 |
index d6799109786..1762d332757 100644 |
20 |
--- a/dev-libs/nettle/metadata.xml |
21 |
+++ b/dev-libs/nettle/metadata.xml |
22 |
@@ -8,4 +8,7 @@ |
23 |
<upstream> |
24 |
<remote-id type="cpe">cpe:/a:nettle_project:nettle</remote-id> |
25 |
</upstream> |
26 |
+ <use> |
27 |
+ <flag name="asm">Support assembly hand optimized crypto functions (i.e. faster run time)</flag> |
28 |
+ </use> |
29 |
</pkgmetadata> |
30 |
|
31 |
diff --git a/dev-libs/nettle/nettle-3.6.ebuild b/dev-libs/nettle/nettle-3.6.ebuild |
32 |
index 6131eaec35e..865b190a4cb 100644 |
33 |
--- a/dev-libs/nettle/nettle-3.6.ebuild |
34 |
+++ b/dev-libs/nettle/nettle-3.6.ebuild |
35 |
@@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
36 |
LICENSE="|| ( LGPL-3 LGPL-2.1 )" |
37 |
SLOT="0/7" # subslot = libnettle soname version |
38 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
39 |
-IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes cpu_flags_x86_sha" |
40 |
+IUSE="+asm doc +gmp neon static-libs test cpu_flags_x86_aes cpu_flags_x86_sha" |
41 |
RESTRICT="!test? ( test )" |
42 |
|
43 |
DEPEND="gmp? ( >=dev-libs/gmp-6.1:0=[static-libs?,${MULTILIB_USEDEP}] )" |
44 |
@@ -52,6 +52,7 @@ multilib_src_configure() { |
45 |
$(tc-is-static-only && echo --disable-shared) \ |
46 |
$(use_enable cpu_flags_x86_aes x86-aesni) \ |
47 |
$(use_enable cpu_flags_x86_sha x86-sha-ni) \ |
48 |
+ $(use_enable asm assembler) |
49 |
$(use_enable doc documentation) \ |
50 |
$(use_enable gmp public-key) \ |
51 |
$(use_enable neon arm-neon) \ |