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

media-gfx/solvespace: [QA] tc-has-openmp → tc-check-openmp

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

 media-gfx/solvespace/solvespace-3.0-r2.ebuild | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/media-gfx/solvespace/solvespace-3.0-r2.ebuild 
b/media-gfx/solvespace/solvespace-3.0-r2.ebuild
index c05f7413d643..f94aea515954 100644
--- a/media-gfx/solvespace/solvespace-3.0-r2.ebuild
+++ b/media-gfx/solvespace/solvespace-3.0-r2.ebuild
@@ -53,9 +53,11 @@ PATCHES=( "${FILESDIR}"/${PN}-3.0-use-system-mimalloc.patch )
 MY_HASH="0e0b0252e23dd5bd4ae82ababcc54c44aee036d6"
 
 pkg_pretend() {
-       if use openmp; then
-               tc-has-openmp || die "Please switch to an openmp compatible 
compiler"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare() {

Reply via email to