summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2013-11-20 21:34:57 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2013-11-20 21:34:57 +0000
commit41f7aba59495b9de5d0a14dda8410eddc931e104 (patch)
tree15dcb1da42bbc23ee4a01b83788cc893ae421ca3 /www-client
parentversion bump (diff)
downloadhistorical-41f7aba59495b9de5d0a14dda8410eddc931e104.tar.gz
historical-41f7aba59495b9de5d0a14dda8410eddc931e104.tar.bz2
historical-41f7aba59495b9de5d0a14dda8410eddc931e104.zip
Dev channel bump. Fix bug #491230 by Andrew Waters. Add aura USE flag.
Package-Manager: portage-2.2.1/cvs/Linux i686 Manifest-Sign-Key: 0x30427902
Diffstat (limited to 'www-client')
-rw-r--r--www-client/chromium/ChangeLog8
-rw-r--r--www-client/chromium/Manifest13
-rw-r--r--www-client/chromium/chromium-33.0.1711.3.ebuild609
-rw-r--r--www-client/chromium/metadata.xml4
4 files changed, 628 insertions, 6 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog
index 91ed0862efe3..f6ed8aeb5cc2 100644
--- a/www-client/chromium/ChangeLog
+++ b/www-client/chromium/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-client/chromium
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.988 2013/11/17 17:36:38 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.989 2013/11/20 21:34:47 phajdan.jr Exp $
+
+*chromium-33.0.1711.3 (20 Nov 2013)
+
+ 20 Nov 2013; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ +chromium-33.0.1711.3.ebuild, metadata.xml:
+ Dev channel bump. Fix bug #491230 by Andrew Waters. Add aura USE flag.
17 Nov 2013; Mike Gilbert <floppym@gentoo.org>
+files/chromium-build_ffmpeg-r0.patch, chromium-32.0.1700.14.ebuild,
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
index 5f4ab0aba6d5..b8a7ce699246 100644
--- a/www-client/chromium/Manifest
+++ b/www-client/chromium/Manifest
@@ -25,17 +25,20 @@ DIST chromium-32.0.1700.6-testdata.tar.xz 112081404 SHA256 edce045b0d46a1ec480d5
DIST chromium-32.0.1700.6.tar.xz 176963440 SHA256 cbd1bfc5bc1bc3f3f8d57828097bd7f4d2fdacb0658a140871af63bb705c0a2c SHA512 e6e0e1d60b44796d281bfd3210f4e363d5c80fb884cde7bd96375c2013a03dc3a5ce6087a41571320fe1c2c149232ca39980cf08e9f526698570a0cbaa6b66ea WHIRLPOOL 5045211ff518f13cdb2ff42b9f2e07ddcbb9885e9986e4e8b276ce75a7da414ffa94b502f764106ef0dd56f34a13b46bd84a32e8790dc9692712ef3f3dbec798
DIST chromium-33.0.1707.0-lite.tar.xz 154007504 SHA256 3dafd652ddc1c49f5d0594fe72502e8d5772b6065e53b100f2b2d126313f17f0 SHA512 b0b4e793e0752946543a09313d43f008ea43527f96d7527f8beaf2073227fcee2758ecc32d476017cf752aaabe8e653d7ebdb55a3ecd4458793e2d6c312ee3f4 WHIRLPOOL f1c647a07039e0a5bdf2b886348298ebbadaf7900c8bde2543677af0ffc617f3ff99cd10a98aa2fddba990bcfbaab372b70c16ef06f83bea3a153f1079291518
DIST chromium-33.0.1707.0-testdata.tar.xz 112156276 SHA256 f36782ffd0c56dcc00f316b8267471e40afa72a37be1fa306a7ee20f5b9b4485 SHA512 dffe4cd94a32de09774abfdb3d46da401446416f0846a3498043951ffb7cc7f7279b11be67d2f300c109f3f7337a5c61f2558b4639e9a19b78a54bd375629e83 WHIRLPOOL d6d404a91c7a5118a8f61fe29c9677655cb411b27df38a8b7d450160161adfc39fffb1ff0755b8d3347147d3e30016f9bad8a2857b908d4d176bb1e3e1bdedb1
+DIST chromium-33.0.1711.3-lite.tar.xz 154323924 SHA256 bf87201a4a1e5fa751137af379b81c10dbc8a99a0bc4a47138f6dcdaaccf8fa8 SHA512 78aa4ac3a183caa4f3530ed3771bf381ca59f80bd2e272f2c8b7afaec4d1b6f00ba0f5e07c5282ec773cc55b4b25df78e41c8371f0e1bbea55ab76a7cacf2dd7 WHIRLPOOL 5da3217a895aac4fc1eb0e3edac2dc0c33b177fd450f74d63959e47a48d43c4608d0afde69e86a6e144685b0ffb2ab943538c36c6db4a784c521caacf9bd2502
+DIST chromium-33.0.1711.3-testdata.tar.xz 112144684 SHA256 0f2403405ed53669c4f9af19883f392ee44e90cdcf048d4be8bcf6d08f32b1a0 SHA512 c801ff9ed47fbe1d63d4bc6361e806904e17335eea32164c937e31d6f5313153fc23455bc28dcf98cc519b93cf07fbbd8c746b99b77961b21c2df16f4347b93d WHIRLPOOL ae7120e8debc4aa9e7f3fc09af85840a520f674fb807351067b6bce6d5d4c92a20e479bbafadf037a49619ef2b2e339382e98a69add818e286917acf9f96bfc6
EBUILD chromium-31.0.1650.57.ebuild 17190 SHA256 b7c0d8f2a1777c61e17b19478687eeada111019542ebfa49fac6b586745304cd SHA512 93d559a47f41a5477e6f7997c085d7b7f37ccdb09472dc6c594e1b30d3eb7ffc66cb5c24f23449661cb8c955a77a0907f3b929a5e81c14f5457ca13373a2486c WHIRLPOOL 8fac2cbede89d2499a2826a7515b2844cc0726b878fc28fc503af60136cb111ddbc6682fc9bf54a2adfc1c6a38fee31434264326f537ecc044942cea94e73741
EBUILD chromium-32.0.1700.14.ebuild 18274 SHA256 d378995c718f4a7fc1d63d36d8c626e551700767d337f0286a6426fe66a13d6f SHA512 7db7451380e7a912251e711e8cabfc886381a604ba66fb3ae3481c412d4594f2d7913a93dd13afdcec9c887aa1ca9988fa6b68240c81c9f5f81d280dfcca941b WHIRLPOOL a2864f142599682c1ed67bcf1d82c40b7bd288451c4ae6ad7dca2918cf6397f2511c4dbd483b6e80e733dee870ccb18dded57559386584271082c56a94bbdd41
EBUILD chromium-32.0.1700.6.ebuild 17891 SHA256 85d0063e184f892121e29c9b146b4f68b388e465c662297a8415e30e0cc8ab35 SHA512 05f41f85fe667d8419d4b87488947d918beb5c86254f676c95c935d7966e54c31135ad4266f1cd3b11c3d64805f0e75b9dc1d1615998097b5d4f306897cfcddd WHIRLPOOL dc6d482246775534b6f4018b9ba511e97c1c789256d8bd3f26711f0049b0fd44996736c356f657817ccc677c6a21703ae8f3aad41f0e130a0329c8b244a2a209
EBUILD chromium-33.0.1707.0.ebuild 18306 SHA256 9ed9b87566184676750e6e84fa19edc32a2b7a2814ad38f4235a0286eeadd28a SHA512 e6c9586268162b3c9ef9eb2c9a5a9b4b2e14d2859703618ea354e1a3f144f5d8066c5aec9846225583b0be412e590a2b4eb62c793cbb210b1fddd94436c8bd9f WHIRLPOOL 3432e6f2522a98b282049f0fb00b52c4e3bdc60e22d8af930341dedd6db198bc997f035777078bfecc9e49cf8b216e3240409088047789e483da57f6e357a58c
-MISC ChangeLog 90113 SHA256 cc4c74de9bd511b16687d77a9226cf4677ffefe78503391041b1bd421829fd30 SHA512 c556e50cfeed32d675319366d30c8db3cae5a1f9d244488daa5ab69ddd574f0c9a7a900d9d8e6af0aecdfc35a1195acab3d92aaa5c32924444612eaed65b6947 WHIRLPOOL 48d950b3b8f7aea7896dae476c58a9338a42ef534f9046eaaaca2ed2439939c24be45543287812b956558ef36e54831715c6fac467d1468820708317c8908220
+EBUILD chromium-33.0.1711.3.ebuild 18281 SHA256 871e974f646ae081d1c9eab2e68c07a6e4ed2e9d3db1c5a908cfc51c5d7f53ca SHA512 0a36e19b7a4fd91f1504fe8403d7c0dbf168c83f960f32fcd57e0a4e427146d3924604292d4a5518d12ce29f0c7b865975ba6a330d201896e4309bb737646b36 WHIRLPOOL c591f39eaa40e5dd7120ade0f7b3d0931579e2324c93fd364313b84cb511e67c9b944dd90d197844b2d2431775a0207157d13f6afd6759b9076b2d70822aa33f
+MISC ChangeLog 90328 SHA256 63e2503a818a6235ab6bc17bd8d427852609b6a7c64bd160b76369e9b133ef09 SHA512 91ba968e2647d157e72e7c4b4a0b66ffd14e3ed6446eb4fef562e73e7f86878b8209e7f66a9eb1fd48a44ba7b25756e1fc2950248baa5664ada2bcfca52d509d WHIRLPOOL 6583900220cf2337306e35f69df491a0bea46631219d4cfa125c7e788f2b9db85bf55cc91a33251703db6a8b74952a2d984c884f8f02be8ac9042fe292c75fe0
MISC ChangeLog-2011 114031 SHA256 e2c2c75785c5eaf78b6efe01e357279cbb7be0c89d00b4053f475e963916fa54 SHA512 8e14759348333bdbd7c338080472789d7bbb1ece1ca5817bac6306bdcb33dda1e23bf3055cbb3b7bcee9362b6900bba1ace7ba73f353570a74d3ed761c9198cc WHIRLPOOL 810b6423c53f892a4b0964380b8190dec2a8783d560a9cb0baec93a77d879186201055382ca05975ae242e16728529ae85445db003fdd425355292d17817157b
-MISC metadata.xml 622 SHA256 0cc15c6cfce29d9372d650e883075630c844e262bb354a64c96d7e51580d25c9 SHA512 957d3b569ce2259d250681d91edf31d7dcea412d84c79017413866691d3b6fe27076f7d0d7c14f41421254438064d15c90d84940a3c6aa9c307c4db4277eadd1 WHIRLPOOL d621daeca803c0aa06b7abff6207a16cb9122c7ae6f7b02b57be88dd551ef4410fd20d592ea8ee7062bbef54ce09079dacd51e514febdebb16da24d8fb55f823
+MISC metadata.xml 786 SHA256 12e03b633076f7fdf1fb7b3a3a2c10c0a4210566511101d6df5e18d962680c6d SHA512 cc2fdf94c85a24d528d921890d1828341b173b5b2daba820b1ddcf973890ee950e2fe9e096d81106196e9ca761908141b0aac88330b68b536a8b39bf29c1c868 WHIRLPOOL 101c01d630f4460c1f23ea9e2334e9509839cc2c968af254f40489680dffd59942e21f6040fc4d127abc6cae82ece031bbbb3f08b325a8e8835f80c322c2948c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iF4EAREIAAYFAlKI/qgACgkQC77qH+pIQ6QyBgEAmm2oLgShzlyHbiayv6/HGKeq
-k9ogBgeMN0QqONVJCeMA/0VhaPor3hkKGh6Z9qAAoHwnuA8lAUN2yVArrqt3zg0Y
-=avzW
+iEYEAREIAAYFAlKNKwQACgkQuUQtlDBCeQKhNACeMTJqXDcPH+AoVPdQZ/xwmIVo
+8fcAoIe7QBB+CtrTC+G0tVgEQZh38LiV
+=OynM
-----END PGP SIGNATURE-----
diff --git a/www-client/chromium/chromium-33.0.1711.3.ebuild b/www-client/chromium/chromium-33.0.1711.3.ebuild
new file mode 100644
index 000000000000..e643a12bdabd
--- /dev/null
+++ b/www-client/chromium/chromium-33.0.1711.3.ebuild
@@ -0,0 +1,609 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-33.0.1711.3.ebuild,v 1.1 2013/11/20 21:34:47 phajdan.jr Exp $
+
+EAPI="5"
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
+ hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr
+ sv sw ta te th tr uk vi zh_CN zh_TW"
+
+inherit chromium eutils flag-o-matic multilib multiprocessing pax-utils \
+ portability python-any-r1 readme.gentoo toolchain-funcs versionator virtualx
+
+DESCRIPTION="Open-source version of Google Chrome web browser"
+HOMEPAGE="http://chromium.org/"
+SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.xz
+ test? ( https://commondatastorage.googleapis.com/chromium-browser-official/${P}-testdata.tar.xz )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="aura bindist cups gnome gnome-keyring kerberos neon pulseaudio selinux system-sqlite tcmalloc"
+
+# Native Client binaries are compiled with different set of flags, bug #452066.
+QA_FLAGS_IGNORED=".*\.nexe"
+
+# Native Client binaries may be stripped by the build system, which uses the
+# right tools for it, bug #469144 .
+QA_PRESTRIPPED=".*\.nexe"
+
+RDEPEND=">=app-accessibility/speech-dispatcher-0.8:=
+ app-arch/bzip2:=
+ app-arch/snappy:=
+ system-sqlite? ( dev-db/sqlite:3 )
+ cups? (
+ dev-libs/libgcrypt:=
+ >=net-print/cups-1.3.11:=
+ )
+ >=dev-libs/elfutils-0.149
+ dev-libs/expat:=
+ >=dev-libs/icu-49.1.1-r1:=
+ >=dev-libs/jsoncpp-0.5.0-r1:=
+ >=dev-libs/libevent-1.4.13:=
+ dev-libs/libxml2:=[icu]
+ dev-libs/libxslt:=
+ dev-libs/nspr:=
+ >=dev-libs/nss-3.14.3:=
+ >=dev-libs/protobuf-2.5.0:=
+ dev-libs/re2:=
+ gnome? ( >=gnome-base/gconf-2.24.0:= )
+ gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2:= )
+ >=media-libs/alsa-lib-1.0.19:=
+ media-libs/flac:=
+ media-libs/harfbuzz:=[icu(+)]
+ >=media-libs/libjpeg-turbo-1.2.0-r1:=
+ media-libs/libpng:0=
+ media-libs/opus:=
+ media-libs/speex:=
+ pulseaudio? ( media-sound/pulseaudio:= )
+ sys-apps/dbus:=
+ sys-apps/pciutils:=
+ >=sys-libs/libcap-2.22:=
+ sys-libs/zlib:=[minizip]
+ virtual/udev
+ x11-libs/gtk+:2=
+ >=x11-libs/libXi-1.6.0:=
+ x11-libs/libXinerama:=
+ x11-libs/libXScrnSaver:=
+ x11-libs/libXtst:=
+ kerberos? ( virtual/krb5 )
+ selinux? ( sec-policy/selinux-chromium )"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ !arm? (
+ dev-lang/yasm
+ )
+ dev-lang/perl
+ dev-perl/JSON
+ >=dev-python/jinja-2.7
+ dev-python/ply
+ dev-python/simplejson
+ >=dev-util/gperf-3.0.3
+ dev-util/ninja
+ sys-apps/hwids
+ >=sys-devel/bison-2.4.3
+ sys-devel/flex
+ virtual/pkgconfig
+ test? (
+ dev-libs/openssl:0
+ dev-python/pyftpdlib
+ )"
+RDEPEND+="
+ !=www-client/chromium-9999
+ x11-misc/xdg-utils
+ virtual/ttf-fonts"
+
+if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
+ EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
+fi
+
+DISABLE_AUTOFORMATTING="yes"
+DOC_CONTENTS="
+Some web pages may require additional fonts to display properly.
+Try installing some of the following packages if some characters
+are not displayed properly:
+- media-fonts/arphicfonts
+- media-fonts/bitstream-cyberbit
+- media-fonts/droid
+- media-fonts/ipamonafont
+- media-fonts/ja-ipafonts
+- media-fonts/takao-fonts
+- media-fonts/wqy-microhei
+- media-fonts/wqy-zenhei
+
+Depending on your desktop environment, you may need
+to install additional packages to get icons on the Downloads page.
+
+For KDE, the required package is kde-base/oxygen-icons.
+
+For other desktop environments, try one of the following:
+- x11-themes/gnome-icon-theme
+- x11-themes/tango-icon-theme
+"
+
+pkg_setup() {
+ if [[ "${SLOT}" == "0" ]]; then
+ CHROMIUM_SUFFIX=""
+ else
+ CHROMIUM_SUFFIX="-${SLOT}"
+ fi
+ CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
+
+ # Make sure the build system will use the right python, bug #344367.
+ python-any-r1_pkg_setup
+
+ chromium_suid_sandbox_check_kernel_config
+
+ if use bindist; then
+ elog "bindist enabled: H.264 video support will be disabled."
+ else
+ elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
+ fi
+}
+
+src_prepare() {
+ # if ! use arm; then
+ # mkdir -p out/Release/gen/sdk/toolchain || die
+ # # Do not preserve SELinux context, bug #460892 .
+ # cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \
+ # out/Release/gen/sdk/toolchain/linux_x86_newlib || die
+ # touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die
+ # fi
+
+ epatch "${FILESDIR}/${PN}-system-jinja-r2.patch"
+ epatch "${FILESDIR}/${PN}-build_ffmpeg-r0.patch"
+
+ epatch_user
+
+ # Remove most bundled libraries. Some are still needed.
+ build/linux/unbundle/remove_bundled_libraries.py \
+ 'base/third_party/dmg_fp' \
+ 'base/third_party/dynamic_annotations' \
+ 'base/third_party/icu' \
+ 'base/third_party/nspr' \
+ 'base/third_party/symbolize' \
+ 'base/third_party/valgrind' \
+ 'base/third_party/xdg_mime' \
+ 'base/third_party/xdg_user_dirs' \
+ 'breakpad/src/third_party/curl' \
+ 'chrome/third_party/mozilla_security_manager' \
+ 'crypto/third_party/nss' \
+ 'net/third_party/mozilla_security_manager' \
+ 'net/third_party/nss' \
+ 'third_party/WebKit' \
+ 'third_party/angle_dx11' \
+ 'third_party/cacheinvalidation' \
+ 'third_party/cld' \
+ 'third_party/cros_system_api' \
+ 'third_party/ffmpeg' \
+ 'third_party/flot' \
+ 'third_party/hunspell' \
+ 'third_party/iccjpeg' \
+ 'third_party/jstemplate' \
+ 'third_party/khronos' \
+ 'third_party/leveldatabase' \
+ 'third_party/libjingle' \
+ 'third_party/libphonenumber' \
+ 'third_party/libsrtp' \
+ 'third_party/libusb' \
+ 'third_party/libvpx' \
+ 'third_party/libwebp' \
+ 'third_party/libxml/chromium' \
+ 'third_party/libXNVCtrl' \
+ 'third_party/libyuv' \
+ 'third_party/lss' \
+ 'third_party/lzma_sdk' \
+ 'third_party/mesa' \
+ 'third_party/modp_b64' \
+ 'third_party/mt19937ar' \
+ 'third_party/npapi' \
+ 'third_party/ots' \
+ 'third_party/polymer' \
+ 'third_party/pywebsocket' \
+ 'third_party/qcms' \
+ 'third_party/sfntly' \
+ 'third_party/skia' \
+ 'third_party/smhasher' \
+ 'third_party/sqlite' \
+ 'third_party/tcmalloc' \
+ 'third_party/tlslite' \
+ 'third_party/trace-viewer' \
+ 'third_party/undoview' \
+ 'third_party/usrsctp' \
+ 'third_party/webdriver' \
+ 'third_party/webrtc' \
+ 'third_party/widevine' \
+ 'third_party/x86inc' \
+ 'third_party/zlib/google' \
+ 'url/third_party/mozilla' \
+ 'v8/src/third_party/valgrind' \
+ --do-remove || die
+}
+
+src_configure() {
+ local myconf=""
+
+ # Never tell the build system to "enable" SSE2, it has a few unexpected
+ # additions, bug #336871.
+ myconf+=" -Ddisable_sse2=1"
+
+ # Optional tcmalloc. Note it causes problems with e.g. NVIDIA
+ # drivers, bug #413637.
+ myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)"
+
+ # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
+ myconf+=" -Ddisable_nacl=1"
+
+ # Disable glibc Native Client toolchain, we don't need it (bug #417019).
+ # myconf+=" -Ddisable_glibc=1"
+
+ # TODO: also build with pnacl
+ # myconf+=" -Ddisable_pnacl=1"
+
+ # It would be awkward for us to tar the toolchain and get it untarred again
+ # during the build.
+ # myconf+=" -Ddisable_newlib_untar=1"
+
+ # Make it possible to remove third_party/adobe.
+ echo > "${T}/flapper_version.h" || die
+ myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
+
+ # Use system-provided libraries.
+ # TODO: use_system_hunspell (upstream changes needed).
+ # TODO: use_system_libsrtp (bug #459932).
+ # TODO: use_system_libusb (http://crbug.com/266149).
+ # TODO: use_system_libvpx (bug #487926).
+ # TODO: use_system_ssl (http://crbug.com/58087).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+ # TODO: use_system_libwebp (http://crbug.com/288019).
+ myconf+="
+ -Duse_system_bzip2=1
+ -Duse_system_flac=1
+ -Duse_system_harfbuzz=1
+ -Duse_system_icu=1
+ -Duse_system_jsoncpp=1
+ -Duse_system_libevent=1
+ -Duse_system_libjpeg=1
+ -Duse_system_libpng=1
+ -Duse_system_libxml=1
+ -Duse_system_libxslt=1
+ -Duse_system_minizip=1
+ -Duse_system_nspr=1
+ -Duse_system_openssl=1
+ -Duse_system_opus=1
+ -Duse_system_protobuf=1
+ -Duse_system_re2=1
+ -Duse_system_snappy=1
+ -Duse_system_speex=1
+ -Duse_system_xdg_utils=1
+ -Duse_system_zlib=1"
+
+ # TODO: patch gyp so that this arm conditional is not needed.
+ if ! use arm; then
+ myconf+="
+ -Duse_system_yasm=1"
+ fi
+
+ # Optional dependencies.
+ # TODO: linux_link_kerberos, bug #381289.
+ myconf+="
+ $(gyp_use aura)
+ $(gyp_use cups)
+ $(gyp_use gnome use_gconf)
+ $(gyp_use gnome-keyring use_gnome_keyring)
+ $(gyp_use gnome-keyring linux_link_gnome_keyring)
+ $(gyp_use kerberos)
+ $(gyp_use pulseaudio)"
+
+ if use system-sqlite; then
+ elog "Enabling system sqlite. WebSQL - http://www.w3.org/TR/webdatabase/"
+ elog "will not work. Please report sites broken by this"
+ elog "to https://bugs.gentoo.org"
+ myconf+="
+ -Duse_system_sqlite=1
+ -Denable_sql_database=0"
+ fi
+
+ # Use explicit library dependencies instead of dlopen.
+ # This makes breakages easier to detect by revdep-rebuild.
+ myconf+="
+ -Dlinux_link_gsettings=1
+ -Dlinux_link_libpci=1
+ -Dlinux_link_libspeechd=1
+ -Dlibspeechd_h_prefix=speech-dispatcher/"
+
+ # TODO: use the file at run time instead of effectively compiling it in.
+ myconf+="
+ -Dusb_ids_path=/usr/share/misc/usb.ids"
+
+ # Save space by removing DLOG and DCHECK messages (about 6% reduction).
+ myconf+="
+ -Dlogging_like_official_build=1"
+
+ # Never use bundled gold binary. Disable gold linker flags for now.
+ myconf+="
+ -Dlinux_use_gold_binary=0
+ -Dlinux_use_gold_flags=0"
+
+ # Always support proprietary codecs.
+ myconf+=" -Dproprietary_codecs=1"
+
+ if ! use bindist; then
+ # Enable H.264 support in bundled ffmpeg.
+ myconf+=" -Dffmpeg_branding=Chrome"
+ fi
+
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
+ # Note: these are for Gentoo use ONLY. For your own distribution,
+ # please get your own set of keys. Feel free to contact chromium@gentoo.org
+ # for more info.
+ myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+ -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
+ -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
+
+ local myarch="$(tc-arch)"
+ if [[ $myarch = amd64 ]] ; then
+ target_arch=x64
+ elif [[ $myarch = x86 ]] ; then
+ target_arch=ia32
+ elif [[ $myarch = arm ]] ; then
+ target_arch=arm
+ # TODO: re-enable NaCl (NativeClient).
+ local CTARGET=${CTARGET:-${CHOST}}
+ if [[ $(tc-is-softfloat) == "no" ]]; then
+
+ myconf+=" -Darm_float_abi=hard"
+ fi
+ filter-flags "-mfpu=*"
+ use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
+
+ if [[ ${CTARGET} == armv[78]* ]]; then
+ myconf+=" -Darmv7=1"
+ else
+ myconf+=" -Darmv7=0"
+ fi
+ myconf+=" -Dsysroot=
+ $(gyp_use neon arm_neon)
+ -Ddisable_nacl=1"
+ else
+ die "Failed to determine target arch, got '$myarch'."
+ fi
+
+ myconf+=" -Dtarget_arch=${target_arch}"
+
+ # 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+=" -Dwerror="
+
+ # Avoid CFLAGS problems, bug #352457, bug #390147.
+ if ! use custom-cflags; then
+ replace-flags "-Os" "-O2"
+ strip-flags
+
+ # Prevent linker from running out of address space, bug #471810 .
+ if use x86; then
+ filter-flags "-g*"
+ fi
+ fi
+
+ # Make sure the build system will use the right tools, bug #340795.
+ tc-export AR CC CXX RANLIB
+
+ # Tools for building programs to be executed on the build system, bug #410883.
+ export AR_host=$(tc-getBUILD_AR)
+ export CC_host=$(tc-getBUILD_CC)
+ export CXX_host=$(tc-getBUILD_CXX)
+ export LD_host=${CXX_host}
+
+ # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
+ einfo "Configuring bundled ffmpeg..."
+ pushd third_party/ffmpeg > /dev/null || die
+ chromium/scripts/build_ffmpeg.sh linux ${target_arch} "${PWD}" config-only || die
+ chromium/scripts/copy_config.sh || die
+ popd > /dev/null || die
+
+ einfo "Configuring Chromium..."
+ build/linux/unbundle/replace_gyp_files.py ${myconf} || die
+ egyp_chromium ${myconf} || die
+}
+
+src_compile() {
+ # TODO: add media_unittests after fixing compile (bug #462546).
+ local test_targets=""
+ for x in base cacheinvalidation content crypto \
+ gpu net printing sql; do
+ test_targets+=" ${x}_unittests"
+ done
+
+ local ninja_targets="chrome chrome_sandbox chromedriver"
+ if use test; then
+ ninja_targets+=" $test_targets"
+ fi
+
+ # Build mksnapshot and pax-mark it.
+ ninja -C out/Release -v -j $(makeopts_jobs) mksnapshot.${target_arch} || die
+ pax-mark m out/Release/mksnapshot.${target_arch}
+
+ # Even though ninja autodetects number of CPUs, we respect
+ # user's options, for debugging with -j 1 or any other reason.
+ ninja -C out/Release -v -j $(makeopts_jobs) ${ninja_targets} || die
+
+ pax-mark m out/Release/chrome
+ if use test; then
+ for x in $test_targets; do
+ pax-mark m out/Release/${x}
+ done
+ fi
+}
+
+src_test() {
+ # For more info see bug #350349.
+ local LC_ALL="en_US.utf8"
+
+ if ! locale -a | grep -q "${LC_ALL}"; then
+ eerror "${PN} requires ${LC_ALL} locale for tests"
+ eerror "Please read the following guides for more information:"
+ eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
+ eerror " http://www.gentoo.org/doc/en/utf-8.xml"
+ die "locale ${LC_ALL} is not supported"
+ fi
+
+ # If we have the right locale, export it to the environment
+ export LC_ALL
+
+ # For more info see bug #370957.
+ if [[ $UID -eq 0 ]]; then
+ die "Tests must be run as non-root. Please use FEATURES=userpriv."
+ fi
+
+ # virtualmake dies on failure, so we run our tests in a function
+ VIRTUALX_COMMAND="chromium_test" virtualmake
+}
+
+chromium_test() {
+ # Keep track of the cumulative exit status for all tests
+ local exitstatus=0
+
+ runtest() {
+ local cmd=$1
+ shift
+ local IFS=:
+ set -- "${cmd}" "--gtest_filter=-$*"
+ einfo "$@"
+ "$@"
+ local st=$?
+ (( st )) && eerror "${cmd} failed"
+ (( exitstatus |= st ))
+ }
+
+ runtest out/Release/base_unittests
+ runtest out/Release/cacheinvalidation_unittests
+
+ local excluded_content_unittests=(
+ "RendererDateTimePickerTest.*" # bug #465452
+ )
+ runtest out/Release/content_unittests "${excluded_content_unittests[@]}"
+
+ runtest out/Release/crypto_unittests
+ runtest out/Release/gpu_unittests
+
+ # TODO: add media_unittests after fixing compile (bug #462546).
+ # runtest out/Release/media_unittests
+
+ local excluded_net_unittests=(
+ "NetUtilTest.IDNToUnicode*" # bug 361885
+ "NetUtilTest.FormatUrl*" # see above
+ "SpdyFramerTests/SpdyFramerTest.CreatePushPromiseCompressed/2" # bug #478168
+ "HostResolverImplTest.FlushCacheOnIPAddressChange" # bug #481812
+ "HostResolverImplTest.ResolveFromCache" # see above
+ "ProxyResolverV8TracingTest.*" # see above
+ "SSLClientSocketTest.ConnectMismatched" # see above
+ "UDPSocketTest.*" # see above
+ "*EndToEndTest*" # see above
+ )
+ runtest out/Release/net_unittests "${excluded_net_unittests[@]}"
+
+ runtest out/Release/printing_unittests
+ runtest out/Release/sql_unittests
+
+ return ${exitstatus}
+}
+
+src_install() {
+ exeinto "${CHROMIUM_HOME}"
+ doexe out/Release/chrome || die
+
+ newexe out/Release/chrome_sandbox chrome-sandbox || die
+ fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
+
+ doexe out/Release/chromedriver || die
+
+ # if ! use arm; then
+ # doexe out/Release/nacl_helper{,_bootstrap} || die
+ # insinto "${CHROMIUM_HOME}"
+ # doins out/Release/nacl_irt_*.nexe || die
+ # doins out/Release/libppGoogleNaClPluginChrome.so || die
+ # fi
+
+ local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
+ if [[ -n ${CHROMIUM_SUFFIX} ]]; then
+ sedargs+=(
+ -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g"
+ -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g"
+ -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:"
+ )
+ fi
+ sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
+ doexe chromium-launcher.sh
+
+ # It is important that we name the target "chromium-browser",
+ # xdg-utils expect it; bug #355517.
+ dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
+ # keep the old symlink around for consistency
+ dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
+
+ # Allow users to override command-line options, bug #357629.
+ dodir /etc/chromium || die
+ insinto /etc/chromium
+ newins "${FILESDIR}/chromium.default" "default" || die
+
+ pushd out/Release/locales > /dev/null || die
+ chromium_remove_language_paks
+ popd
+
+ insinto "${CHROMIUM_HOME}"
+ doins out/Release/*.pak || die
+
+ doins -r out/Release/locales || die
+ doins -r out/Release/resources || die
+
+ newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
+ newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
+
+ doexe out/Release/libffmpegsumo.so || die
+
+ # Install icons and desktop entry.
+ local branding size
+ for size in 16 22 24 32 48 64 128 256 ; do
+ case ${size} in
+ 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
+ *) branding="chrome/app/theme/chromium" ;;
+ esac
+ newicon -s ${size} "${branding}/product_logo_${size}.png" \
+ chromium-browser${CHROMIUM_SUFFIX}.png
+ done
+
+ local mime_types="text/html;text/xml;application/xhtml+xml;"
+ mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
+ mime_types+="x-scheme-handler/ftp;" # bug #412185
+ mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
+ make_desktop_entry \
+ chromium-browser${CHROMIUM_SUFFIX} \
+ "Chromium${CHROMIUM_SUFFIX}" \
+ chromium-browser${CHROMIUM_SUFFIX} \
+ "Network;WebBrowser" \
+ "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
+ sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
+
+ # Install GNOME default application entry (bug #303100).
+ if use gnome; then
+ dodir /usr/share/gnome-control-center/default-apps || die
+ insinto /usr/share/gnome-control-center/default-apps
+ newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
+ if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
+ sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
+ "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
+ fi
+ fi
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+ readme.gentoo_print_elog
+}
diff --git a/www-client/chromium/metadata.xml b/www-client/chromium/metadata.xml
index d9635a505873..4e0666e82c49 100644
--- a/www-client/chromium/metadata.xml
+++ b/www-client/chromium/metadata.xml
@@ -4,6 +4,10 @@
<herd>chromium</herd>
<longdescription>Chromium is the open-source web browser project behind Google Chrome</longdescription>
<use>
+ <flag name="aura">
+ Enable Aura, new UI architecture that is GPU accelerated,
+ see http://www.chromium.org/developers/design-documents/aura .
+ </flag>
<flag name="bindist">Disable patent-encumbered HTML5 video codecs</flag>
<flag name="system-sqlite">
Use system sqlite instead of bundled sqlite. This breaks WebSQL on websites,