summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:14:40 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:14:40 +0200
commit7ccde9834c42787ffc7ee9049d3e1050dfdfc2a0 (patch)
tree158f8b5fa6dcae260773d185c8d1366a4018cd8b /eclass/mono-env.eclass
parentmono.eclass: [QA] add EAPI guard (diff)
downloadgentoo-7ccde9834c42787ffc7ee9049d3e1050dfdfc2a0.tar.gz
gentoo-7ccde9834c42787ffc7ee9049d3e1050dfdfc2a0.tar.bz2
gentoo-7ccde9834c42787ffc7ee9049d3e1050dfdfc2a0.zip
mono-env.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/mono-env.eclass')
-rw-r--r--eclass/mono-env.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/mono-env.eclass b/eclass/mono-env.eclass
index 6a93993acd29..46a25fb98893 100644
--- a/eclass/mono-env.eclass
+++ b/eclass/mono-env.eclass
@@ -5,14 +5,21 @@
# @MAINTAINER:
# maintainer-needed@gentoo.org
# @BLURB: Set environment variables commonly used by dotnet packages.
+# @SUPPORTED_EAPIS: 5 6 7
# @DESCRIPTION:
# Set environment variables commonly used by dotnet packages.
-SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
+case ${EAPI:-0} in
+ [567]) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
EXPORT_FUNCTIONS pkg_setup
-if [[ ! ${_MONO_ENV} ]]; then
+if [[ -z ${_MONO_ENV_ECLASS} ]] ; then
+_MONO_ENV_ECLASS=1
+
+SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
mono-env_pkg_setup() {
# >=mono-0.92 versions using mcs -pkg:foo-sharp require shared memory, so we set the
@@ -40,5 +47,4 @@ mono-env_pkg_setup() {
QA_MULTILIB_PATHS="usr/lib/"
}
-_MONO_ENV=1
fi