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