Gentoo Archives: gentoo-dev

From: David Seifert <soap@g.o>
To: gentoo-dev@l.g.o
Cc: David Seifert <soap@g.o>
Subject: [gentoo-dev] [PATCH 08/41] dotnet.eclass: drop EAPI 6 support
Date: Sun, 25 Dec 2022 22:18:04
Message-Id: 20221225221552.8023-8-soap@gentoo.org
In Reply to: [gentoo-dev] [PATCH 01/41] ada.eclass: drop EAPI 6 support by David Seifert
1 Signed-off-by: David Seifert <soap@g.o>
2 ---
3 eclass/dotnet.eclass | 21 ++++++++++-----------
4 1 file changed, 10 insertions(+), 11 deletions(-)
5
6 diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
7 index 319fde89311..b92b9c1b405 100644
8 --- a/eclass/dotnet.eclass
9 +++ b/eclass/dotnet.eclass
10 @@ -4,7 +4,7 @@
11 # @ECLASS: dotnet.eclass
12 # @MAINTAINER:
13 # maintainer-needed@g.o
14 -# @SUPPORTED_EAPIS: 6 7
15 +# @SUPPORTED_EAPIS: 7
16 # @BLURB: common settings and functions for mono and dotnet related packages
17 # @DESCRIPTION:
18 # The dotnet eclass contains common environment settings that are useful for
19 @@ -13,18 +13,15 @@
20 # of dotnet packages.
21
22 case ${EAPI} in
23 - 6)
24 - inherit eapi7-ver multilib
25 - DEPEND="dev-lang/mono"
26 - ;;
27 - 7)
28 - BDEPEND="dev-lang/mono"
29 - ;;
30 - *)
31 - die "${ECLASS}: EAPI ${EAPI:-0} not supported"
32 - ;;
33 + 7) ;;
34 + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
35 esac
36
37 +if [[ ! ${_DOTNET_ECLASS} ]]; then
38 +_DOTNET_ECLASS=1
39 +
40 +BDEPEND="dev-lang/mono"
41 +
42 inherit mono-env
43
44 # @ECLASS_VARIABLE: USE_DOTNET
45 @@ -145,4 +142,6 @@ dotnet_multilib_comply() {
46 fi
47 }
48
49 +fi
50 +
51 EXPORT_FUNCTIONS pkg_setup
52 --
53 2.39.0