public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Savchenko" <bircoph@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/gamess/
Date: Sat, 27 Oct 2018 23:49:00 +0000 (UTC)	[thread overview]
Message-ID: <1540684090.757220cb559ce9a264be428b525af9ca50f47feb.bircoph@gentoo> (raw)

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	other threads:[~2018-10-27 23:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-27 23:49 Andrew Savchenko [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-10 13:55 [gentoo-commits] proj/sci:master commit in: sci-chemistry/gamess/ Andrew Ammerlaan
2021-08-31  9:45 Andrew Ammerlaan
2021-03-19 11:09 Andrew Ammerlaan
2021-03-05  8:42 Andrew Ammerlaan
2021-01-20  9:06 Andrew Ammerlaan
2018-10-24 22:27 Andrew Savchenko
2016-11-29  8:48 Alexey Shvetsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1540684090.757220cb559ce9a264be428b525af9ca50f47feb.bircoph@gentoo \
    --to=bircoph@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox