summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-05-16 10:12:23 +0200
committerDavid Seifert <soap@gentoo.org>2022-05-16 10:12:23 +0200
commit04614f988393ef618a03f1ed54918c9e60f96a80 (patch)
tree1dec0581f0155f66777aa2c9945a6e4db6b8c4a4 /sci-libs/parmetis
parentsci-libs/openblas: [QA] use tc-check-openmp correctly (diff)
downloadgentoo-04614f988393ef618a03f1ed54918c9e60f96a80.tar.gz
gentoo-04614f988393ef618a03f1ed54918c9e60f96a80.tar.bz2
gentoo-04614f988393ef618a03f1ed54918c9e60f96a80.zip
sci-libs/parmetis: [QA] use tc-check-openmp correctly
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-libs/parmetis')
-rw-r--r--sci-libs/parmetis/parmetis-4.0.3-r2.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
index 1f1b3c8b4398..f24d1ffbe973 100644
--- a/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
+++ b/sci-libs/parmetis/parmetis-4.0.3-r2.ebuild
@@ -26,10 +26,12 @@ PATCHES=(
"${FILESDIR}"/${PN}-4.0.3-02-unbundle-metis.patch
)
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
pkg_setup() {
- if [[ ${MERGE_TYPE} != binary ]]; then
- use openmp && tc-check-openmp
- fi
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_prepare() {