diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index b81038237a6b..d808b7bd98b3 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -419,6 +419,13 @@ _ruby_each_implementation() { use ruby_targets_${_ruby_implementation} || continue RUBY=$(ruby_implementation_command ${_ruby_implementation}) + + if [[ -z ${RUBY} ]]; then + eerror "Failed to determine a path for \${RUBY} for USE=ruby_targets_${_ruby_implementation}:" + eerror " ruby_implementation_command returned an empty RUBY for ${_ruby_implementation}" + die "Could not find RUBY for ${_ruby_implementation}. Is $(_ruby_implementation_depend ${_ruby_implementation}) installed?" + fi + invoked=yes if [[ -n "$1" ]]; then |