summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-14 04:07:49 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-14 04:07:49 +0000
commite7ac068da63fc6764fe097714aeea480992bb168 (patch)
treeda6165a2dd422c0a7d2e2f759bf60569cf516406 /bin/ebuild.sh
parentFor bug #151082, don't allow installed packages to inappropriately satisfy pa... (diff)
downloadportage-multirepo-e7ac068da63fc6764fe097714aeea480992bb168.tar.gz
portage-multirepo-e7ac068da63fc6764fe097714aeea480992bb168.tar.bz2
portage-multirepo-e7ac068da63fc6764fe097714aeea480992bb168.zip
Implement per-package default USE flags at the ebuild and profile levels for bug #61732.
svn path=/main/trunk/; revision=4679
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index e3935e59..48a457a8 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