--- /usr/portage/www-client/chromium/chromium-4.0.266.0.ebuild 2009-12-08 12:14:48.000000000 +0000 +++ chromium-4.0.266.0.ebuild 2009-12-14 16:38:04.000000000 +0000 @@ -34,8 +34,6 @@ >=dev-util/gperf-3.0.3 >=dev-util/pkgconfig-0.23" -export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser - src_prepare() { # Gentoo uses .kde4, not .kde sed -e 's/\.kde/.kde4/' -i net/proxy/proxy_config_service_linux.cc \ @@ -54,6 +52,8 @@ } src_configure() { + export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser + # CFLAGS/LDFLAGS mkdir -p "${S}"/.gyp cat << EOF > "${S}"/.gyp/include.gypi @@ -74,9 +74,14 @@ # Sandbox paths myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" - if use amd64; then + if [[ $ABI = amd64 ]] ; then myconf="${myconf} -Dtarget_arch=x64" fi + + if [[ $ABI = x86 ]] ; then + myconf="${myconf} -Dtarget_arch=ia32" + fi + if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" fi @@ -95,6 +100,8 @@ } src_install() { + export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser + # Chromium does not have "install" target in the build system. dodir ${CHROMIUM_HOME}