summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-04 22:15:29 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-12 22:14:33 +0300
commite2ae788171f95c2d832b489429d93950086b0e83 (patch)
tree5107ce8963cd5c595a67766f4da7b9892ba73d8c /eclass
parentmyspell-r2.eclass: improve code examples format (diff)
downloadgentoo-e2ae788171f95c2d832b489429d93950086b0e83.tar.gz
gentoo-e2ae788171f95c2d832b489429d93950086b0e83.tar.bz2
gentoo-e2ae788171f95c2d832b489429d93950086b0e83.zip
rebar.eclass: add support for EAPI=8
Closes: https://github.com/gentoo/gentoo/pull/27123 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/rebar.eclass14
1 files changed, 4 insertions, 10 deletions
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 <aidecoe@gentoo.org>
-# @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