From 0b6e3e854ff7870ff220cb8b69915714f99b22d6 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 20 Jun 2021 23:15:22 +0200 Subject: ruby-utils.eclass: [QA] add EAPI guard * Add EAPI inherit guard * Declare supported EAPIs Signed-off-by: Sam James Signed-off-by: David Seifert --- eclass/ruby-utils.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'eclass/ruby-utils.eclass') diff --git a/eclass/ruby-utils.eclass b/eclass/ruby-utils.eclass index e5752dca2d7b..82e09cf49cb2 100644 --- a/eclass/ruby-utils.eclass +++ b/eclass/ruby-utils.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: ruby-utils.eclass @@ -7,6 +7,7 @@ # @AUTHOR: # Author: Hans de Graaff # @BLURB: An eclass for supporting ruby scripts and bindings in non-ruby packages +# @SUPPORTED_EAPIS: 5 6 7 # @DESCRIPTION: # The ruby-utils eclass is designed to allow an easier installation of # Ruby scripts and bindings for non-ruby packages. @@ -14,6 +15,10 @@ # This eclass does not set any metadata variables nor export any phase # functions. It can be inherited safely. +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac if [[ ! ${_RUBY_UTILS} ]]; then -- cgit v1.2.3