public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/fftw/
Date: Fri, 24 Jun 2011 17:09:10 +0000 (UTC)	[thread overview]
Message-ID: <b53ef5955af95fd7543f7b4ac691afff0b8b1504.jlec@gentoo> (raw)

commit:     b53ef5955af95fd7543f7b4ac691afff0b8b1504
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 24 12:19:37 2011 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Jun 24 12:19:37 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b53ef595

Streamlined fortran-2 eclass usage

(Portage version: 2.2.0_alpha41/git/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 70EB7916)

---
 sci-libs/fftw/ChangeLog              |    3 +++
 sci-libs/fftw/fftw-3.3_alpha1.ebuild |   12 +++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/sci-libs/fftw/ChangeLog b/sci-libs/fftw/ChangeLog
index d1d8a04..99038b1 100644
--- a/sci-libs/fftw/ChangeLog
+++ b/sci-libs/fftw/ChangeLog
@@ -2,6 +2,9 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  24 Jun 2011; Justin Lecher <jlec@gentoo.org> fftw-3.3_alpha1.ebuild:
+  Streamlined fortran-2 eclass usage
+
   21 Jun 2011; Justin Lecher <jlec@gentoo.org> fftw-3.3_alpha1.ebuild:
   Added fortran-2.eclass support
 

diff --git a/sci-libs/fftw/fftw-3.3_alpha1.ebuild b/sci-libs/fftw/fftw-3.3_alpha1.ebuild
index 700e8ab..3d9e309 100644
--- a/sci-libs/fftw/fftw-3.3_alpha1.ebuild
+++ b/sci-libs/fftw/fftw-3.3_alpha1.ebuild
@@ -15,12 +15,15 @@ SLOT="3.0"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
 IUSE="altivec doc fortran mpi openmp sse sse2 static-libs threads"
 
-DEPEND="mpi? ( virtual/mpi )"
+DEPEND="
+	fortran? ( virtual/fortran )
+	mpi? ( virtual/mpi )"
 RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${P//_}"
 
 pkg_setup() {
+	use openmp && FORTRAN_NEED_OPENMP="1"
 	use fortran && fortran-2_pkg_setup
 	FFTW_THREADS="--disable-threads --disable-openmp"
 	if use openmp; then
@@ -28,12 +31,7 @@ pkg_setup() {
 	elif use threads; then
 		FFTW_THREADS="--enable-threads --disable-openmp"
 	fi
-	if use openmp &&
-		[[ $(tc-getCC)$ == *gcc* ]] &&
-		[[ $(tc-getCC)$ != *apple* ]] &&
-		( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] ||
-			! has_version sys-devel/gcc[openmp] )
-	then
+	if use openmp && ! tc-has-openmp; then
 		ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
 		ewarn "If you want to build fftw with OpenMP, abort now,"
 		ewarn "and switch CC to an OpenMP capable compiler"



             reply	other threads:[~2011-06-24 17:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24 17:09 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-11-21 15:14 [gentoo-commits] proj/sci:master commit in: sci-libs/fftw/ Christoph Junghans
2015-04-13  6:34 Justin Lecher
2015-02-19 21:12 Christoph Junghans
2015-02-17  0:13 Christoph Junghans
2015-02-02 12:06 Justin Lecher
2014-07-04  7:10 Justin Lecher
2014-01-06 18:33 Justin Lecher
2013-09-17 19:13 Christoph Junghans
2013-09-07 20:19 Christoph Junghans
2013-09-02 19:17 Christoph Junghans
2011-08-31 19:37 Christoph Junghans
2011-06-21 11:54 Justin Lecher

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=b53ef5955af95fd7543f7b4ac691afff0b8b1504.jlec@gentoo \
    --to=jlec@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