1 |
commit: d256fef3b17af38873642d5178a2582204cca728 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 14 21:30:25 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 14 21:30:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d256fef3 |
7 |
|
8 |
sci-libs/lis: [QA] tc-has-openmp → tc-check-openmp |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
sci-libs/lis/lis-1.6.5.ebuild | 21 ++++++--------------- |
13 |
1 file changed, 6 insertions(+), 15 deletions(-) |
14 |
|
15 |
diff --git a/sci-libs/lis/lis-1.6.5.ebuild b/sci-libs/lis/lis-1.6.5.ebuild |
16 |
index 75c41a7dd9e8..27d638831af1 100644 |
17 |
--- a/sci-libs/lis/lis-1.6.5.ebuild |
18 |
+++ b/sci-libs/lis/lis-1.6.5.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2019 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=6 |
25 |
@@ -19,21 +19,12 @@ DEPEND="${RDEPEND}" |
26 |
|
27 |
PATCHES=( "${FILESDIR}"/${PN}-1.6.2-autotools.patch ) |
28 |
|
29 |
-pkg_setup() { |
30 |
- if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
31 |
- if ! tc-has-openmp; then |
32 |
- ewarn "OpenMP is not available in your current selected compiler" |
33 |
- |
34 |
- if tc-is-clang; then |
35 |
- ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp," |
36 |
- ewarn "which you will need to build ${CATEGORY}/${PN} with USE=\"openmp\"" |
37 |
- fi |
38 |
- |
39 |
- die "need openmp capable compiler" |
40 |
- fi |
41 |
- FORTRAN_NEED_OPENMP=1 |
42 |
- fi |
43 |
+pkg_pretend() { |
44 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
45 |
+} |
46 |
|
47 |
+pkg_setup() { |
48 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp && FORTRAN_NEED_OPENMP=1 |
49 |
use fortran && fortran-2_pkg_setup |
50 |
} |