[gentoo-dev] [PATCH 3/3] lua.eclass: clean up the eapi test

2021-07-05 Thread William Hubbs
Signed-off-by: William Hubbs 
---
 eclass/lua.eclass | 9 ++---
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/eclass/lua.eclass b/eclass/lua.eclass
index e3a25c5d184..e9a5c117560 100644
--- a/eclass/lua.eclass
+++ b/eclass/lua.eclass
@@ -50,15 +50,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_R0} ]]; then
-- 
2.31.1




[gentoo-dev] [PATCH 3/3] lua.eclass: clean up the eapi test

2021-07-02 Thread William Hubbs
Signed-off-by: William Hubbs 
---
 eclass/lua.eclass | 5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/eclass/lua.eclass b/eclass/lua.eclass
index e3a25c5d184..b4cbac7afa8 100644
--- a/eclass/lua.eclass
+++ b/eclass/lua.eclass
@@ -51,13 +51,10 @@
 # @CODE
 
 case ${EAPI:-0} in
-   0|1|2|3|4|5|6)
-   die "Unsupported EAPI=${EAPI} (too old) for ${ECLASS}"
-   ;;
7|8)
;;
*)
-   die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
+   die "Unsupported EAPI=${EAPI} for ${ECLASS}"
;;
 esac
 
-- 
2.31.1