commit:     d75b2f5c53274fc58bfcc1bd40397b7e00c52af0
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 27 16:30:10 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec 27 16:30:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d75b2f5c

ruby-ng-gnome2.eclass: drop EAPI 6 support

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 eclass/ruby-ng-gnome2.eclass | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 487e3268e360..4c48e94df703 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -6,21 +6,21 @@
 # Ruby herd <r...@gentoo.org>
 # @AUTHOR:
 # Author: Hans de Graaff <gra...@gentoo.org>
-# @SUPPORTED_EAPIS: 6 7
+# @SUPPORTED_EAPIS: 7
 # @PROVIDES: ruby-ng
 # @BLURB: An eclass to simplify handling of various ruby-gnome2 parts.
 # @DESCRIPTION:
 # This eclass simplifies installation of the various pieces of
 # ruby-gnome2 since they share a very common installation procedure.
 
-case "${EAPI:-0}" in
-       6)      inherit eapi7-ver ;;
-       7)      ;;
-       *)
-               die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
-               ;;
+case ${EAPI} in
+       7) ;;
+       *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
 esac
 
+if [[ ! ${_RUBY_NG_GNOME2_ECLASS} ]]; then
+_RUBY_NG_GNOME2_ECLASS=1
+
 RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
 RUBY_FAKEGEM_TASK_TEST=""
 RUBY_FAKEGEM_TASK_DOC=""
@@ -40,7 +40,7 @@ fi
 IUSE="test"
 RESTRICT+=" !test? ( test )"
 
-DEPEND="virtual/pkgconfig"
+BDEPEND="virtual/pkgconfig"
 ruby_add_bdepend "
        dev-ruby/pkg-config
        test? ( >=dev-ruby/test-unit-2 )"
@@ -157,3 +157,5 @@ each_ruby_test() {
                ${RUBY} test/run-test.rb || die
        fi
 }
+
+fi

Reply via email to