dev-cpp/pangomm: stable 2.42.1 for hppa, bug #717144
[gentoo.git] / eclass / mono-env.eclass
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 # @ECLASS: mono-env.eclass
5 # @MAINTAINER:
6 # dotnet@gentoo.org
7 # @BLURB: Set environment variables commonly used by dotnet packages.
8 # @DESCRIPTION:
9 # Set environment variables commonly used by dotnet packages.
10
11 SRC_URI="http://download.mono-project.com/sources/${PN}/${P}.tar.bz2"
12
13 EXPORT_FUNCTIONS pkg_setup
14
15 if [[ ! ${_MONO_ENV} ]]; then
16
17 mono-env_pkg_setup() {
18         # >=mono-0.92 versions using mcs -pkg:foo-sharp require shared memory, so we set the
19         # shared dir to ${T} so that ${T}/.wapi can be used during the install process.
20         export MONO_SHARED_DIR="${T}"
21
22         # export more variables as needed by other dotnet packages
23         export MONO_REGISTRY_PATH="${T}/registry"
24         export XDG_DATA_HOME="${T}/data"
25
26         # Building mono, nant and many other dotnet packages is known to fail if LC_ALL
27         # variable is not set to C. To prevent this all mono related packages will be
28         # build with LC_ALL=C (see bugs #146424, #149817)
29         export LC_ALL=C
30
31         # Monodevelop-using applications need this to be set or they will try to create config
32         # files in the user's ~ dir.
33         export XDG_CONFIG_HOME="${T}"
34
35         # Fix bug 83020:
36         # "Access Violations Arise When Emerging Mono-Related Packages with MONO_AOT_CACHE"
37         unset MONO_AOT_CACHE
38
39         # mono libs can live on /usr/lib as they are not arch specific
40         QA_MULTILIB_PATHS="usr/lib/"
41 }
42
43 _MONO_ENV=1
44 fi