From e2ae788171f95c2d832b489429d93950086b0e83 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sun, 4 Sep 2022 22:15:29 +0300 Subject: rebar.eclass: add support for EAPI=8 Closes: https://github.com/gentoo/gentoo/pull/27123 Signed-off-by: Arthur Zamarin --- eclass/rebar.eclass | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'eclass') diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass index c982dea5d1fd..1c7bc20def14 100644 --- a/eclass/rebar.eclass +++ b/eclass/rebar.eclass @@ -6,7 +6,7 @@ # maintainer-needed@gentoo.org # @AUTHOR: # Amadeusz Żołnowski -# @SUPPORTED_EAPIS: 6 7 +# @SUPPORTED_EAPIS: 6 7 8 # @BLURB: Build Erlang/OTP projects using dev-util/rebar. # @DESCRIPTION: # An eclass providing functions to build Erlang/OTP projects using @@ -19,15 +19,9 @@ # targets. The eclass workarounds some of these problems. It handles # installation in a generic way for Erlang/OTP structured projects. -case "${EAPI:-0}" in - 0|1|2|3|4|5) - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" - ;; - 6|7) - ;; - *) - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" - ;; +case ${EAPI} in + 6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac EXPORT_FUNCTIONS src_prepare src_compile src_test src_install -- cgit v1.2.3-65-gdbad