* [gentoo-dev] [PATCH] dotnet.eclass: Add EAPI 7 support
@ 2019-12-17 22:48 99% James Le Cuirot
0 siblings, 0 replies; 1+ results
From: James Le Cuirot @ 2019-12-17 22:48 UTC (permalink / raw
To: gentoo-dev; +Cc: dotnet, James Le Cuirot
I could not see eutils.eclass being used anywhere but multilib.eclass
is needed for get_libdir. I will fix implicit use of eutils by
libgdiplus for prune_libtool_files.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
---
eclass/dotnet.eclass | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/eclass/dotnet.eclass b/eclass/dotnet.eclass
index 3e834835b971..55e10645deb7 100644
--- a/eclass/dotnet.eclass
+++ b/eclass/dotnet.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: dotnet.eclass
@@ -12,19 +12,21 @@
# of dotnet packages.
case ${EAPI:-0} in
- 0) die "this eclass doesn't support EAPI 0" ;;
- 1|2|3) ;;
- *) ;; #if [[ ${USE_DOTNET} ]]; then REQUIRED_USE="|| (${USE_DOTNET})"; fi;;
+ 0)
+ die "this eclass doesn't support EAPI 0" ;;
+ [1-6])
+ inherit eapi7-ver multilib
+ DEPEND="dev-lang/mono" ;;
+ *)
+ BDEPEND="dev-lang/mono" ;;
esac
-inherit eutils versionator mono-env
+inherit mono-env
# @ECLASS-VARIABLE: USE_DOTNET
# @DESCRIPTION:
# Use flags added to IUSE
-DEPEND+=" dev-lang/mono"
-
# SET default use flags according on DOTNET_TARGETS
for x in ${USE_DOTNET}; do
case ${x} in
@@ -51,7 +53,7 @@ dotnet_pkg_setup() {
FRAMEWORK="${F}";
fi
else
- version_is_at_least "${F}" "${FRAMEWORK}" || FRAMEWORK="${F}"
+ ver_test "${F}" -le "${FRAMEWORK}" || FRAMEWORK="${F}"
fi
done
if [[ -z ${FRAMEWORK} ]]; then
--
2.24.1
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-12-17 22:48 99% [gentoo-dev] [PATCH] dotnet.eclass: Add EAPI 7 support James Le Cuirot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox