1 |
commit: ec99bdb5626bdd50340702243b3e62fe8fd4d6bc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 29 14:36:38 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 29 14:36:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec99bdb5 |
7 |
|
8 |
dev-libs/libgcrypt: add CPU_FLAGS_* |
9 |
|
10 |
Bug: https://bugs.gentoo.org/766423 |
11 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild | 9 ++++++++- |
15 |
1 file changed, 8 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild |
18 |
index 7c5ab1075dd..a40209631d4 100644 |
19 |
--- a/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild |
20 |
+++ b/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild |
21 |
@@ -12,7 +12,7 @@ SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" |
22 |
LICENSE="LGPL-2.1 MIT" |
23 |
SLOT="0/20" # subslot = soname major version |
24 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
25 |
-IUSE="+asm doc o-flag-munging static-libs" |
26 |
+IUSE="+asm cpu_flags_arm_neon cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc o-flag-munging static-libs" |
27 |
|
28 |
RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]" |
29 |
DEPEND="${RDEPEND}" |
30 |
@@ -43,6 +43,13 @@ multilib_src_configure() { |
31 |
CC_FOR_BUILD="$(tc-getBUILD_CC)" |
32 |
|
33 |
--enable-noexecstack |
34 |
+ $(use_enable cpu_flags_arm_neon neon-support) |
35 |
+ $(use_enable cpu_flags_x86_aes aesni-support) |
36 |
+ $(use_enable cpu_flags_x86_avx avx-support) |
37 |
+ $(use_enable cpu_flags_x86_avx2 avx2-support) |
38 |
+ $(use_enable cpu_flags_x86_padlock padlock-support) |
39 |
+ $(use_enable cpu_flags_x86_sha shaext-support) |
40 |
+ $(use_enable cpu_flags_x86_sse4_1 sse41-support) |
41 |
# required for sys-power/suspend[crypt], bug 751568 |
42 |
$(use_enable static-libs static) |
43 |
$(use_enable o-flag-munging O-flag-munging) |