summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2010-09-23 12:28:23 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2010-09-23 12:28:23 +0000
commitfbf1fb09493bdeaf71f759c2de264e8fac740338 (patch)
tree7d0d2f5b32206979af9388f8e802d58bf148c7ba /www-client
parentRespect LDFLAGS (for all the ebuild that use it). Bug #337869 (diff)
downloadhistorical-fbf1fb09493bdeaf71f759c2de264e8fac740338.tar.gz
historical-fbf1fb09493bdeaf71f759c2de264e8fac740338.tar.bz2
historical-fbf1fb09493bdeaf71f759c2de264e8fac740338.zip
Version bump for stable channel release.
Package-Manager: portage-2.1.8.3/cvs/Linux i686
Diffstat (limited to 'www-client')
-rw-r--r--www-client/chromium/ChangeLog9
-rw-r--r--www-client/chromium/Manifest15
-rw-r--r--www-client/chromium/chromium-6.0.472.63-r1.ebuild223
-rw-r--r--www-client/chromium/chromium-6.0.472.63.ebuild223
4 files changed, 458 insertions, 12 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog
index 65695ae12501..fdea10ccf94d 100644
--- a/www-client/chromium/ChangeLog
+++ b/www-client/chromium/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for www-client/chromium
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.186 2010/09/22 12:27:04 rich0 Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.187 2010/09/23 12:28:23 phajdan.jr Exp $
+
+*chromium-6.0.472.63-r1 (23 Sep 2010)
+*chromium-6.0.472.63 (23 Sep 2010)
+
+ 23 Sep 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ +chromium-6.0.472.63.ebuild, +chromium-6.0.472.63-r1.ebuild:
+ Version bump for stable channel release.
22 Sep 2010; Richard Freeman <rich0@gentoo.org>
chromium-6.0.472.62.ebuild:
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
index 9648e7ef5363..350d1692949e 100644
--- a/www-client/chromium/Manifest
+++ b/www-client/chromium/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX chromium-gnome-keyring-r0.patch 2842 RMD160 1ac9a6e2785954a7a4f7f60988c8d7c101ad6db8 SHA1 44ee90f3c6632bcad9843cce22865c9c39fd6c8a SHA256 237d85599270b7cc1f83e58e27712f3d65609c325318b0b28ac277d630574c96
AUX chromium-launcher.sh 1097 RMD160 6a35819d6ae463d1614ecd5976fe8aeae1a3519e SHA1 93b8259fe9ddf6914faa9a4cdbaf451a97031228 SHA256 9d16e2afe508c33aa987001a0442696eaefd5cf91e7a6c9eeb900bc9824390c9
AUX chromium-make-3.82-compatibility-r0.patch 867 RMD160 d6fd01bcd32460678e1503ca9fbeb78ed16e8213 SHA1 9964cbe8063140312dd1217327f3648dfaf71284 SHA256 339f8022d0a2ff733d779ba8c4a3cf09a28633afccc0106d86289ef497f2f401
@@ -8,20 +5,16 @@ AUX chromium-plugins-path-r0.patch 1043 RMD160 698a8562c866e046b1adf8553894ee08a
AUX chromium.xml 390 RMD160 6b2f901da76555a7112f71a6f9dae6e2e3307324 SHA1 81148a0b094bc697ff2c9d33efe976b1bffb72a3 SHA256 a81c6257346eaa4f6389fc9ea8834fd2dd3b006cf4e9e999028aca812d76fe9a
DIST chromium-6.0.472.59.tar.bz2 123988791 RMD160 90ea863301b6f65d9559749ff77287cfbc39f3f0 SHA1 6f46e63f24d7540ea86b066ee55351fe775a1f0f SHA256 90473e06242ba52c2e73f2a9729ad830e2baac0af1b2823e3b25ef0c83031999
DIST chromium-6.0.472.62.tar.bz2 123969547 RMD160 874411802d0aa4d7ed83967f2c6873682b764ba6 SHA1 960bdac068b9265fbc9cff41a773f9c0740d09bb SHA256 518400874f0b801a8a7954d3f90b2060c620979bab219237dc1fc56d8dcafeb6
+DIST chromium-6.0.472.63.tar.bz2 123990097 RMD160 7931846fd581f76ba2039f82b64156a100614d44 SHA1 82045b1685706edc7be9182b99f2bcedb4b06da9 SHA256 029bb4f4a706fcb83e80c20b960415cd1fb01e5c634d72f0271e79c60bdec228
DIST chromium-7.0.517.5.tar.bz2 231754066 RMD160 bf509acf62b8bc17ce52d28bfd8f84f9a0458d2f SHA1 66cebd7354b32e6b23d7ecf6b5bd8bc6a819b86b SHA256 c81651852b6fe6e70004e7e52ee287b2913a0a4ef8794bfbce2a67e0886df6f4
DIST chromium-7.0.517.8.tar.bz2 231773965 RMD160 da5e1ea0b3098632636420e40e8b14117f295fed SHA1 d0b7b91db874567ea9b1282f52ea55e79341dc03 SHA256 4469ae174e025799ff428aea13030b7bdbc977da9be8d870d411cc9597ddac08
EBUILD chromium-6.0.472.59.ebuild 6911 RMD160 37bb727178622b4dd73741378818fa5cda6f97f1 SHA1 c7b5077c9e850144c2299fec7cec673220039533 SHA256 f6803b7758eff412aed55b5b37f09b14f6fa59ba4ed5dbe64b85a6b3b2b7abb4
EBUILD chromium-6.0.472.62-r1.ebuild 6877 RMD160 f6b2c50701755af7eb4d4c375e58f88775693191 SHA1 08154d77162153d8991eb66bd998d951d390080e SHA256 b97281c6767438b64e0cb2ad6a9a74e44f4d17d3f78b11090e5f8ba5756141aa
EBUILD chromium-6.0.472.62.ebuild 6869 RMD160 03fa93ad9d3c5f0c83ae397be09733f9f5d785b0 SHA1 7ed48a9c07ec8a38d83f8678fce4825c2298a20d SHA256 5ad35f30bba95cb30f9ca5edfb130bc69d4ef2b6170fd23b0237acdd6e42cd4a
+EBUILD chromium-6.0.472.63-r1.ebuild 6877 RMD160 fcfa60450162bea6a6b242719df2b24acec90b3f SHA1 a0c0b653ed66fbd1e576b9a310efda604daaf8d2 SHA256 858972e6d411f6631ce611f423f8254c7296624525079199878a9283edea4a86
+EBUILD chromium-6.0.472.63.ebuild 6875 RMD160 868088280a7e82a3016c6feee15c61ea8e4b3237 SHA1 9f2a03a0592b51530595f35f24eea41b48a3a275 SHA256 54b9433c933f4faa90e1057baa29dd461e639931d2cacdb963996ed28f7e995c
EBUILD chromium-7.0.517.5.ebuild 6610 RMD160 069a0d751f91bfbd690fcc2ecab913122b4732ab SHA1 74435659741db1d649087027bbeed3c0903eda2f SHA256 3652a1a7dfd7c170b6fab314e438e30cba8d2ca5527a4cf4830e6d56a0257366
EBUILD chromium-7.0.517.8.ebuild 6610 RMD160 2bd4860793214909f9846e920969e6255682d0a6 SHA1 d540eef7b5477b866b28dee948eb0feb75c119a0 SHA256 69ced77027a163b9c291a9dcfec378cc042367d86bf6b0583d621ca227be0a20
EBUILD chromium-9999.ebuild 8318 RMD160 8e77a1d6d03f68a6ec2b2459e83c6d6a7c34e240 SHA1 3c11f043c9720cd00699decc7b49c4b751b485b9 SHA256 eea2befaaf104f583db9860cbf110f33707543fc35d8f18a4e1fcf8c5d54dcc0
-MISC ChangeLog 40749 RMD160 1e5ca683601c351b8abe859c5041aad7f63c7082 SHA1 4991c99039a6ef1be68ff080f40942c09424503f SHA256 b22107155088284da7f0471a4800f4daa44cd02fa96dabf58a606dac4de934c6
+MISC ChangeLog 40990 RMD160 96ca49ac653433305162cd43ee510b04737a670a SHA1 9fc9df59d2980dfba53ae5c5b35cda10cbcf7bc3 SHA256 4dab6dda6318c86e67bd8853a0456ce4dc900731585fb21de902af3c32d65f7f
MISC metadata.xml 267 RMD160 3a166415fec415d539c1b7c32ed40b188488b9fb SHA1 5c3d71a9cea27175cbe8c98369b42b79c8643c6c SHA256 4e6afae33f60d6752cacf2785f7f9a396b8711cce605b73d0d752a4af7d01fc8
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.16 (GNU/Linux)
-
-iEYEARECAAYFAkyZ9iMACgkQG4/rWKZmVWmvmwCfb7CzoPFOMqLCGy18vvhayPEY
-TDQAnjexSdKTmgQs9KzkhsKWGfpXJSGV
-=tHvX
------END PGP SIGNATURE-----
diff --git a/www-client/chromium/chromium-6.0.472.63-r1.ebuild b/www-client/chromium/chromium-6.0.472.63-r1.ebuild
new file mode 100644
index 000000000000..25061fd82442
--- /dev/null
+++ b/www-client/chromium/chromium-6.0.472.63-r1.ebuild
@@ -0,0 +1,223 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-6.0.472.63-r1.ebuild,v 1.1 2010/09/23 12:28:23 phajdan.jr Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic multilib pax-utils toolchain-funcs
+
+DESCRIPTION="Open-source version of Google Chrome web browser"
+HOMEPAGE="http://chromium.org/"
+SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="cups gnome-keyring"
+
+RDEPEND="app-arch/bzip2
+ >=dev-libs/libevent-1.4.13
+ >=dev-libs/nss-3.12.3
+ >=gnome-base/gconf-2.24.0
+ gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
+ >=media-libs/alsa-lib-1.0.19
+ media-libs/jpeg:0
+ media-libs/libpng
+ cups? ( >=net-print/cups-1.4.4 )
+ sys-libs/zlib
+ >=x11-libs/gtk+-2.14.7
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ >=dev-util/gperf-3.0.3
+ >=dev-util/pkgconfig-0.23
+ >=gnome-base/gnome-keyring-2.28.2
+ sys-devel/flex"
+RDEPEND+="
+ || (
+ x11-themes/gnome-icon-theme
+ x11-themes/oxygen-molecule
+ x11-themes/tango-icon-theme
+ x11-themes/xfce4-icon-theme
+ )
+ x11-apps/xmessage
+ x11-misc/xdg-utils
+ virtual/ttf-fonts"
+
+get_chromium_home() {
+ echo "/usr/$(get_libdir)/chromium-browser"
+}
+
+remove_bundled_lib() {
+ einfo "Removing bundled library $1 ..."
+ local out
+ out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \
+ || die "failed to remove bundled library $1"
+ if [[ -z $out ]]; then
+ die "no files matched when removing bundled library $1"
+ fi
+}
+
+src_prepare() {
+ # Fix compilation, bug #332131.
+ epatch "${FILESDIR}"/${PN}-make-3.82-compatibility-r0.patch
+
+ # Add Gentoo plugin paths.
+ epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch
+
+ remove_bundled_lib "third_party/bzip2"
+ remove_bundled_lib "third_party/codesighs"
+ remove_bundled_lib "third_party/cros"
+ remove_bundled_lib "third_party/jemalloc"
+ remove_bundled_lib "third_party/lcov"
+ remove_bundled_lib "third_party/libevent"
+ remove_bundled_lib "third_party/libjpeg"
+ remove_bundled_lib "third_party/libpng"
+ remove_bundled_lib "third_party/lzma_sdk"
+ remove_bundled_lib "third_party/molokocacao"
+ remove_bundled_lib "third_party/ocmock"
+ remove_bundled_lib "third_party/py"
+ remove_bundled_lib "third_party/pyftpdlib"
+ remove_bundled_lib "third_party/simplejson"
+ remove_bundled_lib "third_party/tlslite"
+ # TODO: also remove third_party/libxml and third_party/libxslt when
+ # http://crbug.com/29333 is fixed.
+ # TODO: also remove third_party/zlib. For now the compilation fails if we
+ # remove it (minizip-related).
+}
+
+src_configure() {
+ local myconf=""
+
+ # Never tell the build system to "enable" SSE2, it has a few unexpected
+ # additions, bug #336871.
+ myconf+=" -Ddisable_sse2=1"
+
+ # Use system-provided libraries.
+ # TODO: use_system_ffmpeg (http://crbug.com/50678).
+ # TODO: use_system_libxml (http://crbug.com/29333).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+ # TODO: use_system_icu, use_system_hunspell (upstream changes needed).
+ # TODO: use_system_ssl when we have a recent enough system NSS.
+ myconf="${myconf}
+ -Duse_system_bzip2=1
+ -Duse_system_libevent=1
+ -Duse_system_libjpeg=1
+ -Duse_system_libpng=1
+ -Duse_system_zlib=1"
+
+ # The dependency on cups is optional, see bug #324105.
+ if use cups; then
+ myconf="${myconf} -Duse_cups=1"
+ else
+ myconf="${myconf} -Duse_cups=0"
+ fi
+
+ if use "gnome-keyring"; then
+ myconf="${myconf} -Dlinux_link_gnome_keyring=1"
+ else
+ # TODO: we should also disable code trying to dlopen
+ # gnome-keyring in that case.
+ myconf="${myconf} -Dlinux_link_gnome_keyring=0"
+ fi
+
+ # Enable sandbox.
+ myconf="${myconf}
+ -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox
+ -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome"
+
+ # Disable the V8 snapshot. It breaks the build on hardened (bug #301880),
+ # and the performance gain isn't worth it.
+ myconf="${myconf} -Dv8_use_snapshot=0"
+
+ # Disable tcmalloc memory allocator. It causes problems,
+ # for example bug #320419.
+ myconf="${myconf} -Dlinux_use_tcmalloc=0"
+
+ # Disable gpu rendering, it is incompatible with nvidia-drivers,
+ # bug #319331.
+ myconf="${myconf} -Denable_gpu=0"
+
+ # Use target arch detection logic from bug #296917.
+ local myarch="$ABI"
+ [[ $myarch = "" ]] && myarch="$ARCH"
+
+ if [[ $myarch = amd64 ]] ; then
+ myconf="${myconf} -Dtarget_arch=x64"
+ elif [[ $myarch = x86 ]] ; then
+ myconf="${myconf} -Dtarget_arch=ia32"
+ elif [[ $myarch = arm ]] ; then
+ # TODO: check this again after
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
+ append-flags -fno-tree-sink
+
+ myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
+ else
+ die "Failed to determine target arch, got '$myarch'."
+ fi
+
+ if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
+ myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
+ fi
+
+ # Work around a likely GCC bug, see bug #331945.
+ if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then
+ append-flags -fno-ipa-cp
+ fi
+
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system.
+ # Depending on GCC version the warnings are different and we don't want
+ # the build to fail because of that.
+ myconf="${myconf} -Dwerror="
+
+ build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
+}
+
+src_compile() {
+ emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
+ rootdir="${S}" \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ || die "compilation failed"
+}
+
+src_install() {
+ dodir "$(get_chromium_home)"
+
+ exeinto "$(get_chromium_home)"
+ pax-mark m out/Release/chrome
+ doexe out/Release/chrome
+ doexe out/Release/chrome_sandbox
+ fperms 4755 "$(get_chromium_home)/chrome_sandbox"
+ doexe out/Release/xdg-settings
+ doexe "${FILESDIR}"/chromium-launcher.sh
+
+ insinto "$(get_chromium_home)"
+ doins out/Release/chrome.pak || die "installing chrome.pak failed"
+ doins out/Release/resources.pak || die "installing resources.pak failed"
+
+ doins -r out/Release/locales
+ doins -r out/Release/resources
+
+ # chrome.1 is for chromium --help
+ newman out/Release/chrome.1 chrome.1
+ newman out/Release/chrome.1 chromium.1
+
+ doexe out/Release/ffmpegsumo_nolink || die
+ doexe out/Release/libffmpegsumo.so || die
+
+ # Install icon and desktop entry.
+ newicon out/Release/product_logo_48.png ${PN}-browser.png
+ dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium
+ make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \
+ "MimeType=text/html;text/xml;application/xhtml+xml;"
+ sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \
+ || die "desktop file sed failed"
+
+ # Install GNOME default application entry (bug #303100).
+ dodir /usr/share/gnome-control-center/default-apps
+ insinto /usr/share/gnome-control-center/default-apps
+ doins "${FILESDIR}"/chromium.xml
+}
diff --git a/www-client/chromium/chromium-6.0.472.63.ebuild b/www-client/chromium/chromium-6.0.472.63.ebuild
new file mode 100644
index 000000000000..fcc9110342d9
--- /dev/null
+++ b/www-client/chromium/chromium-6.0.472.63.ebuild
@@ -0,0 +1,223 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-6.0.472.63.ebuild,v 1.1 2010/09/23 12:28:23 phajdan.jr Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic multilib pax-utils toolchain-funcs
+
+DESCRIPTION="Open-source version of Google Chrome web browser"
+HOMEPAGE="http://chromium.org/"
+SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="cups gnome-keyring"
+
+RDEPEND="app-arch/bzip2
+ >=dev-libs/libevent-1.4.13
+ >=dev-libs/nss-3.12.3
+ >=gnome-base/gconf-2.24.0
+ gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
+ >=media-libs/alsa-lib-1.0.19
+ media-libs/jpeg:0
+ media-libs/libpng
+ cups? ( >=net-print/cups-1.3.11 )
+ sys-libs/zlib
+ >=x11-libs/gtk+-2.14.7
+ x11-libs/libXScrnSaver"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ >=dev-util/gperf-3.0.3
+ >=dev-util/pkgconfig-0.23
+ >=gnome-base/gnome-keyring-2.28.2
+ sys-devel/flex"
+RDEPEND+="
+ || (
+ x11-themes/gnome-icon-theme
+ x11-themes/oxygen-molecule
+ x11-themes/tango-icon-theme
+ x11-themes/xfce4-icon-theme
+ )
+ x11-apps/xmessage
+ x11-misc/xdg-utils
+ virtual/ttf-fonts"
+
+get_chromium_home() {
+ echo "/usr/$(get_libdir)/chromium-browser"
+}
+
+remove_bundled_lib() {
+ einfo "Removing bundled library $1 ..."
+ local out
+ out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \
+ || die "failed to remove bundled library $1"
+ if [[ -z $out ]]; then
+ die "no files matched when removing bundled library $1"
+ fi
+}
+
+src_prepare() {
+ # Fix compilation, bug #332131.
+ epatch "${FILESDIR}"/${PN}-make-3.82-compatibility-r0.patch
+
+ # Add Gentoo plugin paths.
+ epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch
+
+ remove_bundled_lib "third_party/bzip2"
+ remove_bundled_lib "third_party/codesighs"
+ remove_bundled_lib "third_party/cros"
+ remove_bundled_lib "third_party/jemalloc"
+ remove_bundled_lib "third_party/lcov"
+ remove_bundled_lib "third_party/libevent"
+ remove_bundled_lib "third_party/libjpeg"
+ remove_bundled_lib "third_party/libpng"
+ remove_bundled_lib "third_party/lzma_sdk"
+ remove_bundled_lib "third_party/molokocacao"
+ remove_bundled_lib "third_party/ocmock"
+ remove_bundled_lib "third_party/py"
+ remove_bundled_lib "third_party/pyftpdlib"
+ remove_bundled_lib "third_party/simplejson"
+ remove_bundled_lib "third_party/tlslite"
+ # TODO: also remove third_party/libxml and third_party/libxslt when
+ # http://crbug.com/29333 is fixed.
+ # TODO: also remove third_party/zlib. For now the compilation fails if we
+ # remove it (minizip-related).
+}
+
+src_configure() {
+ local myconf=""
+
+ # Never tell the build system to "enable" SSE2, it has a few unexpected
+ # additions, bug #336871.
+ myconf+=" -Ddisable_sse2=1"
+
+ # Use system-provided libraries.
+ # TODO: use_system_ffmpeg (http://crbug.com/50678).
+ # TODO: use_system_libxml (http://crbug.com/29333).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+ # TODO: use_system_icu, use_system_hunspell (upstream changes needed).
+ # TODO: use_system_ssl when we have a recent enough system NSS.
+ myconf="${myconf}
+ -Duse_system_bzip2=1
+ -Duse_system_libevent=1
+ -Duse_system_libjpeg=1
+ -Duse_system_libpng=1
+ -Duse_system_zlib=1"
+
+ # The dependency on cups is optional, see bug #324105.
+ if use cups; then
+ myconf="${myconf} -Duse_cups=1"
+ else
+ myconf="${myconf} -Duse_cups=0"
+ fi
+
+ if use "gnome-keyring"; then
+ myconf="${myconf} -Dlinux_link_gnome_keyring=1"
+ else
+ # TODO: we should also disable code trying to dlopen
+ # gnome-keyring in that case.
+ myconf="${myconf} -Dlinux_link_gnome_keyring=0"
+ fi
+
+ # Enable sandbox.
+ myconf="${myconf}
+ -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox
+ -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome"
+
+ # Disable the V8 snapshot. It breaks the build on hardened (bug #301880),
+ # and the performance gain isn't worth it.
+ myconf="${myconf} -Dv8_use_snapshot=0"
+
+ # Disable tcmalloc memory allocator. It causes problems,
+ # for example bug #320419.
+ myconf="${myconf} -Dlinux_use_tcmalloc=0"
+
+ # Disable gpu rendering, it is incompatible with nvidia-drivers,
+ # bug #319331.
+ myconf="${myconf} -Denable_gpu=0"
+
+ # Use target arch detection logic from bug #296917.
+ local myarch="$ABI"
+ [[ $myarch = "" ]] && myarch="$ARCH"
+
+ if [[ $myarch = amd64 ]] ; then
+ myconf="${myconf} -Dtarget_arch=x64"
+ elif [[ $myarch = x86 ]] ; then
+ myconf="${myconf} -Dtarget_arch=ia32"
+ elif [[ $myarch = arm ]] ; then
+ # TODO: check this again after
+ # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
+ append-flags -fno-tree-sink
+
+ myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
+ else
+ die "Failed to determine target arch, got '$myarch'."
+ fi
+
+ if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
+ myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
+ fi
+
+ # Work around a likely GCC bug, see bug #331945.
+ if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then
+ append-flags -fno-ipa-cp
+ fi
+
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system.
+ # Depending on GCC version the warnings are different and we don't want
+ # the build to fail because of that.
+ myconf="${myconf} -Dwerror="
+
+ build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
+}
+
+src_compile() {
+ emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
+ rootdir="${S}" \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ || die "compilation failed"
+}
+
+src_install() {
+ dodir "$(get_chromium_home)"
+
+ exeinto "$(get_chromium_home)"
+ pax-mark m out/Release/chrome
+ doexe out/Release/chrome
+ doexe out/Release/chrome_sandbox
+ fperms 4755 "$(get_chromium_home)/chrome_sandbox"
+ doexe out/Release/xdg-settings
+ doexe "${FILESDIR}"/chromium-launcher.sh
+
+ insinto "$(get_chromium_home)"
+ doins out/Release/chrome.pak || die "installing chrome.pak failed"
+ doins out/Release/resources.pak || die "installing resources.pak failed"
+
+ doins -r out/Release/locales
+ doins -r out/Release/resources
+
+ # chrome.1 is for chromium --help
+ newman out/Release/chrome.1 chrome.1
+ newman out/Release/chrome.1 chromium.1
+
+ doexe out/Release/ffmpegsumo_nolink || die
+ doexe out/Release/libffmpegsumo.so || die
+
+ # Install icon and desktop entry.
+ newicon out/Release/product_logo_48.png ${PN}-browser.png
+ dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium
+ make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \
+ "MimeType=text/html;text/xml;application/xhtml+xml;"
+ sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \
+ || die "desktop file sed failed"
+
+ # Install GNOME default application entry (bug #303100).
+ dodir /usr/share/gnome-control-center/default-apps
+ insinto /usr/share/gnome-control-center/default-apps
+ doins "${FILESDIR}"/chromium.xml
+}