Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/gamess/
Date: Sat, 27 Oct 2018 23:49:05
Message-Id: 1540684090.757220cb559ce9a264be428b525af9ca50f47feb.bircoph@gentoo
1 commit: 757220cb559ce9a264be428b525af9ca50f47feb
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 27 23:48:10 2018 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 27 23:48:10 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=757220cb
7
8 sci-chemistry/gamess: fix openmp support detection
9
10 tc-has-openmp checks C compiler for openmp support. While in most
11 cases Fortran compiler with have this support as well if C one
12 has, we need to check Fortran compiler explicitely to be absolutely
13 sure. fortran-2 eclass has FORTRAN_NEED_OPENMP variable for such
14 check to be performed.
15
16 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
17 Package-Manager: Portage-2.3.51, Repoman-2.3.11
18
19 sci-chemistry/gamess/gamess-20180930.3.ebuild | 5 +----
20 1 file changed, 1 insertion(+), 4 deletions(-)
21
22 diff --git a/sci-chemistry/gamess/gamess-20180930.3.ebuild b/sci-chemistry/gamess/gamess-20180930.3.ebuild
23 index fe96a626b..44e7fa323 100644
24 --- a/sci-chemistry/gamess/gamess-20180930.3.ebuild
25 +++ b/sci-chemistry/gamess/gamess-20180930.3.ebuild
26 @@ -78,6 +78,7 @@ get_fcomp() {
27
28 pkg_setup() {
29 pre_build_checks
30 + use openmp && FORTRAN_NEED_OPENMP=1
31 fortran-2_pkg_setup
32 get_fcomp
33 # currently amd64 is only supported with gfortran
34 @@ -106,10 +107,6 @@ pkg_setup() {
35 ewarn "because deafult one will not work"
36 ewarn ""
37 fi
38 -
39 - if use openmp; then
40 - tc-has-openmp || die "Please use an openmp capable compiler like gcc[openmp]"
41 - fi
42 }
43
44 src_unpack() {