ruby-ng.eclass: add support for EAPI=6
authorHans de Graaff <graaff@gentoo.org>
Sat, 18 Feb 2017 06:30:55 +0000 (07:30 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sat, 25 Feb 2017 08:20:55 +0000 (09:20 +0100)
eclass/ruby-ng.eclass

index c83778de876af617d08c0cd0fa2558f0dd025897..cd6a5ae2ad10959a7f35fc4a67421d3fb7217461 100644 (file)
@@ -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