From 7399625d4d97ebfe9ea0de62dbfde0cbcb9e2c09 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Thu, 18 Jul 2019 09:53:53 +0200 Subject: [PATCH] ruby-ng.eclass: future proof EAPI checks 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 --- eclass/ruby-ng.eclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 05c4c41a0bff..8dc3e1661252 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -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 -- 2.26.2