commit:     757220cb559ce9a264be428b525af9ca50f47feb
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 27 23:48:10 2018 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Sat Oct 27 23:48:10 2018 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=757220cb

sci-chemistry/gamess: fix openmp support detection

tc-has-openmp checks C compiler for openmp support. While in most
cases Fortran compiler with have this support as well if C one
has, we need to check Fortran compiler explicitely to be absolutely
sure. fortran-2 eclass has FORTRAN_NEED_OPENMP variable for such
check to be performed.

Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 sci-chemistry/gamess/gamess-20180930.3.ebuild | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sci-chemistry/gamess/gamess-20180930.3.ebuild 
b/sci-chemistry/gamess/gamess-20180930.3.ebuild
index fe96a626b..44e7fa323 100644
--- a/sci-chemistry/gamess/gamess-20180930.3.ebuild
+++ b/sci-chemistry/gamess/gamess-20180930.3.ebuild
@@ -78,6 +78,7 @@ get_fcomp() {
 
 pkg_setup() {
        pre_build_checks
+       use openmp && FORTRAN_NEED_OPENMP=1
        fortran-2_pkg_setup
        get_fcomp
        # currently amd64 is only supported with gfortran
@@ -106,10 +107,6 @@ pkg_setup() {
                ewarn "because deafult one will not work"
                ewarn ""
        fi
-
-       if use openmp; then
-               tc-has-openmp || die "Please use an openmp capable compiler 
like gcc[openmp]"
-       fi
 }
 
 src_unpack() {

Reply via email to