--- chromium-16.0.899.0.ebuild.orig 2011-10-05 08:54:45.000000000 +0100 +++ chromium-16.0.899.0.ebuild 2011-10-10 13:56:13.000000000 +0100 @@ -216,9 +216,11 @@ $(gyp_use pulseaudio use_pulseaudio)" # Enable sandbox. - myconf+=" - -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox - -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" + if ! use prefix; then + myconf+=" + -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox + -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" + fi if host-is-pax; then # Prevent the build from failing (bug #301880). The performance @@ -262,7 +264,10 @@ } src_compile() { - emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die + emake chrome BUILDTYPE=Release V=1 || die + if ! use prefix; then + emake chrome_sandbox BUILDTYPE=Release V=1 || die + fi pax-mark m out/Release/chrome if use chromedriver; then emake chromedriver BUILDTYPE=Release V=1 || die @@ -306,8 +311,11 @@ src_install() { exeinto "${CHROMIUM_HOME}" doexe out/Release/chrome || die - doexe out/Release/chrome_sandbox || die - fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" + + if ! use prefix; then + doexe out/Release/chrome_sandbox || die + fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" + fi if use chromedriver; then doexe out/Release/chromedriver || die