summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-06-21 15:37:40 +0000
committerJustin Lecher <jlec@gentoo.org>2011-06-21 15:37:40 +0000
commit9c0dac6d908b292e878575f9d287d2fac49166d6 (patch)
treefefe1e0376bfc04ef0f64f834537038694849ced /sci-libs
parentAdd dependency on virtual/fortran (diff)
downloadgentoo-2-9c0dac6d908b292e878575f9d287d2fac49166d6.tar.gz
gentoo-2-9c0dac6d908b292e878575f9d287d2fac49166d6.tar.bz2
gentoo-2-9c0dac6d908b292e878575f9d287d2fac49166d6.zip
Add dependency on virtual/fortran
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/fftw/ChangeLog6
-rw-r--r--sci-libs/fftw/fftw-2.1.5-r5.ebuild3
-rw-r--r--sci-libs/fftw/fftw-2.1.5-r8.ebuild3
-rw-r--r--sci-libs/fftw/fftw-3.2.2-r1.ebuild6
-rw-r--r--sci-libs/fftw/fftw-3.2.2.ebuild13
5 files changed, 20 insertions, 11 deletions
diff --git a/sci-libs/fftw/ChangeLog b/sci-libs/fftw/ChangeLog
index 4b4d1f2f2296..b719de44c7a7 100644
--- a/sci-libs/fftw/ChangeLog
+++ b/sci-libs/fftw/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-libs/fftw
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/ChangeLog,v 1.116 2011/06/21 15:19:08 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/ChangeLog,v 1.117 2011/06/21 15:37:40 jlec Exp $
+
+ 21 Jun 2011; Justin Lecher <jlec@gentoo.org> fftw-2.1.5-r5.ebuild,
+ fftw-2.1.5-r8.ebuild, fftw-3.2.2.ebuild, fftw-3.2.2-r1.ebuild:
+ Add dependency on virtual/fortran
21 Jun 2011; Justin Lecher <jlec@gentoo.org> fftw-2.1.5-r5.ebuild,
fftw-2.1.5-r8.ebuild:
diff --git a/sci-libs/fftw/fftw-2.1.5-r5.ebuild b/sci-libs/fftw/fftw-2.1.5-r5.ebuild
index ac98c3a98cb6..cc4d4fa0bbec 100644
--- a/sci-libs/fftw/fftw-2.1.5-r5.ebuild
+++ b/sci-libs/fftw/fftw-2.1.5-r5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r5.ebuild,v 1.21 2011/06/21 15:19:08 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r5.ebuild,v 1.22 2011/06/21 15:37:40 jlec Exp $
inherit eutils fortran-2 flag-o-matic autotools toolchain-funcs
@@ -20,6 +20,7 @@ IUSE="doc float fortran mpi openmp threads"
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 s390 sparc x86"
pkg_setup() {
+ use openmp && FORTRAN_NEED_OPENMP="1"
use fortran && fortran-2_pkg_setup
# this one is reported to cause trouble on pentium4 m series
filter-mfpmath "sse"
diff --git a/sci-libs/fftw/fftw-2.1.5-r8.ebuild b/sci-libs/fftw/fftw-2.1.5-r8.ebuild
index b55d9e4124d7..1957f8d8c650 100644
--- a/sci-libs/fftw/fftw-2.1.5-r8.ebuild
+++ b/sci-libs/fftw/fftw-2.1.5-r8.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r8.ebuild,v 1.9 2011/06/21 15:19:08 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r8.ebuild,v 1.10 2011/06/21 15:37:40 jlec Exp $
EAPI="3"
@@ -22,6 +22,7 @@ IUSE="doc float fortran mpi openmp threads"
KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
pkg_setup() {
+ use openmp && FORTRAN_NEED_OPENMP="1"
use fortran && fortran-2_pkg_setup
# this one is reported to cause trouble on pentium4 m series
filter-mfpmath "sse"
diff --git a/sci-libs/fftw/fftw-3.2.2-r1.ebuild b/sci-libs/fftw/fftw-3.2.2-r1.ebuild
index f3ef8688971c..ac68559c5ad6 100644
--- a/sci-libs/fftw/fftw-3.2.2-r1.ebuild
+++ b/sci-libs/fftw/fftw-3.2.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.2.2-r1.ebuild,v 1.3 2011/06/21 10:11:54 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.2.2-r1.ebuild,v 1.4 2011/06/21 15:37:40 jlec Exp $
EAPI=2
@@ -15,7 +15,11 @@ 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 openmp sse sse2 threads"
+DEPEND="fortran? ( virtual/fortran )"
+RDEPEND="${DEPEND}"
+
pkg_setup() {
+ use openmp && FORTRAN_NEED_OPENMP="1"
use fortran && fortran-2_pkg_setup
FFTW_THREADS="--disable-threads --disable-openmp"
if use openmp; then
diff --git a/sci-libs/fftw/fftw-3.2.2.ebuild b/sci-libs/fftw/fftw-3.2.2.ebuild
index 764cb3fee3ca..c9be257187c0 100644
--- a/sci-libs/fftw/fftw-3.2.2.ebuild
+++ b/sci-libs/fftw/fftw-3.2.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.2.2.ebuild,v 1.14 2011/06/21 10:11:54 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.2.2.ebuild,v 1.15 2011/06/21 15:37:40 jlec Exp $
EAPI=2
inherit flag-o-matic eutils fortran-2 toolchain-funcs autotools
@@ -14,7 +14,11 @@ 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 openmp sse sse2 threads"
+DEPEND="fortran? ( virtual/fortran )"
+RDEPEND="${DEPEND}"
+
pkg_setup() {
+ use openmp && FORTRAN_NEED_OPENMP="1"
use fortran && fortran-2_pkg_setup
FFTW_THREADS="--disable-threads --disable-openmp"
if use openmp; then
@@ -22,12 +26,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"