/[gentoo-x86]/eclass/mono-env.eclass
Gentoo

Contents of /eclass/mono-env.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri May 24 18:08:10 2013 UTC (16 months, 4 weeks ago) by pacho
Branch: MAIN
Add mono-env.eclass to start a migration to simpler dotnet related eclasses, http://www.gossamer-threads.com/lists/gentoo/dev/270881

1 pacho 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: $
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     EXPORT_FUNCTIONS pkg_setup
13    
14     if [[ ! ${_MONO_ENV} ]]; then
15    
16     mono-env_pkg_setup() {
17     # >=mono-0.92 versions using mcs -pkg:foo-sharp require shared memory, so we set the
18     # shared dir to ${T} so that ${T}/.wapi can be used during the install process.
19     export MONO_SHARED_DIR="${T}"
20    
21     # export more variables as needed by other dotnet packages
22     export MONO_REGISTRY_PATH="${T}/registry"
23     export XDG_DATA_HOME="${T}/data"
24    
25     # Building mono, nant and many other dotnet packages is known to fail if LC_ALL
26     # variable is not set to C. To prevent this all mono related packages will be
27     # build with LC_ALL=C (see bugs #146424, #149817)
28     export LC_ALL=C
29    
30     # Monodevelop-using applications need this to be set or they will try to create config
31     # files in the user's ~ dir.
32     export XDG_CONFIG_HOME="${T}"
33    
34     # Fix bug 83020:
35     # "Access Violations Arise When Emerging Mono-Related Packages with MONO_AOT_CACHE"
36     unset MONO_AOT_CACHE
37    
38     # mono libs can live on /usr/lib as they are not arch specific
39     QA_MULTILIB_PATHS="usr/lib/"
40     }
41    
42     _MONO_ENV=1
43     fi

  ViewVC Help
Powered by ViewVC 1.1.20