Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 12 Sep 2022 19:14:43
Message-Id: 1663010073.e2ae788171f95c2d832b489429d93950086b0e83.arthurzam@gentoo
1 commit: e2ae788171f95c2d832b489429d93950086b0e83
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 4 19:15:29 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 12 19:14:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2ae7881
7
8 rebar.eclass: add support for EAPI=8
9
10 Closes: https://github.com/gentoo/gentoo/pull/27123
11 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
12
13 eclass/rebar.eclass | 14 ++++----------
14 1 file changed, 4 insertions(+), 10 deletions(-)
15
16 diff --git a/eclass/rebar.eclass b/eclass/rebar.eclass
17 index c982dea5d1fd..1c7bc20def14 100644
18 --- a/eclass/rebar.eclass
19 +++ b/eclass/rebar.eclass
20 @@ -6,7 +6,7 @@
21 # maintainer-needed@g.o
22 # @AUTHOR:
23 # Amadeusz Żołnowski <aidecoe@g.o>
24 -# @SUPPORTED_EAPIS: 6 7
25 +# @SUPPORTED_EAPIS: 6 7 8
26 # @BLURB: Build Erlang/OTP projects using dev-util/rebar.
27 # @DESCRIPTION:
28 # An eclass providing functions to build Erlang/OTP projects using
29 @@ -19,15 +19,9 @@
30 # targets. The eclass workarounds some of these problems. It handles
31 # installation in a generic way for Erlang/OTP structured projects.
32
33 -case "${EAPI:-0}" in
34 - 0|1|2|3|4|5)
35 - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
36 - ;;
37 - 6|7)
38 - ;;
39 - *)
40 - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
41 - ;;
42 +case ${EAPI} in
43 + 6|7|8) ;;
44 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
45 esac
46
47 EXPORT_FUNCTIONS src_prepare src_compile src_test src_install