summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-10-07 13:30:23 +0000
committerJustin Lecher <jlec@gentoo.org>2012-10-07 13:30:23 +0000
commitf1e4755a896777a8af7eda73b0482a99c24728d3 (patch)
tree48fe15675f7a6ec982c20830cbfc02450777da7c /eclass
parentMoving app-text/yudit to app-editors/yudit. (diff)
downloadhistorical-f1e4755a896777a8af7eda73b0482a99c24728d3.tar.gz
historical-f1e4755a896777a8af7eda73b0482a99c24728d3.tar.bz2
historical-f1e4755a896777a8af7eda73b0482a99c24728d3.zip
Depend on virtual/fortran eclass wise but in an USE=fortran sensitive way, #435250
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/fortran-2.eclass12
2 files changed, 15 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 3985ba03a4eb..c0fe99716cad 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.431 2012/10/07 13:15:52 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.432 2012/10/07 13:30:23 jlec Exp $
+
+ 07 Oct 2012; Justin Lecher <jlec@gentoo.org> fortran-2.eclass:
+ Depend on virtual/fortran eclass wise but in an USE=fortran sensitive way,
+ #435250
07 Oct 2012; Justin Lecher <jlec@gentoo.org> fortran-2.eclass:
Revert last change to not break packages with optional fortran support
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index cee06ae8430d..771d54666c55 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.9 2012/10/07 13:15:52 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/fortran-2.eclass,v 1.10 2012/10/07 13:30:23 jlec Exp $
# @ECLASS: fortran-2.eclass
# @MAINTAINER:
@@ -33,7 +33,7 @@
# Valid settings are any combination of: 77 90 95 2003
: ${FORTRAN_STANDARD:=77}
-inherit toolchain-funcs
+inherit eutils toolchain-funcs
# @FUNCTION: _write_testsuite
# @INTERNAL
@@ -155,3 +155,11 @@ case ${EAPI:-0} in
0|1|2|3|4|5) EXPORT_FUNCTIONS pkg_setup ;;
*) die "EAPI=${EAPI} is not supported" ;;
esac
+
+if in_iuse fortran; then
+ DEPEND="fortran? ( virtual/fortran )"
+else
+ DEPEND="virtual/fortran"
+fi
+
+RDEPEND="${DEPEND}"