From b30e3d52ee42f971394de48594da6079e447b507 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 17 Feb 2022 11:27:54 +0100 Subject: [PATCH] eclass/mono-env: Sync with gentoo It's from gentoo commit 5f1f870f36da4f0739058b1f36c939e7ec53f3b3. --- .../portage-stable/eclass/mono-env.eclass | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/mono-env.eclass b/sdk_container/src/third_party/portage-stable/eclass/mono-env.eclass index 51794ed4a0..8cec214e61 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/mono-env.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/mono-env.eclass @@ -1,18 +1,25 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: mono-env.eclass # @MAINTAINER: -# dotnet@gentoo.org +# maintainer-needed@gentoo.org +# @SUPPORTED_EAPIS: 5 6 7 # @BLURB: Set environment variables commonly used by dotnet packages. # @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