commit:     c6a718d53dd720ee8c681e7a5f87e7d340c379dc
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon May 16 08:12:28 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon May 16 08:12:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6a718d5

sci-visualization/paraview: [QA] use tc-check-openmp correctly

Closes: https://github.com/gentoo/gentoo/pull/25500
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-visualization/paraview/paraview-5.9.0.ebuild | 8 ++++++--
 sci-visualization/paraview/paraview-5.9.1.ebuild | 8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/sci-visualization/paraview/paraview-5.9.0.ebuild 
b/sci-visualization/paraview/paraview-5.9.0.ebuild
index ce3f2c9d4d44..f3ceac1728a1 100644
--- a/sci-visualization/paraview/paraview-5.9.0.ebuild
+++ b/sci-visualization/paraview/paraview-5.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -108,8 +108,12 @@ PATCHES=(
        "${FILESDIR}"/${PN}-5.9.0-gcc11-include.patch
 )
 
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-       [[ ${MERGE_TYPE} != "binary" ]] && use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
        use python && python-single-r1_pkg_setup
        PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV}
 }

diff --git a/sci-visualization/paraview/paraview-5.9.1.ebuild 
b/sci-visualization/paraview/paraview-5.9.1.ebuild
index ce3f2c9d4d44..f3ceac1728a1 100644
--- a/sci-visualization/paraview/paraview-5.9.1.ebuild
+++ b/sci-visualization/paraview/paraview-5.9.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -108,8 +108,12 @@ PATCHES=(
        "${FILESDIR}"/${PN}-5.9.0-gcc11-include.patch
 )
 
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-       [[ ${MERGE_TYPE} != "binary" ]] && use openmp && tc-check-openmp
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
        use python && python-single-r1_pkg_setup
        PVLIBDIR=$(get_libdir)/${PN}-${MAJOR_PV}
 }

Reply via email to