From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1548408-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 99A5315801B
	for <garchives@archives.gentoo.org>; Mon, 21 Aug 2023 20:56:08 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D6A422BC01E;
	Mon, 21 Aug 2023 20:56:07 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id B84CA2BC01E
	for <gentoo-commits@lists.gentoo.org>; Mon, 21 Aug 2023 20:56:07 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id BB6AC335CE3
	for <gentoo-commits@lists.gentoo.org>; Mon, 21 Aug 2023 20:56:06 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 457F8104A
	for <gentoo-commits@lists.gentoo.org>; Mon, 21 Aug 2023 20:56:05 +0000 (UTC)
From: "Rick Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Rick Farina" <zerochaos@gentoo.org>
Message-ID: <1692651353.bc46c1859c437b578758a64110b0e9cc2f6facba.zerochaos@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/johntheripper/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-crypt/johntheripper/johntheripper-1.9.0.ebuild
X-VCS-Directories: app-crypt/johntheripper/
X-VCS-Committer: zerochaos
X-VCS-Committer-Name: Rick Farina
X-VCS-Revision: bc46c1859c437b578758a64110b0e9cc2f6facba
X-VCS-Branch: master
Date: Mon, 21 Aug 2023 20:56:05 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 8b6de52b-f873-4cec-991a-81c45cb62e0b
X-Archives-Hash: 58b40fe32a78359cb56ad8fb85256168

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"