diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-07-15 08:02:42 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-07-18 07:41:06 +0200 |
commit | 591579a593c20dee68fe2285a6ac55cdccbd9c66 (patch) | |
tree | 796235ee5792e228a0b191e585c61f3a379fd50f /eclass/ruby-ng.eclass | |
parent | dev-ruby/httparty: cleanup (diff) | |
download | gentoo-591579a593c20dee68fe2285a6ac55cdccbd9c66.tar.gz gentoo-591579a593c20dee68fe2285a6ac55cdccbd9c66.tar.bz2 gentoo-591579a593c20dee68fe2285a6ac55cdccbd9c66.zip |
eclass/ruby-ng.eclass: add EAPI 8 support
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 0c569bfcdcc6..d8afa207661f 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -8,7 +8,7 @@ # Author: Diego E. Pettenò <flameeyes@gentoo.org> # Author: Alex Legler <a3li@gentoo.org> # Author: Hans de Graaff <graaff@gentoo.org> -# @SUPPORTED_EAPIS: 4 5 6 7 +# @SUPPORTED_EAPIS: 4 5 6 7 8 # @BLURB: An eclass for installing Ruby packages with proper support for multiple Ruby slots. # @DESCRIPTION: # The Ruby eclass is designed to allow an easier installation of Ruby packages @@ -83,15 +83,12 @@ inherit ${inherits} multilib ruby-utils EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_test src_install pkg_setup +# S is no longer automatically assigned when it doesn't exist. +S="${WORKDIR}" + case ${EAPI} in - 0|1|2|3) - die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;; - 4|5|6|7) - # S is no longer automatically assigned when it doesn't exist. - S="${WORKDIR}" - ;; - *) - die "Unknown EAPI=${EAPI} for ruby-ng.eclass" + 4|5|6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac # @FUNCTION: ruby_implementation_depend |