summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-28 19:40:27 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-28 19:43:51 +0100
commitd4f42ce9bcfdf96a7eec6b149680cebbc191efd1 (patch)
treeee05c6c1b42d124f9154ccf74182be565732367c /eclass/fortran-2.eclass
parentsys-fs/udev: sync live ebuild (diff)
downloadgentoo-d4f42ce9bcfdf96a7eec6b149680cebbc191efd1.tar.gz
gentoo-d4f42ce9bcfdf96a7eec6b149680cebbc191efd1.tar.bz2
gentoo-d4f42ce9bcfdf96a7eec6b149680cebbc191efd1.zip
fortran-2.eclass: Respect fortran as test dep
If fortran is only needed for test, then there is no need to add it to RDEPEND. Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass/fortran-2.eclass')
-rw-r--r--eclass/fortran-2.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index 03fb4622579..78ce1f38352 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -60,17 +60,20 @@ for _f_use in ${FORTRAN_NEEDED}; do
case ${_f_use} in
always)
DEPEND+=" virtual/fortran"
+ RDEPEND+=" virtual/fortran"
break
;;
no)
break
;;
+ test)
+ DEPEND+=" ${_f_use}? ( virtual/fortran )"
*)
DEPEND+=" ${_f_use}? ( virtual/fortran )"
+ RDEPEND+=" ${_f_use}? ( virtual/fortran )"
;;
esac
done
-RDEPEND="${DEPEND}"
# @FUNCTION: _fortran_write_testsuite
# @INTERNAL