summaryrefslogtreecommitdiff
path: root/eclass/dotnet.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-01-15 15:51:32 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-01-15 15:51:32 +0000
commit21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch)
treee1810a4b135afce04b34862ef0fab2bfaeb8aeca /eclass/dotnet.eclass
parent7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff)
gentoo resync : 15.01.2020
Diffstat (limited to 'eclass/dotnet.eclass')
-rw-r--r--eclass/dotnet.eclass18
1 files 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