commit:     46bbe20c98cdf559e95138156a7951fb91cc48ed
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 21:30:05 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 14 21:30:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46bbe20c

app-crypt/johntheripper: [QA] tc-has-openmp → tc-check-openmp

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild 
b/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild
index 700c4d5a8787..1d4e84fe706c 100644
--- a/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild
+++ b/app-crypt/johntheripper/johntheripper-1.8.0-r1.ebuild
@@ -66,10 +66,12 @@ get_target() {
        fi
 }
 
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-       if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
-               tc-has-openmp || die "Please switch to an openmp compatible 
compiler"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare() {

Reply via email to