sys-libs/libnih: stable 1.0.3-r4 for hppa, bug #724174
[gentoo.git] / eclass / ruby-utils.eclass
index 66ba5e86a53434c293d1aaa92c0ae7fafc75bd29..2934c94ffac9e1d15b0121875de484ffbbcaf301 100644 (file)
@@ -1,6 +1,5 @@
-# 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:
@@ -20,6 +19,7 @@ if [[ ! ${_RUBY_UTILS} ]]; then
 
 
 # @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
@@ -27,11 +27,11 @@ if [[ ! ${_RUBY_UTILS} ]]; then
 # 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() {
@@ -67,6 +67,18 @@ _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"