1 |
commit: 1029ed021d8a94112fe514ffd2b83aaad5029a11 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 5 10:03:23 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 5 10:12:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1029ed02 |
7 |
|
8 |
ghc-package.eclass: add SUPPORTED_EAPIS {0..7} annotation |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
eclass/ghc-package.eclass | 4 +++- |
13 |
1 file changed, 3 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass |
16 |
index 7e8a5aa0cba..e1a8d65be3e 100644 |
17 |
--- a/eclass/ghc-package.eclass |
18 |
+++ b/eclass/ghc-package.eclass |
19 |
@@ -4,6 +4,7 @@ |
20 |
# @ECLASS: ghc-package.eclass |
21 |
# @MAINTAINER: |
22 |
# "Gentoo's Haskell Language team" <haskell@g.o> |
23 |
+# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 |
24 |
# @AUTHOR: |
25 |
# Original Author: Andres Loeh <kosmikus@g.o> |
26 |
# @BLURB: This eclass helps with the Glasgow Haskell Compiler's package configuration utility. |
27 |
@@ -14,8 +15,9 @@ inherit multiprocessing |
28 |
|
29 |
# Maintain version-testing compatibility with ebuilds not using EAPI 7. |
30 |
case "${EAPI:-0}" in |
31 |
+ 0|1|2|3|7) ;; |
32 |
4|5|6) inherit eapi7-ver ;; |
33 |
- *) ;; |
34 |
+ *) die "EAPI ${EAPI} unsupported." ;; |
35 |
esac |
36 |
|
37 |
# GHC uses it's own native code generator. Portage's |