From: Hans de Graaff <[email protected]>

Explicitly list old EAPIs but use a wildcard for the latest EAPI, so
that these changes will also be used by default in newer EAPIs.

Signed-off-by: Hans de Graaff <[email protected]>
---
 eclass/ruby-ng.eclass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index facb0bea95d7..edf17fb94746 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -416,7 +416,7 @@ _ruby_apply_patches() {
                                fi
                        done
                        ;;
-               6)
+               *)
                        if [[ -n ${RUBY_PATCHES[@]} ]]; then
                           eqawarn "RUBY_PATCHES is no longer supported, use 
PATCHES instead"
                        fi
@@ -448,7 +448,9 @@ ruby-ng_src_prepare() {
 
        # Handle PATCHES and user supplied patches via the default phase
        case ${EAPI} in
-               6)
+               4|5)
+                       ;;
+               *)
                        _ruby_invoke_environment all default
                        ;;
        esac
-- 
2.21.0


Reply via email to