commit: cfc29df60bf5923567734fa4accf9ddfdf78d222
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 5 10:08:28 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=cfc29df6
haskell-cabal.eclass: add SUPPORTED_EAPIS {0..7} annotation
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
eclass/haskell-cabal.eclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
index b4741a0840c..5b67f43f0c5 100644
--- a/eclass/haskell-cabal.eclass
+++ b/eclass/haskell-cabal.eclass
@@ -4,6 +4,7 @@
# @ECLASS: haskell-cabal.eclass
# @MAINTAINER:
# Haskell herd <[email protected]>
+# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
# @AUTHOR:
# Original author: Andres Loeh <[email protected]>
# Original author: Duncan Coutts <[email protected]>
@@ -120,8 +121,9 @@ HASKELL_CABAL_EXPF="pkg_setup src_compile src_test
src_install pkg_postinst pkg_
QA_CONFIGURE_OPTIONS+=" --with-compiler --with-hc --with-hc-pkg --with-gcc"
case "${EAPI:-0}" in
+ 0|1) ;;
2|3|4|5|6|7) HASKELL_CABAL_EXPF+=" src_configure" ;;
- *) ;;
+ *) die "EAPI ${EAPI} unsupported." ;;
esac
EXPORT_FUNCTIONS ${HASKELL_CABAL_EXPF}