summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2012-02-23 23:06:13 +0000
committerAlex Legler <a3li@gentoo.org>2012-02-23 23:06:13 +0000
commit00cf3c41b4c173dcbf99dce2d9e798e13b83c635 (patch)
tree844b06c2d51e93970315cc39ac6fac32bc82013a /eclass/ruby-ng.eclass
parentImprove ebuild, patch by Agostino Sarubbo, see bug #401159. (diff)
downloadgentoo-2-00cf3c41b4c173dcbf99dce2d9e798e13b83c635.tar.gz
gentoo-2-00cf3c41b4c173dcbf99dce2d9e798e13b83c635.tar.bz2
gentoo-2-00cf3c41b4c173dcbf99dce2d9e798e13b83c635.zip
ruby-ng.eclass: Improve no-matching-ruby-target-error message wording wrt bug 405373.
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass13
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 1b5ed3fe3ef7..0408ae61b612 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.44 2011/12/18 21:33:50 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.45 2012/02/23 23:06:13 a3li Exp $
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
@@ -384,7 +384,14 @@ _ruby_each_implementation() {
unset RUBY
done
- [[ ${invoked} == "no" ]] && die "You need to select at least one Ruby implementation by setting RUBY_TARGETS in /etc/make.conf."
+ if [[ ${invoked} == "no" ]]; then
+ eerror "You need to select at least one compatible Ruby installation target via RUBY_TARGETS in make.conf."
+ eerror "Compatible targets for this package are: ${USE_RUBY}"
+ eerror
+ eerror "See http://www.gentoo.org/proj/en/prog_lang/ruby/index.xml#doc_chap3 for more information."
+ eerror
+ die "No compatible Ruby target selected."
+ fi
}
# @FUNCTION: ruby-ng_pkg_setup