From fb538535551e3018d55fb9fde68518fc6a880842 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 21 Apr 2009 07:08:44 +0000 Subject: =?UTF-8?q?Add=20${PORTAGE=5FBIN=5FPATH}/ebuild-helpers/3=20direct?= =?UTF-8?q?ory=20to=20PATH=20for=20EAPI=203.=20Thanks=20to=20Tiziano=20M?= =?UTF-8?q?=C3=BCller=20=20for=20this=20patch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/main/trunk/; revision=13380 --- bin/ebuild.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bin/ebuild.sh') diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 6e5d483e3..7fe8f5649 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1902,6 +1902,19 @@ fi ebuild_main() { local f x + # we may want to make this configurable somewhere else + local ebuild_helpers_path + case ${EAPI} in + 3|3_pre1) + ebuild_helpers_path="${PORTAGE_BIN_PATH}/ebuild-helpers/3:${PORTAGE_BIN_PATH}/ebuild-helpers" + ;; + *) + ebuild_helpers_path="${PORTAGE_BIN_PATH}/ebuild-helpers" + ;; + esac + + export PATH="/usr/local/sbin:/sbin:/usr/sbin:${ebuild_helpers_path}:/usr/local/bin:/bin:/usr/bin:${ROOTPATH}" + if ! hasq $EBUILD_SH_ARGS clean depend help info nofetch ; then if hasq distcc $FEATURES ; then -- cgit v1.2.3-1-g7c22