diff --git a/sdk_container/src/third_party/portage-stable/eclass/ruby-utils.eclass b/sdk_container/src/third_party/portage-stable/eclass/ruby-utils.eclass index 4406724f38..2506aee255 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/ruby-utils.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/ruby-utils.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: ruby-utils.eclass @@ -6,6 +6,7 @@ # Ruby team # @AUTHOR: # Author: Hans de Graaff +# @SUPPORTED_EAPIS: 5 6 7 8 # @BLURB: An eclass for supporting ruby scripts and bindings in non-ruby packages # @DESCRIPTION: # The ruby-utils eclass is designed to allow an easier installation of @@ -14,6 +15,10 @@ # This eclass does not set any metadata variables nor export any phase # functions. It can be inherited safely. +case ${EAPI:-0} in + [5678]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac if [[ ! ${_RUBY_UTILS} ]]; then @@ -28,10 +33,10 @@ if [[ ! ${_RUBY_UTILS} ]]; then # provide for a better first installation experience. # All stable RUBY_TARGETS -RUBY_TARGETS_PREFERENCE="ruby24 ruby23 " +RUBY_TARGETS_PREFERENCE="ruby26 " # All other active ruby targets -RUBY_TARGETS_PREFERENCE+="ruby25 ruby26" +RUBY_TARGETS_PREFERENCE+="ruby27 ruby30" _ruby_implementation_depend() { @@ -75,6 +80,14 @@ _ruby_implementation_depend() { rubypn="dev-lang/ruby" rubyslot=":2.6" ;; + ruby27) + rubypn="dev-lang/ruby" + rubyslot=":2.7" + ;; + ruby30) + rubypn="dev-lang/ruby" + rubyslot=":3.0" + ;; ree18) rubypn="dev-lang/ruby-enterprise" rubyslot=":1.8"