From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-60289-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 502971381F3
	for <garchives@archives.gentoo.org>; Sun, 19 May 2013 10:31:59 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id A60B8E0819;
	Sun, 19 May 2013 10:31:51 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id C2589E078A
	for <gentoo-dev@lists.gentoo.org>; Sun, 19 May 2013 10:31:50 +0000 (UTC)
Received: from [192.168.1.33] (248.Red-2-137-45.dynamicIP.rima-tde.net [2.137.45.248])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	(Authenticated sender: pacho)
	by smtp.gentoo.org (Postfix) with ESMTPSA id BF16D33E3C5;
	Sun, 19 May 2013 10:31:48 +0000 (UTC)
Message-ID: <1368959505.15714.0.camel@localhost>
Subject: Re: [gentoo-dev] mono-env.eclass: new eclass to be used by most of
 dotnet packages
From: Pacho Ramos <pacho@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: dotnet@gentoo.org
Date: Sun, 19 May 2013 12:31:45 +0200
In-Reply-To: <1365932403.6940.8.camel@localhost>
References: <1365932403.6940.8.camel@localhost>
Content-Type: multipart/mixed; boundary="=-KN4vpBY1fIbBp9Q8rHoN"
X-Mailer: Evolution 3.8.2 
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
X-Archives-Salt: 4570ff17-f831-49f4-8c87-39af7cd5157c
X-Archives-Hash: a6a4f2f95bd1a56aa6246f01e85491ce


--=-KN4vpBY1fIbBp9Q8rHoN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

El dom, 14-04-2013 a las 11:40 +0200, Pacho Ramos escribió:
> Due reasons explained here:
> https://bugs.gentoo.org/show_bug.cgi?id=462052#c1
> 
> We would like to start a process of simplifying dotnet maintained
> eclasses a lot because they are currently really hard to maintain. As a
> start point, we will need a simple eclass simply to export some
> variables needed to build most of dotnet packages. That variables are
> currently being exported by mono.eclass, the idea would be to split the
> "environment exporting" part out of it (and deprecate current
> mono.eclass in the future)
> 
> 

Updated eclass taking care of previous suggestions

--=-KN4vpBY1fIbBp9Q8rHoN
Content-Disposition: attachment; filename="mono-env.eclass"
Content-Type: text/plain; name="mono-env.eclass"; charset="UTF-8"
Content-Transfer-Encoding: 7bit

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

# @ECLASS: mono-env.eclass
# @MAINTAINER:
# dotnet@gentoo.org
# @BLURB: Set environment variables commonly used by dotnet packages.
# @DESCRIPTION:
# Set environment variables commonly used by dotnet packages.

inherit multilib

EXPORT_FUNCTIONS pkg_setup

if [[ ! ${_MONO_ENV} ]]; then

mono-env_pkg_setup() {
	# >=mono-0.92 versions using mcs -pkg:foo-sharp require shared memory, so we set the
	# shared dir to ${T} so that ${T}/.wapi can be used during the install process.
	export MONO_SHARED_DIR="${T}"

	# export more variables as needed by other dotnet packages
	export MONO_REGISTRY_PATH="${T}/registry"
	export XDG_DATA_HOME="${T}/data"

	# Building mono, nant and many other dotnet packages is known to fail if LC_ALL
	# variable is not set to C. To prevent this all mono related packages will be
	# build with LC_ALL=C (see bugs #146424, #149817)
	export LC_ALL=C

	# Monodevelop-using applications need this to be set or they will try to create config
	# files in the user's ~ dir.
	export XDG_CONFIG_HOME="${T}"

	# Fix bug 83020:
	# "Access Violations Arise When Emerging Mono-Related Packages with MONO_AOT_CACHE"
	unset MONO_AOT_CACHE

	# mono libs can live on /usr/lib as they are not arch specific
	QA_MULTILIB_PATHS="usr/lib/"
}

_MONO_ENV=1
fi

--=-KN4vpBY1fIbBp9Q8rHoN--