diff options
author | Sam James <sam@gentoo.org> | 2021-06-20 23:15:22 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-20 23:15:22 +0200 |
commit | 0b6e3e854ff7870ff220cb8b69915714f99b22d6 (patch) | |
tree | 714a4d4d41c4996e1d290eefc881ee7c0588e228 /eclass/ruby-utils.eclass | |
parent | rpm.eclass: [QA] add EAPI guard (diff) | |
download | gentoo-0b6e3e854ff7870ff220cb8b69915714f99b22d6.tar.gz gentoo-0b6e3e854ff7870ff220cb8b69915714f99b22d6.tar.bz2 gentoo-0b6e3e854ff7870ff220cb8b69915714f99b22d6.zip |
ruby-utils.eclass: [QA] add EAPI guard
* Add EAPI inherit guard
* Declare supported EAPIs
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/ruby-utils.eclass')
-rw-r--r-- | eclass/ruby-utils.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
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 <graaff@gentoo.org> # @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 |