Skip to content

Commit

Permalink
fortran-2.eclass: Respect fortran as test dep
Browse files Browse the repository at this point in the history
If fortran is only needed for test, then there is no
need to add it to RDEPEND.

Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Nov 28, 2015
1 parent f5125c2 commit d4f42ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eclass/fortran-2.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4f42ce

Please sign in to comment.