commit: 03c3ab00ef45e2b73688e28c3c2819be2a649a42
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 18 06:30:55 2017 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 08:20:55 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03c3ab00
ruby-ng.eclass: add support for EAPI=6
eclass/ruby-ng.eclass | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index c83778de87..cd6a5ae2ad 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -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