commit:     1029ed021d8a94112fe514ffd2b83aaad5029a11
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  5 10:03:23 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Jul  5 10:12:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1029ed02

ghc-package.eclass: add SUPPORTED_EAPIS {0..7} annotation

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/ghc-package.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
index 7e8a5aa0cba..e1a8d65be3e 100644
--- a/eclass/ghc-package.eclass
+++ b/eclass/ghc-package.eclass
@@ -4,6 +4,7 @@
 # @ECLASS: ghc-package.eclass
 # @MAINTAINER:
 # "Gentoo's Haskell Language team" <[email protected]>
+# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
 # @AUTHOR:
 # Original Author: Andres Loeh <[email protected]>
 # @BLURB: This eclass helps with the Glasgow Haskell Compiler's package 
configuration utility.
@@ -14,8 +15,9 @@ inherit multiprocessing
 
 # Maintain version-testing compatibility with ebuilds not using EAPI 7.
 case "${EAPI:-0}" in
+       0|1|2|3|7) ;;
        4|5|6) inherit eapi7-ver ;;
-       *) ;;
+       *) die "EAPI ${EAPI} unsupported." ;;
 esac
 
 # GHC uses it's own native code generator. Portage's

Reply via email to