eclass/mono-env: Sync with Gentoo

It's from Gentoo commit 8a3782815536a1beef06f4942d0ca8c2d9b36952.
This commit is contained in:
Krzesimir Nowak 2024-08-02 16:04:35 +02:00
parent 5520b02ea5
commit 7a0ad0c597

View File

@ -1,21 +1,19 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: mono-env.eclass
# @MAINTAINER:
# maintainer-needed@gentoo.org
# @SUPPORTED_EAPIS: 5 6 7
# @SUPPORTED_EAPIS: 6 7
# @BLURB: Set environment variables commonly used by dotnet packages.
# @DESCRIPTION:
# Set environment variables commonly used by dotnet packages.
case ${EAPI:-0} in
[567]) ;;
case ${EAPI} in
6|7) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
EXPORT_FUNCTIONS pkg_setup
if [[ -z ${_MONO_ENV_ECLASS} ]] ; then
_MONO_ENV_ECLASS=1
@ -48,3 +46,5 @@ mono-env_pkg_setup() {
}
fi
EXPORT_FUNCTIONS pkg_setup