Skip to content

Commit

Permalink
dev-libs/nettle: USE cpu_flags_x86_sha->preview-cpu_flags_x86_sha
Browse files Browse the repository at this point in the history
A temporary solution until cpu_flags_x86_sha available.

Bug: https://bugs.gentoo.org/show_bug.cgi?id=688858
Signed-off-by: Alon Bar-Lev <[email protected]>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
  • Loading branch information
alonbl committed Jul 8, 2019
1 parent 57980c4 commit d0c54ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev-libs/nettle/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<name>Crypto</name>
</maintainer>
<use>
<flag name="cpu_flags_x86_sha">Enable support for Intel's SHA instruction set (SHA-NI)</flag>
<flag name="preview-cpu_flags_x86_sha">Enable support for Intel's SHA instruction set (SHA-NI)</flag>
</use>
</pkgmetadata>
4 changes: 2 additions & 2 deletions dev-libs/nettle/nettle-3.5.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
LICENSE="|| ( LGPL-3 LGPL-2.1 )"
SLOT="0/7" # subslot = libnettle soname version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes cpu_flags_x86_sha"
IUSE="doc +gmp neon static-libs test cpu_flags_x86_aes preview-cpu_flags_x86_sha"

DEPEND="gmp? ( >=dev-libs/gmp-6.0:0=[static-libs?,${MULTILIB_USEDEP}] )"
RDEPEND="${DEPEND}"
Expand Down Expand Up @@ -50,7 +50,7 @@ multilib_src_configure() {
ECONF_SOURCE="${S}" econf \
$(tc-is-static-only && echo --disable-shared) \
$(use_enable cpu_flags_x86_aes x86-aesni) \
$(use_enable cpu_flags_x86_sha x86-sha-ni) \
$(use_enable preview-cpu_flags_x86_sha x86-sha-ni) \
$(use_enable doc documentation) \
$(use_enable gmp public-key) \
$(use_enable neon arm-neon) \
Expand Down

0 comments on commit d0c54ca

Please sign in to comment.