diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-07-05 11:08:28 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-07-05 11:12:34 +0100 |
commit | cfc29df60bf5923567734fa4accf9ddfdf78d222 (patch) | |
tree | 184d14003f56d6ec09d2f3f2b0eacb193289b8c8 /eclass | |
parent | ghc-package.eclass: drop support for pre-ghc-8 compilers (diff) | |
download | gentoo-cfc29df60bf5923567734fa4accf9ddfdf78d222.tar.gz gentoo-cfc29df60bf5923567734fa4accf9ddfdf78d222.tar.bz2 gentoo-cfc29df60bf5923567734fa4accf9ddfdf78d222.zip |
haskell-cabal.eclass: add SUPPORTED_EAPIS {0..7} annotation
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/haskell-cabal.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass index b4741a0840c1..5b67f43f0c5a 100644 --- a/eclass/haskell-cabal.eclass +++ b/eclass/haskell-cabal.eclass @@ -4,6 +4,7 @@ # @ECLASS: haskell-cabal.eclass # @MAINTAINER: # Haskell herd <haskell@gentoo.org> +# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7 # @AUTHOR: # Original author: Andres Loeh <kosmikus@gentoo.org> # Original author: Duncan Coutts <dcoutts@gentoo.org> @@ -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} |