summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-07-18 09:53:53 +0200
committerHans de Graaff <graaff@gentoo.org>2019-07-21 07:44:44 +0200
commit7399625d4d97ebfe9ea0de62dbfde0cbcb9e2c09 (patch)
treea13eab8ff3009c51b38dc8ef77b2155204c2508b /eclass
parentruby-ng.eclass: drop support for EAPI 2 and EAPI 3 (diff)
downloadgentoo-7399625d4d97ebfe9ea0de62dbfde0cbcb9e2c09.tar.gz
gentoo-7399625d4d97ebfe9ea0de62dbfde0cbcb9e2c09.tar.bz2
gentoo-7399625d4d97ebfe9ea0de62dbfde0cbcb9e2c09.zip
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 <graaff@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-ng.eclass8
1 files 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