diff options
author | Sam James <sam@gentoo.org> | 2021-06-20 23:14:37 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-06-20 23:14:37 +0200 |
commit | 222ed4facb90ec967804c3ddc0ab1a73d16ba1fe (patch) | |
tree | d949bc562e1a0702f1f24822e6a928ef8a871ed1 /eclass/mono.eclass | |
parent | mercurial.eclass: [QA] use BDEPEND for mercurial in EAPI 7 (diff) | |
download | gentoo-222ed4facb90ec967804c3ddc0ab1a73d16ba1fe.tar.gz gentoo-222ed4facb90ec967804c3ddc0ab1a73d16ba1fe.tar.bz2 gentoo-222ed4facb90ec967804c3ddc0ab1a73d16ba1fe.zip |
mono.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.eclass')
-rw-r--r-- | eclass/mono.eclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/eclass/mono.eclass b/eclass/mono.eclass index 382c6e4b4dcb..744b8099fe17 100644 --- a/eclass/mono.eclass +++ b/eclass/mono.eclass @@ -6,12 +6,21 @@ # maintainer-needed@gentoo.org # @BLURB: common settings and functions for mono and dotnet related packages # @DEPRECATED: mono-env +# @SUPPORTED_EAPIS: 7 # @DESCRIPTION: # The mono eclass contains common environment settings that are useful for # dotnet packages. Currently, it provides no functions, just exports # MONO_SHARED_DIR and sets LC_ALL in order to prevent errors during compilation # of dotnet packages. +case ${EAPI:-0} in + 7) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +if [[ -z ${_MONO_ECLASS} ]] ; then +_MONO_ECLASS=1 + inherit multilib # >=mono-0.92 versions using mcs -pkg:foo-sharp require shared memory, so we set the @@ -79,3 +88,5 @@ mono_multilib_comply() { fi } + +fi |