From e44b9cf3e5b67eaf723e4a335faf39c87167abd3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 27 Dec 2022 20:10:49 +0000 Subject: gentoo auto-resync : 27:12:2022 - 20:10:49 --- eclass/ruby-ng-gnome2.eclass | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'eclass/ruby-ng-gnome2.eclass') 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 # @AUTHOR: # Author: Hans de Graaff -# @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 -- cgit v1.2.3