From a7a2df0f47be3f3bf59d2839755914f962eb91bb Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 14 May 2022 23:30:28 +0200 Subject: [PATCH] =?UTF-8?q?sci-mathematics/normaliz:=20[QA]=20tc-has-openm?= =?UTF-8?q?p=20=E2=86=92=20tc-check-openmp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://github.com/gentoo/gentoo/pull/25486 Signed-off-by: David Seifert --- sci-mathematics/normaliz/normaliz-3.1.3-r1.ebuild | 13 +++++++++---- sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild | 8 ++++++-- sci-mathematics/normaliz/normaliz-3.9.3.ebuild | 6 +++++- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/sci-mathematics/normaliz/normaliz-3.1.3-r1.ebuild b/sci-mathematics/normaliz/normaliz-3.1.3-r1.ebuild index bc18fd6a3868c..a2d3890c28546 100644 --- a/sci-mathematics/normaliz/normaliz-3.1.3-r1.ebuild +++ b/sci-mathematics/normaliz/normaliz-3.1.3-r1.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=6 @@ -26,15 +26,20 @@ DEPEND="${RDEPEND} S=${WORKDIR}/${MYP} +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + src_prepare() { ./bootstrap.sh || die default } src_configure() { - if use openmp && ! tc-has-openmp ; then - die "You requested openmp, but your toolchain does not support it." - fi econf $(use_enable openmp) } diff --git a/sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild b/sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild index 74f541639c165..d696ca7b98179 100644 --- a/sci-mathematics/normaliz/normaliz-3.8.10-r1.ebuild +++ b/sci-mathematics/normaliz/normaliz-3.8.10-r1.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 @@ -25,8 +25,12 @@ DEPEND=" " # Only a boost header is needed -> not RDEPEND +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + pkg_setup() { - use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } src_prepare() { diff --git a/sci-mathematics/normaliz/normaliz-3.9.3.ebuild b/sci-mathematics/normaliz/normaliz-3.9.3.ebuild index 7b7436eeb4e99..9fa89e9d001b0 100644 --- a/sci-mathematics/normaliz/normaliz-3.9.3.ebuild +++ b/sci-mathematics/normaliz/normaliz-3.9.3.ebuild @@ -24,8 +24,12 @@ DEPEND=" " # Only a boost header is needed -> not RDEPEND +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + pkg_setup() { - use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } src_configure() {