Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 05 Jul 2021 10:12:43
Message-Id: 1625479954.cfc29df60bf5923567734fa4accf9ddfdf78d222.slyfox@gentoo
1 commit: cfc29df60bf5923567734fa4accf9ddfdf78d222
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 5 10:08:28 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=cfc29df6
7
8 haskell-cabal.eclass: add SUPPORTED_EAPIS {0..7} annotation
9
10 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
11
12 eclass/haskell-cabal.eclass | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15 diff --git a/eclass/haskell-cabal.eclass b/eclass/haskell-cabal.eclass
16 index b4741a0840c..5b67f43f0c5 100644
17 --- a/eclass/haskell-cabal.eclass
18 +++ b/eclass/haskell-cabal.eclass
19 @@ -4,6 +4,7 @@
20 # @ECLASS: haskell-cabal.eclass
21 # @MAINTAINER:
22 # Haskell herd <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 # Original author: Duncan Coutts <dcoutts@g.o>
27 @@ -120,8 +121,9 @@ HASKELL_CABAL_EXPF="pkg_setup src_compile src_test src_install pkg_postinst pkg_
28 QA_CONFIGURE_OPTIONS+=" --with-compiler --with-hc --with-hc-pkg --with-gcc"
29
30 case "${EAPI:-0}" in
31 + 0|1) ;;
32 2|3|4|5|6|7) HASKELL_CABAL_EXPF+=" src_configure" ;;
33 - *) ;;
34 + *) die "EAPI ${EAPI} unsupported." ;;
35 esac
36
37 EXPORT_FUNCTIONS ${HASKELL_CABAL_EXPF}