From 03c3ab00ef45e2b73688e28c3c2819be2a649a42 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sat, 18 Feb 2017 07:30:55 +0100 Subject: [PATCH] ruby-ng.eclass: add support for EAPI=6 --- eclass/ruby-ng.eclass | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index c83778de876a..cd6a5ae2ad10 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -81,7 +81,7 @@ case ${EAPI} in 0|1) die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;; 2|3) ;; - 4|5) + 4|5|6) # S is no longer automatically assigned when it doesn't exist. S="${WORKDIR}" ;; @@ -263,7 +263,7 @@ ruby_get_use_targets() { # confuse this function with ruby_implementation_depend(). # # @EXAMPLE: -# EAPI=4 +# EAPI=6 # RUBY_OPTIONAL=yes # # inherit ruby-ng @@ -286,7 +286,7 @@ if [[ ${RUBY_OPTIONAL} != yes ]]; then RDEPEND="${RDEPEND} $(ruby_implementations_depend)" case ${EAPI:-0} in - 4|5) + 4|5|6) REQUIRED_USE+=" || ( $(ruby_get_use_targets) )" ;; esac @@ -295,7 +295,7 @@ fi _ruby_invoke_environment() { old_S=${S} case ${EAPI} in - 4|5) + 4|5|6) if [ -z "${RUBY_S}" ]; then sub_S=${P} else @@ -434,6 +434,12 @@ ruby-ng_src_prepare() { _ruby_invoke_environment all _ruby_apply_patches + case ${EAPI} in + 6) + eapply_user + ;; + esac + _PHASE="source copy" \ _ruby_each_implementation _ruby_source_copy -- 2.26.2