summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-12-17 18:22:05 +0000
committerJustin Lecher <jlec@gentoo.org>2010-12-17 18:22:05 +0000
commit726ef2dde275d68741339caeff066f25c88df5bb (patch)
tree373ec3822a3b82d64c0709dede99d98eeeaa919d /sci-chemistry/cns/cns-1.2.1.ebuild
parentversion bump (bug #348941) (diff)
downloadhistorical-726ef2dde275d68741339caeff066f25c88df5bb.tar.gz
historical-726ef2dde275d68741339caeff066f25c88df5bb.tar.bz2
historical-726ef2dde275d68741339caeff066f25c88df5bb.zip
Correct handling of OpenMp support
Package-Manager: portage-2.2.0_alpha9/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry/cns/cns-1.2.1.ebuild')
-rw-r--r--sci-chemistry/cns/cns-1.2.1.ebuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/sci-chemistry/cns/cns-1.2.1.ebuild b/sci-chemistry/cns/cns-1.2.1.ebuild
index 1c87f343ba5f..a38935655ad7 100644
--- a/sci-chemistry/cns/cns-1.2.1.ebuild
+++ b/sci-chemistry/cns/cns-1.2.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cns/cns-1.2.1.ebuild,v 1.9 2010/12/17 07:54:48 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/cns/cns-1.2.1.ebuild,v 1.10 2010/12/17 18:22:05 jlec Exp $
inherit eutils toolchain-funcs versionator flag-o-matic
@@ -40,7 +40,9 @@ get_fcomp() {
}
pkg_setup() {
- tc-has-openmp || die "Please ensure your compiler has openmp support"
+ if [[ $(tc-getFC) =~ gfortran ]]; then
+ tc-has-openmp || die "Please ensure your compiler has openmp support"
+ fi
get_fcomp
}
@@ -48,8 +50,8 @@ src_unpack() {
unpack ${A}
cd "${S}"
- use openmp && append-fflags -fopenmp
- use openmp && append-ldflags -lgomp
+ use openmp && append-fflags -fopenmp && \
+ append-ldflags -fopenmp
# Someone already did the same in the openmp version, apparently
use openmp || epatch "${FILESDIR}"/1.2-allow-unknown-architectures.patch