Gentoo Archives: gentoo-dev

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-dev@l.g.o
Cc: Conrad Kostecki <conikost@g.o>, candrews@g.o, Arthur Zamarin <arthurzam@g.o>
Subject: [gentoo-dev] [PATCH 4/4] rebar.eclass: add support for EAPI=8
Date: Sun, 04 Sep 2022 19:37:20
Message-Id: 20220904193515.210321-5-arthurzam@gentoo.org
In Reply to: [gentoo-dev] Various changes to eclasses by Arthur Zamarin
1 Signed-off-by: Arthur Zamarin <arthurzam@g.o>
2 ---
3 eclass/rebar.eclass | 14 ++++----------
4 1 file changed, 4 insertions(+), 10 deletions(-)
5
6 diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass
7 index c982dea5d1..1c7bc20def 100644
8 --- a/eclass/rebar.eclass
9 +++ b/eclass/rebar.eclass
10 @@ -6,7 +6,7 @@
11 # maintainer-needed@g.o
12 # @AUTHOR:
13 # Amadeusz Żołnowski <aidecoe@g.o>
14 -# @SUPPORTED_EAPIS: 6 7
15 +# @SUPPORTED_EAPIS: 6 7 8
16 # @BLURB: Build Erlang/OTP projects using dev-util/rebar.
17 # @DESCRIPTION:
18 # An eclass providing functions to build Erlang/OTP projects using
19 @@ -19,15 +19,9 @@
20 # targets. The eclass workarounds some of these problems. It handles
21 # installation in a generic way for Erlang/OTP structured projects.
22
23 -case "${EAPI:-0}" in
24 - 0|1|2|3|4|5)
25 - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
26 - ;;
27 - 6|7)
28 - ;;
29 - *)
30 - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
31 - ;;
32 +case ${EAPI} in
33 + 6|7|8) ;;
34 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
35 esac
36
37 EXPORT_FUNCTIONS src_prepare src_compile src_test src_install
38 --
39 2.37.3