From dc593bde2ca6d04f5e751437d5856d1100e41cc7 Mon Sep 17 00:00:00 2001 From: Sebastien Fabbro Date: Wed, 7 Oct 2009 18:54:26 +0000 Subject: Install env file in case of absent older one (Portage version: 2.2_rc44/cvs/Linux x86_64) --- dev-lang/icc/ChangeLog | 5 ++++- dev-lang/icc/icc-11.1.056.ebuild | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'dev-lang') diff --git a/dev-lang/icc/ChangeLog b/dev-lang/icc/ChangeLog index 47c117bf7825..c130d7d320c1 100644 --- a/dev-lang/icc/ChangeLog +++ b/dev-lang/icc/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-lang/icc # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.72 2009/10/06 20:33:05 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.73 2009/10/07 18:54:26 bicatali Exp $ + + 07 Oct 2009; Sébastien Fabbro icc-11.1.056.ebuild: + Install env file in case of absent older one *icc-11.1.056 (06 Oct 2009) diff --git a/dev-lang/icc/icc-11.1.056.ebuild b/dev-lang/icc/icc-11.1.056.ebuild index ba8c89045fda..58893ca460d6 100644 --- a/dev-lang/icc/icc-11.1.056.ebuild +++ b/dev-lang/icc/icc-11.1.056.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-11.1.056.ebuild,v 1.2 2009/10/06 22:17:06 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-11.1.056.ebuild,v 1.3 2009/10/07 18:54:26 bicatali Exp $ EAPI=2 @@ -119,7 +119,8 @@ src_install() { NLSPATH="${ROOT}${DESTINATION}/lib/locale/en_US/%N" MANPATH="${ROOT}${DESTINATION}/man/en_US" EOF - if [ -n "$(diff ${ROOT}etc/env.d/${envf} ./${envf})" ]; then + if [ ! -e ${ROOT}etc/env.d/${envf} ] || + [ -n "$(diff ${ROOT}etc/env.d/${envf} ./${envf})" ]; then doenvd ${envf} || die "doenvd ${envf} failed" fi [ -d ${DESTINATION}/idb ] && \ -- cgit v1.2.3-65-gdbad