summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Hajdan <phajdan.jr@gentoo.org>2014-10-17 06:58:09 +0000
committerPaweł Hajdan <phajdan.jr@gentoo.org>2014-10-17 06:58:09 +0000
commit338378e591a10700458609e036f3213fcdbf05e5 (patch)
treed75a99a7f9c32674104c4a55396d813badd62e91 /www-client
parentsci-chemistry/pymol: Version Bump (diff)
downloadhistorical-338378e591a10700458609e036f3213fcdbf05e5.tar.gz
historical-338378e591a10700458609e036f3213fcdbf05e5.tar.bz2
historical-338378e591a10700458609e036f3213fcdbf05e5.zip
Dev channel bump. Use bundled protobuf (bug #525560).
Package-Manager: portage-2.2.8-r2/cvs/Linux i686 Manifest-Sign-Key: 0x4F1A2555EA71991D!
Diffstat (limited to 'www-client')
-rw-r--r--www-client/chromium/ChangeLog8
-rw-r--r--www-client/chromium/Manifest30
-rw-r--r--www-client/chromium/chromium-40.0.2188.2.ebuild604
3 files changed, 627 insertions, 15 deletions
diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog
index 4e9cc41e3993..c6aa9cfbea0e 100644
--- a/www-client/chromium/ChangeLog
+++ b/www-client/chromium/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-client/chromium
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1148 2014/10/11 10:25:22 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1149 2014/10/17 06:57:35 phajdan.jr Exp $
+
+*chromium-40.0.2188.2 (17 Oct 2014)
+
+ 17 Oct 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org>
+ +chromium-40.0.2188.2.ebuild:
+ Dev channel bump. Use bundled protobuf (bug #525560).
*chromium-40.0.2182.3 (11 Oct 2014)
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
index be2c37ddfea6..ba29a3161a61 100644
--- a/www-client/chromium/Manifest
+++ b/www-client/chromium/Manifest
@@ -13,27 +13,29 @@ DIST chromium-38.0.2125.101.tar.xz 248192100 SHA256 d3303519ab471a3bc831e9b366e6
DIST chromium-39.0.2171.13-lite.tar.xz 194351104 SHA256 85811190f55cbfd4fa46bb5d32e114803c11a4db436f139c5982381cb53b8fb5 SHA512 cd50014e4c5a111afbbe77ab92b27934154380f8ddc56640a9cabc2218b0b43efe0f7a46a3a1c1c2824b5804db57bb1ded6b5fed0001b2d098153359076a6414 WHIRLPOOL 5f5f1ca4f631b0e419a4dd3917d0bbfd607b026787a6dc24b5e0b75401dc830c35e0d2999f7a1fcedac99e81f18fc04eadc624230574c15e2b1efe9c1e4d3229
DIST chromium-39.0.2171.19-lite.tar.xz 194357312 SHA256 a42b7dab132f1a06326d7374c309bfb13537034c17ab6879c9dfa0ec4f723164 SHA512 1987c518b8bae374c2d914b716cc96f0656958077ce489811058a126091ef128b4b73068c50055baa23db5792f17cb638523fe4213b152d57ddc170d908169d4 WHIRLPOOL 7fe0da6970b15c8fd4aca9389e0d2410651df5be6ecf3bee9224dd0f67797e31c710ca63792859fdb400c106bec32a3b88d9fcfa8322619a431eaa3f336daafd
DIST chromium-40.0.2182.3-lite.tar.xz 194671100 SHA256 444ec9cea19b89122ecc5676546994768a6745e0019f1eb26f07c0a2d26fcdf4 SHA512 bc037b3f71821e439a5ab76b75560e25d97afa1760db49cac44578e8e93f28d44a097b0a52eab7614a3327809eab0f2fb2c4a43ac7b5a4885e4b9998c6bfd78f WHIRLPOOL 4458fe76500e9d10f4009c5367417548815a59c27ccfe44d770e268576763b2016f6f5ffa4156183a30efbaf0373810f6dd61a0856e6595e4d66139f79083d76
+DIST chromium-40.0.2188.2-lite.tar.xz 194889236 SHA256 5aa50a7d67b41bb4f9127f519d7332c2f6e6cc7e40c61717d6c4b21d1745d957 SHA512 d6b2f5cdf8a346d75e300d38a01bdfd82cd961c06b89a67e8f66876fb1b7280c1f0b2c271059099e9385c05b6292a83f546ed7e84eeed514dd8a393f7879192d WHIRLPOOL 539c14806a6b5e6d5be069c69681adbc83fad3badf11106dabde22e1e61094a6c0cfac3a5c08fcf8c20c13f4d1bdaa65e4568ef8c9d18f249028d11003e4acec
EBUILD chromium-38.0.2125.101.ebuild 18324 SHA256 06fe5b63163de14d30704825d70516fc56bf423a4496ae18f648ec0c0ad6b8bf SHA512 b5bcc34f64636ffd60cd61961826754438856e8e9a5e5ba910efe70dfa1f273886a87aea861b3407760cbb31933e61e46279750dec90844060096b9b97efcc13 WHIRLPOOL 99524167874f2170a2f50867379b524870980d949ff9e517ec767d38bcbfa9bf84edb0ac48e2efed051d2766baa71b3017a44383b6a1a28bd09fe238e905ca59
EBUILD chromium-39.0.2171.13.ebuild 18446 SHA256 9f5a7ce3ce811d51d30fae4eb1673eb86e17d1665f1ecdc14e5abf2f89c82921 SHA512 77fab75fb6b6df8fb7aa9ffe7d046038d4414ed35bb82fdbe8beeffe1af605197b704a6b9f638d5ebfb4c869edc9f15b117fdee394052f48d95eb666e7d72ac5 WHIRLPOOL 525c97f95e3e60255a12162610f0e8d966da964ff98937a3fe242ca267e32e8cee0dfbdaf4d7256b915971d9a80546555f32db1b8d8f354f4e3b70f7ea729532
EBUILD chromium-39.0.2171.19.ebuild 18446 SHA256 2cd226bdf41734cb8b170853555b23652aa9b3fb8a7fbb574f0ccefbae54e5f1 SHA512 07b728457e1863338ac6346e7c7e19bd4694c66aab9189fede2daf567f7d5e8d6ba5815d09db2fb52c2af9ac9978fa09c14f3705ff1d3dce08b81e8eb1400ec1 WHIRLPOOL 3f6c6a8dab87248e56ef8c4018daefc365da901de89f2df29ad67a96e4deb67b15412b349b54022674e1572c83b606509e5bff97057368f330385498182089e2
EBUILD chromium-40.0.2182.3.ebuild 18535 SHA256 87ac7846da8af06be7fed28b8636c35159c6cb4744c63ea449c5d7e072ba746b SHA512 0f9e61cef1bc7b5451d1aebe720a49c32922a101ee1f2cc7c0bea06af6036ffac37fffdefbe10bf40752be8c8eee76161a36d1fa74c2607d617e2cbcc8153e6f WHIRLPOOL 38232dc8675f77b44440d5ad27732ef15d3453c229100c54a532e1811522509902142c80d09a376076aa64904da2444caa1eafb6b2162723fbeea9950914bb5e
-MISC ChangeLog 118653 SHA256 8deec16a6cc2ec4089dbd31d424607df7b76e815cabe4008638b9506c852b45b SHA512 de272894c07a149c59298cf14b01767a97ee04c8b061448613dee5d84a8def95fe4724dfd4c7d02b57a25c0a82cebfa02630dccb193c107e1751946bac2cf67c WHIRLPOOL 179202e0800f9ef82b5e612d9dc3da06b634d22d84a24aca4a6d15b56723c7a5c7271aa4944f2d5cd9bad29560fe4a4a4a66e1e49a42cf744b9ab962289fd20b
+EBUILD chromium-40.0.2188.2.ebuild 18581 SHA256 f7132e12dcbe770400a8775854bbaf574e4a28e3fa2bbe8f061d69ed9a3e7404 SHA512 77dc1b7a43cf1b9ca0e0665a8e6cc1d29d1e81126281981d746e41cd6153da245194ff90e902dfc1a8084bc623ce6b0b84fe301c90dbd20ebf2fd5405b0a339b WHIRLPOOL e55f603dc6ab0dc3411ea454d236344d9afcc42e7a949b39c854c79d8a3c80b105faddc2fec0168f9841718ca17ae66fab84f25de94f8a5b03dc45a0e64de77e
+MISC ChangeLog 118834 SHA256 fc359dfc0be3372b9af5944024654660f6a3c0aee3d32e427cb3b647b574f269 SHA512 5b8a84624e51d187384918f23e8b3c67332a19125186f7c2bd2f1089614150925afb45060f817d49b2dfd97dbb4559862c3dbae799a25dc7b85bf9f2026c671b WHIRLPOOL 5fb66860033f5700fa8f87cb70b6106e7cf40a5f148ae119220790fed67fcebcd6395e164d834a8e7e3cb89ef0d2f8b2ef7d25a74d3fd867351d81e22c468478
MISC ChangeLog-2011 114031 SHA256 e2c2c75785c5eaf78b6efe01e357279cbb7be0c89d00b4053f475e963916fa54 SHA512 8e14759348333bdbd7c338080472789d7bbb1ece1ca5817bac6306bdcb33dda1e23bf3055cbb3b7bcee9362b6900bba1ace7ba73f353570a74d3ed761c9198cc WHIRLPOOL 810b6423c53f892a4b0964380b8190dec2a8783d560a9cb0baec93a77d879186201055382ca05975ae242e16728529ae85445db003fdd425355292d17817157b
MISC metadata.xml 518 SHA256 821944f32fcf203b2573c164aeaa52fbc69e5f651d366cdda66901633461f5ef SHA512 01d29c4ce93a8a624fc8926e7e72e8bf124b91ae6fdbf6e7179e9d6ddd6db33d73acde62541777118da1c9d197c83d6c615c247d785e76a8ab560f915abd08d5 WHIRLPOOL f9b21a0d032d1f78b6aeb78f759b9f126b1b1cc118a5edd3a08eefcb2d7b51ff406abb95323fe05b4c04468aca68dddd3d39ce7edfb9b352abc1bc3890d7e1ab
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJUOQYOAAoJEE8aJVXqcZkdZaMP/jNbq99zBov4EgYhCYr3X9jR
-5L7ff7oz8zDkueX7QfrPLx5YgvCVOkDRtGQfPcrYlRE1fM/oE9GK5qZn0WTOFaKS
-eFzFQAwvoqwr4bZD47pSQChVP2QCK+VZ9HQcM1saOuH5Atncd9DRSsULAwTmUnhv
-4pzNGZLDKZy64R6Z6FScUHWG2VM7dd+Zs/dstee5KSHa5lGSOlzp5PrWQdQbnb9F
-A/ysS0UeCmAbaBSxD+qRf9fv7jKxQoSPbLs1uUnuYQIuNkse3SgiKyb6TLIboZ9R
-sT0YmKcq/wodHzQTItOzi6ZLXrSP0loAsTVbCMth2JEer8hJnuoBKjVCsKk/eqy/
-W6owDGjmuzdOzrwNO30rfqQelKmdBU13R9HlQldXI9egP1G7lV6mR1zUPL2hVZzy
-+I4cAeenfg6qv7A2Q1R8HIk8juYL+VIUr1GjTr6voLrjU8vzMB0rtYgWfDgKAwqp
-OcpEcKllcOKG0JxFsQl5kC3s9N6v1BEp0KqOzCih2ij6NEm2O9ZjnTqJRWfvSqU1
-M1leCdZsm4E5giVWCtBkdryKs7dr7rqZ5yVfVz4VINFAw2eJm3chFiMZOzZ24T7p
-fElAEy2odW5q5wLno2zqWt67Ymt9d6HtGhfPI8HWjReczyymfFH1fMrqMd2+vtwU
-C5ZdsLYSw2umctX42EK6
-=e4mq
+iQIcBAEBCAAGBQJUQL35AAoJEE8aJVXqcZkdsfoP/3igBh36VSukzq5CPMrkYZaK
+VAEFuVPQz2KQn5PII0UsIzDSSGFcI9w01Hm5zw7XeakSz65hFcR2emYaIm4Z2ZHI
+T16wkXbJE9JEcfQKvTrgWmWmbvXwulFFREwbKc0ikMMDEuuuO2LtywOnLqIxaKHm
+xfRsjElNB4xBemKryAdsesS+qHUgbZokC4X/OXz2Z4jv7nz6VK9j9J6wUm0gjEDY
+gyOwnwOVEiYZTPGwZbj0s6bNSqSmRuyJefoEK1AzM+D2Fry6or6u2LlKIgCt+Puu
+oZLbYZOAjzWcBgV72lY1/PaArVmQVEQhTQUvA887o2RsN9sO/gJwMrZai5Gkts3Q
+zfhZS5utpkLXfeFtlB/tq0Q5dKy40FHE5c4KdjdjoelnaH7A7Iuu0ajgq6GB0ls8
+8dnAuQSSYlo6OIayQzCCHg1yU4Cmt7BA5kP3WHUDamuLGygM+WQm+1UuE6RT77e6
+yGalGr1G+HCFTzzVBQ24MrgI5vAEJbm7V9nMKyFnaeNtVD4vosFzdgGdghzUw6hz
+tZxIXkgGupKW3bk3De0EmEsJn5id/VNrXDYEKPFeBub2OikTBvAMvbkwo1cbGq6f
+mQcfKOIBI8jk6hhF/jgYTq4RkFRBEFgFbf8gZav0JPqqTbzTpUhsPRoijAfB+xYY
+60kd78O3WX7r9u1CfH8L
+=3Rg8
-----END PGP SIGNATURE-----
diff --git a/www-client/chromium/chromium-40.0.2188.2.ebuild b/www-client/chromium/chromium-40.0.2188.2.ebuild
new file mode 100644
index 000000000000..5723b6be2b25
--- /dev/null
+++ b/www-client/chromium/chromium-40.0.2188.2.ebuild
@@ -0,0 +1,604 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-40.0.2188.2.ebuild,v 1.1 2014/10/17 06:57:35 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"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="bindist cups gnome gnome-keyring kerberos neon pic pulseaudio selinux +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:=
+ cups? (
+ dev-libs/libgcrypt:0=
+ >=net-print/cups-1.3.11:=
+ )
+ >=dev-libs/elfutils-0.149
+ dev-libs/expat:=
+ dev-libs/glib:=
+ dev-libs/icu:=
+ >=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/re2:=
+ gnome? ( >=gnome-base/gconf-2.24.0:= )
+ gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
+ >=media-libs/alsa-lib-1.0.19:=
+ media-libs/flac:=
+ media-libs/fontconfig:=
+ media-libs/freetype:=
+ media-libs/harfbuzz:=[icu(+)]
+ media-libs/libexif:=
+ >=media-libs/libjpeg-turbo-1.2.0-r1:=
+ media-libs/libpng:0=
+ >=media-libs/libwebp-0.4.0:=
+ 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/cairo:=
+ x11-libs/gdk-pixbuf:=
+ x11-libs/gtk+:2=
+ x11-libs/libdrm
+ x11-libs/libX11:=
+ x11-libs/libXcomposite:=
+ x11-libs/libXcursor:=
+ x11-libs/libXdamage:=
+ x11-libs/libXext:=
+ x11-libs/libXfixes:=
+ >=x11-libs/libXi-1.6.0:=
+ x11-libs/libXinerama:=
+ x11-libs/libXrandr:=
+ x11-libs/libXrender:=
+ x11-libs/libXScrnSaver:=
+ x11-libs/libXtst:=
+ x11-libs/pango:=
+ kerberos? ( virtual/krb5 )
+ selinux? ( sec-policy/selinux-chromium )"
+DEPEND="${RDEPEND}
+ !arm? (
+ dev-lang/yasm
+ )
+ dev-lang/perl
+ dev-perl/JSON
+ >=dev-util/gperf-3.0.3
+ dev-util/ninja
+ sys-apps/hwids[usb(+)]
+ >=sys-devel/bison-2.4.3
+ sys-devel/flex
+ virtual/pkgconfig"
+# For nvidia-drivers blocker, see bug #413637 .
+RDEPEND+="
+ !=www-client/chromium-9999
+ !<www-plugins/chrome-binary-plugins-37
+ x11-misc/xdg-utils
+ virtual/opengl
+ virtual/ttf-fonts
+ tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )"
+
+# Python dependencies. The DEPEND part needs to be kept in sync
+# with python_check_deps.
+DEPEND+=" $(python_gen_any_dep '
+ dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/ply[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+')"
+python_check_deps() {
+ has_version "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" && \
+ has_version "dev-python/jinja[${PYTHON_USEDEP}]" && \
+ has_version "dev-python/ply[${PYTHON_USEDEP}]" && \
+ has_version "dev-python/simplejson[${PYTHON_USEDEP}]"
+}
+
+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-r7.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/superfasthash' \
+ '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' \
+ 'courgette/third_party' \
+ 'crypto/third_party/nss' \
+ 'net/third_party/mozilla_security_manager' \
+ 'net/third_party/nss' \
+ 'third_party/WebKit' \
+ 'third_party/angle' \
+ 'third_party/angle/src/third_party/compiler' \
+ 'third_party/brotli' \
+ 'third_party/cacheinvalidation' \
+ 'third_party/cld_2' \
+ 'third_party/cros_system_api' \
+ 'third_party/cython/python_flags.py' \
+ 'third_party/dom_distiller_js' \
+ 'third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js' \
+ 'third_party/ffmpeg' \
+ 'third_party/fips181' \
+ 'third_party/flot' \
+ 'third_party/hunspell' \
+ 'third_party/iccjpeg' \
+ 'third_party/jstemplate' \
+ 'third_party/khronos' \
+ 'third_party/leveldatabase' \
+ 'third_party/libaddressinput' \
+ 'third_party/libjingle' \
+ 'third_party/libphonenumber' \
+ 'third_party/libsrtp' \
+ 'third_party/libusb' \
+ 'third_party/libvpx' \
+ 'third_party/libvpx/source/libvpx/third_party/x86inc' \
+ 'third_party/libwebm' \
+ '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/openmax_dl' \
+ 'third_party/opus' \
+ 'third_party/ots' \
+ 'third_party/pdfium' \
+ 'third_party/pdfium/third_party/logging.h' \
+ 'third_party/pdfium/third_party/macros.h' \
+ 'third_party/pdfium/third_party/numerics' \
+ 'third_party/pdfium/third_party/template_util.h' \
+ 'third_party/polymer' \
+ 'third_party/protobuf' \
+ 'third_party/qcms' \
+ 'third_party/readability' \
+ 'third_party/sfntly' \
+ 'third_party/skia' \
+ 'third_party/smhasher' \
+ 'third_party/sqlite' \
+ 'third_party/tcmalloc' \
+ 'third_party/tlslite' \
+ 'third_party/trace-viewer' \
+ 'third_party/trace-viewer/third_party/jszip' \
+ 'third_party/trace-viewer/third_party/tvcm' \
+ 'third_party/trace-viewer/third_party/tvcm/third_party/beautifulsoup/polymer_soup.py' \
+ 'third_party/trace-viewer/third_party/tvcm/third_party/d3' \
+ 'third_party/trace-viewer/third_party/tvcm/third_party/gl-matrix' \
+ 'third_party/trace-viewer/third_party/tvcm/third_party/polymer' \
+ '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/fdlibm' \
+ 'v8/src/third_party/kernel' \
+ '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"
+
+ # 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_libvpx (http://crbug.com/347823).
+ # TODO: use_system_libusb (http://crbug.com/266149).
+ # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
+ # TODO: use_system_protobuf (bug #525560).
+ # TODO: use_system_ssl (http://crbug.com/58087).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+ 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_libwebp=1
+ -Duse_system_libxml=1
+ -Duse_system_libxslt=1
+ -Duse_system_minizip=1
+ -Duse_system_nspr=1
+ -Duse_system_re2=1
+ -Duse_system_snappy=1
+ -Duse_system_speex=1
+ -Duse_system_xdg_utils=1
+ -Duse_system_zlib=1"
+
+ # Needed for system icu - we don't need additional data files.
+ myconf+=" -Dicu_use_data_file_flag=0"
+
+ # 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 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)
+ $(gyp_use tcmalloc use_allocator tcmalloc none)"
+
+ # 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.
+ # Do not use bundled clang.
+ myconf+="
+ -Dclang=0
+ -Dhost_clang=0
+ -Dlinux_use_bundled_binutils=0
+ -Dlinux_use_bundled_gold=0
+ -Dlinux_use_gold_flags=0"
+
+ # Always support proprietary codecs.
+ myconf+=" -Dproprietary_codecs=1"
+
+ ffmpeg_branding="Chromium"
+ if ! use bindist; then
+ # Enable H.264 support in bundled ffmpeg.
+ ffmpeg_branding="Chrome"
+ fi
+ myconf+=" -Dffmpeg_branding=${ffmpeg_branding}"
+
+ # 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
+ ffmpeg_target_arch=x64
+ elif [[ $myarch = x86 ]] ; then
+ target_arch=ia32
+ ffmpeg_target_arch=ia32
+ elif [[ $myarch = arm ]] ; then
+ target_arch=arm
+ ffmpeg_target_arch=$(usex neon arm-neon 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="
+
+ # Disable fatal linker warnings, bug 506268.
+ myconf+=" -Ddisable_fatal_linker_warnings=1"
+
+ # 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}
+
+ # Bug 491582.
+ export TMPDIR="${WORKDIR}/temp"
+ mkdir -m 755 "${TMPDIR}" || die
+
+ local build_ffmpeg_args=""
+ if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
+ build_ffmpeg_args+=" --disable-asm"
+ fi
+
+ # 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.py linux ${ffmpeg_target_arch} \
+ --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
+ chromium/scripts/copy_config.sh || die
+ chromium/scripts/generate_gyp.py || die
+ popd > /dev/null || die
+
+ third_party/libaddressinput/chromium/tools/update-strings.py || die
+
+ einfo "Configuring Chromium..."
+ build/linux/unbundle/replace_gyp_files.py ${myconf} || die
+ egyp_chromium ${myconf} || die
+}
+
+eninja() {
+ if [[ -z ${NINJAOPTS+set} ]]; then
+ local jobs=$(makeopts_jobs)
+ local loadavg=$(makeopts_loadavg)
+
+ if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
+ NINJAOPTS+=" -j ${jobs}"
+ fi
+ if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
+ NINJAOPTS+=" -l ${loadavg}"
+ fi
+ fi
+ set -- ninja -v ${NINJAOPTS} "$@"
+ echo "$@"
+ "$@"
+}
+
+src_compile() {
+ local ninja_targets="chrome chrome_sandbox chromedriver"
+
+ # Build mksnapshot and pax-mark it.
+ eninja -C out/Release mksnapshot || die
+ pax-mark m out/Release/mksnapshot
+
+ # Even though ninja autodetects number of CPUs, we respect
+ # user's options, for debugging with -j 1 or any other reason.
+ eninja -C out/Release ${ninja_targets} || die
+
+ pax-mark m out/Release/chrome
+}
+
+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
+
+ dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${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
+ doexe out/Release/libpdf.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
+}