summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-ng.eclass1
-rw-r--r--eclass/ruby-utils.eclass6
2 files changed, 6 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index f144c9ecc351..c83778de876a 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -20,6 +20,7 @@
# * ruby21 - Ruby (MRI) 2.1.x
# * ruby22 - Ruby (MRI) 2.2.x
# * ruby23 - Ruby (MRI) 2.3.x
+# * ruby24 - Ruby (MRI) 2.4.x
# * jruby - JRuby
# * rbx - Rubinius
#
diff --git a/eclass/ruby-utils.eclass b/eclass/ruby-utils.eclass
index 9e16d4ac9bc4..66ba5e86a534 100644
--- a/eclass/ruby-utils.eclass
+++ b/eclass/ruby-utils.eclass
@@ -31,7 +31,7 @@ if [[ ! ${_RUBY_UTILS} ]]; then
RUBY_TARGETS_PREFERENCE="ruby20 ruby19 "
# All other active ruby targets
-RUBY_TARGETS_PREFERENCE+="ruby21 ruby22 ruby23"
+RUBY_TARGETS_PREFERENCE+="ruby21 ruby22 ruby23 ruby24"
_ruby_implementation_depend() {
@@ -63,6 +63,10 @@ _ruby_implementation_depend() {
rubypn="dev-lang/ruby"
rubyslot=":2.3"
;;
+ ruby24)
+ rubypn="dev-lang/ruby"
+ rubyslot=":2.4"
+ ;;
ree18)
rubypn="dev-lang/ruby-enterprise"
rubyslot=":1.8"