summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-07-10 12:04:18 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-07-10 12:08:12 +0100
commitba01bd910d9667dbc7a1a80873ec3a23d897ed62 (patch)
tree81a9d6e315b292c05c644498019ddbfe09ba74f4 /eclass/ghc-package.eclass
parentdev-haskell/c2hs: bump up to 0.28.8, EAPI=8 example (diff)
downloadgentoo-ba01bd910d9667dbc7a1a80873ec3a23d897ed62.tar.gz
gentoo-ba01bd910d9667dbc7a1a80873ec3a23d897ed62.tar.bz2
gentoo-ba01bd910d9667dbc7a1a80873ec3a23d897ed62.zip
ghc-package.eclass: unify error message for unsupported EAPI
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/ghc-package.eclass')
-rw-r--r--eclass/ghc-package.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/ghc-package.eclass b/eclass/ghc-package.eclass
index e91fb2912f65..1d90c7fc383e 100644
--- a/eclass/ghc-package.eclass
+++ b/eclass/ghc-package.eclass
@@ -14,10 +14,10 @@
inherit multiprocessing
# Maintain version-testing compatibility with ebuilds not using EAPI 7.
-case "${EAPI:-0}" in
+case ${EAPI} in
7|8) ;;
6) inherit eapi7-ver ;;
- *) die "EAPI ${EAPI} unsupported." ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
# GHC uses it's own native code generator. Portage's