From: David Seifert <soap@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: David Seifert <soap@gentoo.org>
Subject: [gentoo-dev] [PATCH 33/50] ruby-ng.eclass: drop support for EAPI 6
Date: Tue, 27 Aug 2024 17:15:18 +0200 [thread overview]
Message-ID: <20240827151553.210835-33-soap@gentoo.org> (raw)
In-Reply-To: <20240827151553.210835-1-soap@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
---
eclass/ruby-ng.eclass | 75 +++++++++----------------------------------
1 file changed, 16 insertions(+), 59 deletions(-)
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index d80ae96dd40b..03d3e72769b0 100644
--- a/eclass/ruby-ng.eclass
+++ b/eclass/ruby-ng.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @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: 6 7 8
+# @SUPPORTED_EAPIS: 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
@@ -67,14 +67,13 @@
# passed to "grep -E" to remove reporting of these shared objects.
case ${EAPI} in
- 6|7|8) ;;
+ 7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_RUBY_NG_ECLASS} ]]; then
_RUBY_NG_ECLASS=1
-[[ ${EAPI} == 6 ]] && inherit eqawarn toolchain-funcs
inherit multilib ruby-utils
# S is no longer automatically assigned when it doesn't exist.
@@ -218,16 +217,7 @@ ruby_add_rdepend() {
case $# in
1) ;;
2)
- case ${EAPI} in
- 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
- ;;
- *)
- die "Use the usual depend syntax with a single argument in ruby_add_rdepend"
- ;;
- esac
+ die "Use the usual depend syntax with a single argument in ruby_add_rdepend"
;;
*)
die "bad number of arguments to $0"
@@ -241,10 +231,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
- 6) DEPEND+=" test? ( ${_RUBY_ATOMS_SAMELIB_RESULT} )" ;;
- *) BDEPEND+=" test? ( ${_RUBY_ATOMS_SAMELIB_RESULT} )" ;;
- esac
+ BDEPEND+=" test? ( ${_RUBY_ATOMS_SAMELIB_RESULT} )"
if ! has test "$IUSE"; then
IUSE+=" test"
RESTRICT+=" !test? ( test )"
@@ -254,8 +241,8 @@ ruby_add_rdepend() {
# @FUNCTION: ruby_add_bdepend
# @USAGE: dependencies
# @DESCRIPTION:
-# Adds the specified dependencies, with use condition(s) to DEPEND (or
-# BDEPEND in EAPI7), taking the current set of ruby targets into
+# Adds the specified dependencies, with use condition(s) to BDEPEND,
+# taking the current set of ruby targets into
# account. This makes sure that all ruby dependencies of the package are
# installed for the same ruby targets. Use this function for all ruby
# dependencies instead of setting DEPEND or BDEPEND yourself. The list
@@ -266,16 +253,7 @@ ruby_add_bdepend() {
case $# in
1) ;;
2)
- case ${EAPI} in
- 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
- ;;
- *)
- die "Use the usual depend syntax with a single argument in ruby_add_bdepend"
- ;;
- esac
+ die "Use the usual depend syntax with a single argument in ruby_add_bdepend"
;;
*)
die "bad number of arguments to $0"
@@ -285,25 +263,16 @@ ruby_add_bdepend() {
_ruby_set_globals_invalidate_if_stale
_ruby_atoms_samelib "$1"
- case ${EAPI} in
- 6) DEPEND+=" ${_RUBY_ATOMS_SAMELIB_RESULT}" ;;
- *) BDEPEND+=" ${_RUBY_ATOMS_SAMELIB_RESULT}" ;;
- esac
+ BDEPEND+=" ${_RUBY_ATOMS_SAMELIB_RESULT}"
}
# @FUNCTION: ruby_add_depend
# @USAGE: dependencies
# @DESCRIPTION:
-# Adds the specified dependencies to DEPEND in EAPI7, similar to
-# ruby_add_bdepend.
+# Adds the specified dependencies to DEPEND, similar to ruby_add_bdepend.
ruby_add_depend() {
debug-print-function ${FUNCNAME} "${@}"
- case ${EAPI} in
- 6) die "only available in EAPI 7 and newer" ;;
- *) ;;
- esac
-
case $# in
1) ;;
*) die "bad number of arguments to $0" ;;
@@ -365,7 +334,7 @@ _ruby_get_use_targets() {
# confuse this function with ruby_implementation_depend().
#
# @EXAMPLE:
-# EAPI=7
+# EAPI=8
# RUBY_OPTIONAL=yes
#
# inherit ruby-ng
@@ -417,10 +386,7 @@ if [[ ${RUBY_OPTIONAL} != yes ]]; then
DEPEND+=" ${_RUBY_IMPLEMENTATIONS_DEPEND}"
RDEPEND+=" ${_RUBY_IMPLEMENTATIONS_DEPEND}"
REQUIRED_USE+=" || ( ${_RUBY_GET_USE_TARGETS} )"
- case ${EAPI} in
- 6) ;;
- *) BDEPEND+=" ${_RUBY_IMPLEMENTATIONS_DEPEND}" ;;
- esac
+ BDEPEND+=" ${_RUBY_IMPLEMENTATIONS_DEPEND}"
fi
_ruby_invoke_environment() {
@@ -534,18 +500,9 @@ ruby-ng_src_unpack() {
}
_ruby_apply_patches() {
- case ${EAPI} in
- 6)
- if [[ -n ${RUBY_PATCHES[@]} ]]; then
- eqawarn "RUBY_PATCHES is no longer supported, use PATCHES instead"
- fi
- ;;
- *)
- if [[ -n ${RUBY_PATCHES[@]} ]]; then
- die "RUBY_PATCHES is no longer supported, use PATCHES instead"
- fi
- ;;
- esac
+ if [[ -n ${RUBY_PATCHES[@]} ]]; then
+ die "RUBY_PATCHES is no longer supported, use PATCHES instead"
+ fi
# This is a special case: instead of executing just in the special
# "all" environment, this will actually copy the effects on _all_
@@ -695,7 +652,7 @@ doruby() {
insinto "${sitelibdir#${EPREFIX}}"
insopts -m 0644
doins "$@"
- ) || die "failed to install $@"
+ )
}
# @FUNCTION: ruby_get_libruby
--
2.46.0
next prev parent reply other threads:[~2024-08-27 15:24 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 15:14 [gentoo-dev] [PATCH 01/50] apache-module.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 02/50] autotools.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 03/50] bash-completion-r1.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 04/50] cdrom.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 05/50] check-reqs.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 06/50] depend.apache.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 07/50] desktop.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 08/50] distutils-r1.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 09/50] flag-o-matic.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 10/50] fortran-2.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 11/50] gap-pkg.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 12/50] gnuconfig.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 13/50] java-pkg-2.eclass: " David Seifert
2024-08-27 15:14 ` [gentoo-dev] [PATCH 14/50] java-utils-2.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 15/50] libtool.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 16/50] mono-env.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 17/50] multibuild.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 18/50] multilib-build.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 19/50] multilib-minimal.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 20/50] multilib.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 21/50] multiprocessing.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 22/50] out-of-source-utils.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 23/50] pax-utils.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 24/50] perl-functions.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 25/50] php-pear-r2.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 26/50] portability.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 27/50] prefix.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 28/50] preserve-libs.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 29/50] python-r1.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 30/50] python-utils-r1.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 31/50] readme.gentoo-r1.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 32/50] ruby-fakegem.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` David Seifert [this message]
2024-08-27 15:15 ` [gentoo-dev] [PATCH 34/50] ruby-utils.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 35/50] strip-linguas.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 36/50] systemd.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 37/50] tmpfiles.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 38/50] toolchain-funcs.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 39/50] toolchain.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 40/50] udev.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 41/50] vcs-clean.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 42/50] vdr-plugin-2.eclass: drop support for EAPI 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 43/50] vim-doc.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 44/50] vim-plugin.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 45/50] vim-spell.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 46/50] virtualx.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 47/50] webapp.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 48/50] wrapper.eclass: drop support for EAPI 5 and 6 David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 49/50] xdg-utils.eclass: " David Seifert
2024-08-27 15:15 ` [gentoo-dev] [PATCH 50/50] xdg.eclass: drop support for EAPI 6 David Seifert
2024-08-27 21:03 ` [gentoo-dev] [PATCH 00/50] XXXXXX.eclass: drop support for EAPI6 Robin H. Johnson
2024-08-27 21:16 ` Eli Schwartz
2024-08-27 21:36 ` Sam James
2024-08-28 9:45 ` Ulrich Mueller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240827151553.210835-33-soap@gentoo.org \
--to=soap@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox