Mailing List Archive

[PATCH 3/4] eclass/ruby-ng.eclass: remove EAPI 4 support
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
---
eclass/ruby-ng.eclass | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index d8afa207661f..ac9c117c0c02 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -8,7 +8,7 @@
# Author: Diego E. Pettenò <flameeyes@gentoo.org>
# Author: Alex Legler <a3li@gentoo.org>
# Author: Hans de Graaff <graaff@gentoo.org>
-# @SUPPORTED_EAPIS: 4 5 6 7 8
+# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: An eclass for installing Ruby packages with proper support for multiple Ruby slots.
# @DESCRIPTION:
# The Ruby eclass is designed to allow an easier installation of Ruby packages
@@ -68,7 +68,7 @@

local inherits=""
case ${EAPI} in
- 4|5)
+ 5)
inherits="eutils toolchain-funcs"
;;
6)
@@ -87,7 +87,7 @@ EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_i
S="${WORKDIR}"

case ${EAPI} in
- 4|5|6|7|8) ;;
+ 5|6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac

@@ -207,7 +207,7 @@ ruby_add_rdepend() {
1) ;;
2)
case ${EAPI} in
- 4|5|6)
+ 5|6)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_rdepend for $CATEGORY/$PF"
ruby_add_rdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
@@ -229,7 +229,7 @@ ruby_add_rdepend() {
# Add the dependency as a test-dependency since we're going to
# execute the code during test phase.
case ${EAPI} in
- 4|5|6) DEPEND="${DEPEND} test? ( ${dependency} )" ;;
+ 5|6) DEPEND="${DEPEND} test? ( ${dependency} )" ;;
*) BDEPEND="${BDEPEND} test? ( ${dependency} )" ;;
esac
if ! has test "$IUSE"; then
@@ -252,7 +252,7 @@ ruby_add_bdepend() {
1) ;;
2)
case ${EAPI} in
- 4|5|6)
+ 5|6)
[[ "${GENTOO_DEV}" == "yes" ]] && eqawarn "You can now use the usual syntax in ruby_add_bdepend for $CATEGORY/$PF"
ruby_add_bdepend "$(_ruby_wrap_conditions "$1" "$2")"
return
@@ -270,7 +270,7 @@ ruby_add_bdepend() {
local dependency=$(_ruby_atoms_samelib "$1")

case ${EAPI} in
- 4|5|6) DEPEND="${DEPEND} $dependency" ;;
+ 5|6) DEPEND="${DEPEND} $dependency" ;;
*) BDEPEND="${BDEPEND} $dependency" ;;
esac
RDEPEND="${RDEPEND}"
@@ -283,7 +283,7 @@ ruby_add_bdepend() {
# ruby_add_bdepend.
ruby_add_depend() {
case ${EAPI} in
- 4|5|6) die "only available in EAPI 7 and newer" ;;
+ 5|6) die "only available in EAPI 7 and newer" ;;
*) ;;
esac

@@ -351,7 +351,7 @@ if [[ ${RUBY_OPTIONAL} != yes ]]; then
RDEPEND="${RDEPEND} $(ruby_implementations_depend)"
REQUIRED_USE+=" || ( $(ruby_get_use_targets) )"
case ${EAPI} in
- 4|5|6) ;;
+ 5|6) ;;
*) BDEPEND="${BDEPEND} $(ruby_implementations_depend)" ;;
esac
fi
@@ -455,7 +455,7 @@ ruby-ng_src_unpack() {

_ruby_apply_patches() {
case ${EAPI} in
- 4|5)
+ 5)
for patch in "${RUBY_PATCHES[@]}"; do
if [ -f "${patch}" ]; then
epatch "${patch}"
@@ -503,7 +503,7 @@ ruby-ng_src_prepare() {

# Handle PATCHES and user supplied patches via the default phase
case ${EAPI} in
- 4|5)
+ 5)
;;
*)
_ruby_invoke_environment all default
--
2.31.1