ruby-ng.eclass: future proof EAPI checks
authorHans de Graaff <graaff@gentoo.org>
Thu, 18 Jul 2019 07:53:53 +0000 (09:53 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 21 Jul 2019 05:44:44 +0000 (07:44 +0200)
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 <graaff@gentoo.org>
eclass/ruby-ng.eclass

index 05c4c41a0bff702a69d5bfd50d8f2510ab7994e8..8dc3e16612522afd0a56e487402f63209f7aaa4d 100644 (file)
@@ -71,7 +71,7 @@ case ${EAPI} in
        4|5)
                inherits="eutils"
                ;;
-       6)
+       *)
                inherits="estack"
                ;;
 esac
@@ -417,7 +417,7 @@ _ruby_apply_patches() {
                                fi
                        done
                        ;;
-               6)
+               *)
                        if [[ -n ${RUBY_PATCHES[@]} ]]; then
                           eqawarn "RUBY_PATCHES is no longer supported, use PATCHES instead"
                        fi
@@ -449,7 +449,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