mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 17:06:58 +02:00
eclass/mono-env: Sync with gentoo
It's from gentoo commit 5f1f870f36da4f0739058b1f36c939e7ec53f3b3.
This commit is contained in:
parent
46fdaf3fd7
commit
b30e3d52ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user