commit:     bc46c1859c437b578758a64110b0e9cc2f6facba
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 21 20:53:23 2023 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Mon Aug 21 20:55:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc46c185

app-crypt/johntheripper: add new use flags

Closes: https://bugs.gentoo.org/702748
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 app-crypt/johntheripper/johntheripper-1.9.0.ebuild | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/app-crypt/johntheripper/johntheripper-1.9.0.ebuild 
b/app-crypt/johntheripper/johntheripper-1.9.0.ebuild
index d7bd1317da50..354432e452ae 100644
--- a/app-crypt/johntheripper/johntheripper-1.9.0.ebuild
+++ b/app-crypt/johntheripper/johntheripper-1.9.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="https://www.openwall.com/john/k/${MY_P}.tar.xz";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux 
~x86-linux ~ppc-macos"
-CPU_FLAGS="cpu_flags_x86_mmx cpu_flags_x86_sse2 cpu_flags_x86_avx 
cpu_flags_x86_xop"
+CPU_FLAGS="cpu_flags_x86_mmx cpu_flags_x86_sse2 cpu_flags_x86_avx 
cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_x86_xop"
 IUSE="custom-cflags openmp ${CPU_FLAGS}"
 
 DEPEND="virtual/libcrypt:="
@@ -29,7 +29,11 @@ get_target() {
        if use alpha; then
                echo "linux-alpha"
        elif use amd64; then
-               if use cpu_flags_x86_xop; then
+               if use cpu_flags_x86_avx512f; then
+                       echo "linux-x86-64-avx512"
+               elif use cpu_flags_x86_avx2; then
+                       echo "linux-x86-64-avx2"
+               elif use cpu_flags_x86_xop; then
                        echo "linux-x86-64-xop"
                elif use cpu_flags_x86_avx; then
                        echo "linux-x86-64-avx"
@@ -43,7 +47,11 @@ get_target() {
        elif use sparc; then
                echo "linux-sparc"
        elif use x86; then
-               if use cpu_flags_x86_xop; then
+               if use cpu_flags_x86_avx512f; then
+                       echo "linux-x86-64-avx512"
+               elif use cpu_flags_x86_avx2; then
+                       echo "linux-x86-64-avx2"
+               elif use cpu_flags_x86_xop; then
                        echo "linux-x86-xop"
                elif use cpu_flags_x86_avx; then
                        echo "linux-x86-avx"

Reply via email to