summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-07-06 16:45:05 -0500
committerWilliam Hubbs <williamh@gentoo.org>2021-07-06 16:45:05 -0500
commit76879309348b02d3b07558a218bd08cdaa069480 (patch)
treee7aa3d205310cc2c75707f922389c3e72952ac39 /eclass/lua-single.eclass
parentgo-module.eclass: add eapi 8 support (diff)
downloadgentoo-76879309348b02d3b07558a218bd08cdaa069480.tar.gz
gentoo-76879309348b02d3b07558a218bd08cdaa069480.tar.bz2
gentoo-76879309348b02d3b07558a218bd08cdaa069480.zip
lua-single.eclass: clean up the eapi test
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'eclass/lua-single.eclass')
-rw-r--r--eclass/lua-single.eclass9
1 files changed, 2 insertions, 7 deletions
diff --git a/eclass/lua-single.eclass b/eclass/lua-single.eclass
index 7abe1eb6674a..ab4fdb3c75ac 100644
--- a/eclass/lua-single.eclass
+++ b/eclass/lua-single.eclass
@@ -62,15 +62,10 @@
# }
# @CODE
-case ${EAPI:-0} in
- 0|1|2|3|4|5|6)
- die "Unsupported EAPI=${EAPI} (too old) for ${ECLASS}"
- ;;
+case ${EAPI} in
7|8)
;;
- *)
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
- ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ ! ${_LUA_SINGLE_R0} ]]; then