Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: eclass/
Date: Sat, 26 Nov 2022 10:54:38
Message-Id: 1669376220.2e00acb8c29cc4d92a42fb374ff25de3b01bffd1.flow@gentoo
1 commit: 2e00acb8c29cc4d92a42fb374ff25de3b01bffd1
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Fri Nov 25 11:13:57 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 25 11:37:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2e00acb8
7
8 dotnet-utils.eclass: add inherit guard
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 eclass/dotnet-utils.eclass | 8 +++++++-
13 1 file changed, 7 insertions(+), 1 deletion(-)
14
15 diff --git a/eclass/dotnet-utils.eclass b/eclass/dotnet-utils.eclass
16 index f7f84dde3..e5c5d3c8f 100644
17 --- a/eclass/dotnet-utils.eclass
18 +++ b/eclass/dotnet-utils.eclass
19 @@ -14,6 +14,9 @@ case ${EAPI} in
20 *) die "${ECLASS}: EAPI ${EAPI} unsupported." ;;
21 esac
22
23 +if [[ ! ${_DOTNET_UTILS_ECLASS} ]]; then
24 +_DOTNET_UTILS_ECLASS=1
25 +
26 inherit multiprocessing
27
28 # @ECLASS_VARIABLE: DOTNET_SLOT
29 @@ -27,7 +30,6 @@ fi
30
31 # Temporary, use the virtual once you can have multiple virtuals installed at once
32 BDEPEND+=" || ( dev-dotnet/dotnet-sdk:${DOTNET_SLOT} dev-dotnet/dotnet-sdk-bin:${DOTNET_SLOT} )"
33 -EXPORT_FUNCTIONS src_unpack src_prepare src_compile pkg_setup
34
35 # @ECLASS_VARIABLE: DOTNET_EXECUTABLE
36 # @DESCRIPTION:
37 @@ -186,3 +188,7 @@ dotnet-utils_src_compile() {
38 -p:DebugType=embedded \
39 --self-contained || die
40 }
41 +
42 +fi
43 +
44 +EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_compile