diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-14 04:07:49 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-14 04:07:49 +0000 |
commit | e7ac068da63fc6764fe097714aeea480992bb168 (patch) | |
tree | da6165a2dd422c0a7d2e2f759bf60569cf516406 /bin/ebuild.sh | |
parent | 4c37e971066766d8dc4a294e20b56cca33a23cb4 (diff) | |
download | portage-e7ac068da63fc6764fe097714aeea480992bb168.tar.gz portage-e7ac068da63fc6764fe097714aeea480992bb168.tar.bz2 portage-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-x | bin/ebuild.sh | 11 |
1 files changed, 11 insertions, 0 deletions
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 |