Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/nfft/
Date: Sat, 14 May 2022 21:30:47
Message-Id: 1652563826.2f596c981ecfb40bbe1a93091641b1f41c16435c.soap@gentoo
1 commit: 2f596c981ecfb40bbe1a93091641b1f41c16435c
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 14 21:30:26 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 21:30:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f596c98
7
8 sci-libs/nfft: [QA] tc-has-openmp → tc-check-openmp
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 sci-libs/nfft/nfft-3.5.2.ebuild | 17 +++++------------
13 1 file changed, 5 insertions(+), 12 deletions(-)
14
15 diff --git a/sci-libs/nfft/nfft-3.5.2.ebuild b/sci-libs/nfft/nfft-3.5.2.ebuild
16 index f0ea656c7539..066540701d6c 100644
17 --- a/sci-libs/nfft/nfft-3.5.2.ebuild
18 +++ b/sci-libs/nfft/nfft-3.5.2.ebuild
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2021 Gentoo Authors
21 +# Copyright 1999-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=7
25 @@ -18,18 +18,11 @@ RDEPEND="sci-libs/fftw:3.0[threads,openmp?]"
26 DEPEND="${RDEPEND}"
27
28 pkg_pretend() {
29 - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
30 - if ! tc-has-openmp; then
31 - ewarn "OpenMP is not available in your current selected compiler"
32 -
33 - if tc-is-clang; then
34 - ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp,"
35 - ewarn "which you will need to build ${CATEGORY}/${PN} with USE=\"openmp\""
36 - fi
37 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
38 +}
39
40 - die "need openmp capable compiler"
41 - fi
42 - fi
43 +pkg_setup() {
44 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
45 }
46
47 src_configure() {