diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-10-07 13:30:23 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-10-07 13:30:23 +0000 |
commit | 9b488587774bbb49ea8c85151e7a73a194d67ea7 (patch) | |
tree | 11b9b9d062f0ad827122943c99922f41471b3580 /eclass | |
parent | Moving app-text/yudit to app-editors/yudit. (diff) | |
download | gentoo-2-9b488587774bbb49ea8c85151e7a73a194d67ea7.tar.gz gentoo-2-9b488587774bbb49ea8c85151e7a73a194d67ea7.tar.bz2 gentoo-2-9b488587774bbb49ea8c85151e7a73a194d67ea7.zip |
Depend on virtual/fortran eclass wise but in an USE=fortran sensitive way, #435250
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/fortran-2.eclass | 12 |
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}" |