summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-12-27 17:30:10 +0100
committerDavid Seifert <soap@gentoo.org>2022-12-27 17:30:10 +0100
commitd75b2f5c53274fc58bfcc1bd40397b7e00c52af0 (patch)
tree4b6ca398f18406a9db8cbc0cbf8abf366de87e5c /eclass
parentrocm.eclass: drop EAPI 7 support (diff)
downloadgentoo-d75b2f5c53274fc58bfcc1bd40397b7e00c52af0.tar.gz
gentoo-d75b2f5c53274fc58bfcc1bd40397b7e00c52af0.tar.bz2
gentoo-d75b2f5c53274fc58bfcc1bd40397b7e00c52af0.zip
ruby-ng-gnome2.eclass: drop EAPI 6 support
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-ng-gnome2.eclass18
1 files 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 <ruby@gentoo.org>
# @AUTHOR:
# Author: Hans de Graaff <graaff@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