-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-# $Id$
# @ECLASS: ruby-utils.eclass
# @MAINTAINER:
# @ECLASS-VARIABLE: RUBY_TARGETS_PREFERENCE
+# @INTERNAL
# @DESCRIPTION:
# This variable lists all the known ruby targets in preference of use as
# determined by the ruby team. By using this ordering rather than the
# implementation will be installed first (and thus eselected). This will
# provide for a better first installation experience.
-# All RUBY_TARGETS
-RUBY_TARGETS_PREFERENCE="ruby20 ruby19 "
+# All stable RUBY_TARGETS
+RUBY_TARGETS_PREFERENCE="ruby25 ruby24 "
# All other active ruby targets
-RUBY_TARGETS_PREFERENCE+="ruby21 ruby22 ruby23 ruby24"
+RUBY_TARGETS_PREFERENCE+="ruby26 ruby27"
_ruby_implementation_depend() {
rubypn="dev-lang/ruby"
rubyslot=":2.4"
;;
+ ruby25)
+ rubypn="dev-lang/ruby"
+ rubyslot=":2.5"
+ ;;
+ ruby26)
+ rubypn="dev-lang/ruby"
+ rubyslot=":2.6"
+ ;;
+ ruby27)
+ rubypn="dev-lang/ruby"
+ rubyslot=":2.7"
+ ;;
ree18)
rubypn="dev-lang/ruby-enterprise"
rubyslot=":1.8"