From e7ac068da63fc6764fe097714aeea480992bb168 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 14 Oct 2006 04:07:49 +0000 Subject: Implement per-package default USE flags at the ebuild and profile levels for bug #61732. svn path=/main/trunk/; revision=4679 --- bin/ebuild.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index e3935e593..48a457a8f 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1514,6 +1514,17 @@ PDEPEND="$PDEPEND $E_PDEPEND" unset E_IUSE E_DEPEND E_RDEPEND E_PDEPEND if [ "${EBUILD_PHASE}" != "depend" ]; then + # Make IUSE defaults backward compatible with all the old shell code. + iuse_temp="" + for x in ${IUSE} ; do + if [[ ${x} == +* ]]; then + iuse_temp="${iuse_temp} ${x:1}" + else + iuse_temp="${iuse_temp} ${x}" + fi + done + export IUSE=${iuse_temp} + unset iuse_temp # Lock the dbkey variables after the global phase declare -r DEPEND RDEPEND SLOT SRC_URI RESTRICT HOMEPAGE LICENSE DESCRIPTION declare -r KEYWORDS INHERITED IUSE PDEPEND PROVIDE -- cgit v1.2.3-1-g7c22