From 4530d5efe850588b77a2cae5b47f6fb21936170e Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Fri, 1 May 2015 14:59:41 +0000 Subject: [PATCH] Stable channel bump. Package-Manager: portage-2.2.18/cvs/Linux x86_64 Manifest-Sign-Key: 0x0BBEEA1FEA4843A4 --- www-client/chromium/ChangeLog | 7 +- www-client/chromium/Manifest | 20 +- .../chromium/chromium-42.0.2311.135.ebuild | 659 ++++++++++++++++++ 3 files changed, 671 insertions(+), 15 deletions(-) create mode 100644 www-client/chromium/chromium-42.0.2311.135.ebuild diff --git a/www-client/chromium/ChangeLog b/www-client/chromium/ChangeLog index 1d7c01fd5536..8b879ed136c8 100644 --- a/www-client/chromium/ChangeLog +++ b/www-client/chromium/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-client/chromium # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1230 2015/05/01 07:03:18 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1231 2015/05/01 14:59:15 floppym Exp $ + +*chromium-42.0.2311.135 (01 May 2015) + + 01 May 2015; Mike Gilbert +chromium-42.0.2311.135.ebuild: + Stable channel bump. *chromium-44.0.2383.0 (01 May 2015) diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest index 03642ca65a0f..053496e3a0d8 100644 --- a/www-client/chromium/Manifest +++ b/www-client/chromium/Manifest @@ -14,34 +14,26 @@ AUX chromium-system-libvpx-r0.patch 337 SHA256 26246a4a4d5b4d362c85433c9c4d1483a AUX chromium-widevine.patch 1461 SHA256 b352ea3512368fd77b6d342a043645a61204907c3c0c564b31ac7a7aeaa6e7a5 SHA512 da5948c28b0446879502eb0b1490bf06d1ffc8d93fe4bb769f50835b357af7691d474083262b5b5d89ee46ab295e9cab475a8e81833c45f9cfdcecf024f250c4 WHIRLPOOL df860509f7a845f13edf8794340ed5496ffc31662237d73a29404337a629309db6bc442ed4aca9a5844349878a60082f05670ac28cad487c78d7778aa413fbd2 AUX chromium.default 148 SHA256 bdac1d32025d53158f96c8ad5bd71a58abdcf02f3a8759a43154e97e812fcdd1 SHA512 0d4849e03592fb58b05e62a43021eca7e61615616c8907c3b2e445402e03adaf9e8fa25b0a745d6c31eb037456215cc02b59e345a3a06d932e76cf990c92d739 WHIRLPOOL 2e51e864134426668cc73fc5081c35288677d8ce855b07dfbd3413397f9c43148a6d6096a9b7a617511388f87623a3ce7f3387103202db53876a74bccb9dbe6c AUX dot-gclient 174 SHA256 0ae6d69323d1d286de7ef1fa62c330536ada7280bda7564fefb5d071384ed324 SHA512 ea858464ee8732536633259ed3d11990822e8b8493c07b83218856a127320ba21b9cfc184f7e7a899739bc5f938fbca25224e559fb7db8558cb86fccc743a685 WHIRLPOOL 72a5a9af7955e653151090b555c6a67a261ff807871fdda16d7c3fabf4b52449ac9caae466ba51a17d2efed74a68adc32687599ea4287cc033e75f787d874b55 +DIST chromium-42.0.2311.135.tar.xz 306488116 SHA256 c269d40e653794c219fd3eca2922d881199af5acff5d0a55b3e79f3b6a5a2aa9 SHA512 1205b34be45d7b2a0839366d8ae6ca95c8dd031dc2da08167b8ec7c044b6d5e1bad955ac60f891a586ade81ff87801d6c908ad8979c203321f8c5176f9583c93 WHIRLPOOL ed565e83b097575dfcdf61cc1f1f1f049b39187c212e6973fe3c3e28da9960f4774bedb0711d4ff9ae62a802083f096dd62a4cd0e8a0e06f3af3df7e4f10c899 DIST chromium-42.0.2311.90.tar.xz 306502344 SHA256 60b0eb38c1c3d0cc998dae70b7333e53b715cff2847c1652e03d1723300db4c9 SHA512 abfa97ad66b944609c7dc1fcb1d8944dd945968959f43cfc5d89ac542f126a1be62fc100c197af4d6ee565cd18388cd42c8c75505e53031e34bd7a2eee71b41b WHIRLPOOL b78c0e62a7690d08b8beaaa41ae89e72e2b7ce45762706e96165da87f632bf69292e7129f9a4c2b8d79abdc268b5e287e6dcedd4be22336c6e07922d539452da DIST chromium-43.0.2357.18.tar.xz 309041380 SHA256 0a9a32197cf590354030e4c2f7560a330528235cbae4247f5f704e0a9425c2c0 SHA512 140201e1a4baae03ccb92bacd31b337d5c86dfe5018c70da9e12a80dcab7953e4d913adf5e930e15d992869221090fb02d4d27fcaba5bc3a8b5a8303314e6ecb WHIRLPOOL 8b717d1b1cd8918befdfd48fd6f4918023145f4220a64c97cf5f9c0252b5a17725684a1451532fb400c948139634a3d4acee73b7d913d8670c144f554080c855 DIST chromium-43.0.2357.2.tar.xz 308940456 SHA256 8916597ecab1ec3ceca91281704a8091523930f82a6944c3ac7107fcee7578cb SHA512 cf829cc714eead990308c283fdf088a1666f2bae6dd8d3b6106d5d609d95316f6fd2c56d478f0b450298c03d84606e4b67199aacd9c5f97769794352e640aa57 WHIRLPOOL 0028e49e4d3e93d871485b9531c972d2d62dec9b655a38c7edc27c57332b3e014c34f29a51c619a7ce2a3988e0363a4d5c81212ba2d5fab40e121752a7fc5539 DIST chromium-44.0.2376.0.tar.xz 310751768 SHA256 8e1e0c839fac5b121afd65f1b079ea3a323e8cf3992106dcf2c928b222633f10 SHA512 e2f6769cb615991a164da63dc1186d77118f7e0df33b94835fc602acfa2103cc607e7f905d65b0a1b84b8002ea8fb05de29d7d439eb2db3571d4edc44dff0e6c WHIRLPOOL afd30cf1118260787e58facb375eff5327b57aa8c33c0a7477932bbba7cd4fbd26ab6acf721eb70673ad1fd6f684e811aa2e147be95ebe92be2766302b0cdb71 DIST chromium-44.0.2383.0.tar.xz 311401440 SHA256 76255c9f3e3f0e41a8827ed74918cfe838631a3809f4cf9c728f0dc7b8989eb7 SHA512 0c5f4baa7ff311436e62866eca4ffb9253b2dae1d69098036c1c6d6ae97c9b05401181f9202ff1922731e3e5dcdfa83de46f95191c65b6435fbdc300f93e6b50 WHIRLPOOL 307e2e5c37208e98d4bc2dd940ec10db520c1cd403aaf6d8616a795801a032657dedeb932abb371244f15ce7904697798060310bbc07dc2b013d2fbe9f8c011e +EBUILD chromium-42.0.2311.135.ebuild 20564 SHA256 a798bba99a2b81d3314bafdcbd06b514d5783256da92d64630d3bf36baf7e3f5 SHA512 190a513d9332fcaa6b9458d240c2eb5c0d454f0d9bd0c8da7d47d3ddc5126ad86d26719654fcdafe51447c3ca109d099f3ff2f40ed64302cb68bc2ac52d52dd3 WHIRLPOOL 278a7e356af1c2df285960e9f7d3879ddf7875b4a73b3a0b4cfbcdd76a9302fab99f82c1e6bd0fe5d84ed6bd269747a6d3144f197f0f0f9815e74e102c7fedf6 EBUILD chromium-42.0.2311.90.ebuild 20561 SHA256 1c383eb1bdb7d65fc2f6d06dc51c8472f9cbd1fa81f6f668b8ab6d753443438b SHA512 4b7daef3586ee1e8db092a02708a419b0f0e23b362a39000ae9daa5783a0cd2e9bb5726a5f0d4bb1057e2964a4b0b25328e691a7f2774dea1a6e66ca575d027d WHIRLPOOL f7475dfcc7d6b6e7e22c372e3c401f08b19e4849ba6a03dce40768ce71570d179b4d205669e9f69e331000b79b399203020305541bacc9fe48a028d0cef53be0 EBUILD chromium-43.0.2357.18.ebuild 20227 SHA256 551d8fd33258d4070c04ff9d4b0afce713abb535459d4ec980fef0c8f545e5f7 SHA512 4ea50abe9475ae721327533dd93f5ddb2042964bf9da1cb530f07f7d5a6625d941b2f61c7a0318af45c839fa0fe9327551dcaf8a4d0d85c2c92529c5dee441c3 WHIRLPOOL 49ceed48245fc0e03f6427463076a5f8ff0c8e7291190f28c2b74a0e6bea277b53c35fbee75a9c2cfa7e1f1d790afb614cb0d933c1c206b518f8a969f84b5e5a EBUILD chromium-43.0.2357.2.ebuild 20063 SHA256 d6142f4cb9c12debb787b6694ed70ceef9ddcaf3b5a9b3ef00ed29cdb802a62f SHA512 ddccac8823fd405a3a36fe532c692248f00f2ab380aec54d0b63436ad5f141a99f79d472e683180b953e12df83238afa93cab5cc07a375850c7bfab9ec56ea0d WHIRLPOOL a36054d8c120df82b44d27cba835ada0cb80fbbcadcd2e417496ccc91a815b30f5fde80d241f16fd7666e96498672f629aa75df3c40a4772fd2b89dcde7e042f EBUILD chromium-44.0.2376.0.ebuild 20403 SHA256 5d52ccbd6b17613119f92fb6a0b45ad09723821e6ddf59e9bd1628f34146666f SHA512 0d78338ca006583d968de882943e2d5203e7f99787ae0736b69d249e8e34a7ed75786903c46282a7e5bf9add89bb96bdb6321d8da319f69a42b6ba03e94d2d67 WHIRLPOOL 4a84ad4f4c2cd14bdcb5edab76903d01c230ff3770f4ad7c4ac1f5b366bf9f800793f24aacc649a8c90987dfa83a61fb30c0203662ee0c8302340232778f54ea EBUILD chromium-44.0.2383.0.ebuild 20352 SHA256 ed0565ec28a1e284b7081e8f5d8d753dd86b08e57886a1ebacb1e2c78dcaef10 SHA512 4b3de331a2a545fec14b2c97f3b1a0afea5723ff07f1acf9dfe0c6c023f3915baee135c4dda85f6cef9101759f4a4fbca7df4d9cab73137319f5ebf84168d3f9 WHIRLPOOL 19c87236479f828192d05a888ed3a53d62d7b4b15fd2b180e702caa66737ab93f0fece60f09af028da2833e155669abd1ea647471f1c71123088b1bafcad38f3 -MISC ChangeLog 10226 SHA256 00ad617484e92bfa623dd3847bda34afc4b0f914fd4d1abeb3533a8eb09e2322 SHA512 4acf5410942e990987fc1fe5942e79d7994f456fd9633a711231601a02d5dc92c1e7dcde832a32bf5d2ab4c9a166a31b7a89230528ce474ab1fad90ab708cf0e WHIRLPOOL 945ff12b643d4e2f25b3f5f9a3ef4d65f7b4ebed9694f8137dda359b5d22fe004b148f1120ae8f085031a7d03b3d4b291c6f32d6d8a0ed332a58646e5dbd5e09 +MISC ChangeLog 10367 SHA256 4b35c88f7e24070e32b9b38ee106e41fffa892ed192100de90068767bbe29bf3 SHA512 882bc7e036cd85a0445370f0a8f4e1aac99c05af926b49622b15b87b11cc5d4eb49500f359160bfc033eede625af4c8f59fa56434cc3f607e2ec213b772a6bd0 WHIRLPOOL 460dec094ef4476e7c1497a7331b386849e6e4da93fa403557c89970609a34f2ad16ae58f8c43db49384a202151656fcc2781df745cbc23e4d7381e3892992a5 MISC ChangeLog-2011 114031 SHA256 e2c2c75785c5eaf78b6efe01e357279cbb7be0c89d00b4053f475e963916fa54 SHA512 8e14759348333bdbd7c338080472789d7bbb1ece1ca5817bac6306bdcb33dda1e23bf3055cbb3b7bcee9362b6900bba1ace7ba73f353570a74d3ed761c9198cc WHIRLPOOL 810b6423c53f892a4b0964380b8190dec2a8783d560a9cb0baec93a77d879186201055382ca05975ae242e16728529ae85445db003fdd425355292d17817157b MISC ChangeLog-2014 123105 SHA256 f67108708d3d21b4acfca327aca42ceb4cc31201772dff496babfacb50acc4eb SHA512 bf6464e7e6ccdee81a4c26949176ebfb705f99e85a0120eea77f52b862fa3b8142abb006462f31e5a9053777836d4d9fdb69926d2b01b49463553740aecdbc43 WHIRLPOOL 114181b4c8e700a56bdf76b4de2e94998436b1b27df9182348ab88afd352085938686359369ffa4af929936e9ad88305efc97e22afd3b4c50b0dcf9669286fea MISC metadata.xml 794 SHA256 325b937cabfd7753347c3c911fb8be689b4a7b021430fca37a92c26e7af35433 SHA512 079c7985283d160b85a8dcd53fd54538ee83b9b36fb99327f03aeff16eb3c6dcbb399a01a381094a67be901d970f3c8fa649b2ac156522df3156db2853b6566f WHIRLPOOL c110adec0f1dcb170e4ba52523109d340543d37027f4c6c9f6e6998744c2720177f03a963e7cd162512459c193e5107f0764b8e3dccf7278b008e7cb8a715b8f -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJVQyU+AAoJEE8aJVXqcZkdPZUQAIPJKh3oQaCe2ACV76tFKgn8 -IzGHUyRBUFyVKkEtQnmUMupwt5DoR5Jmg8e11rQX1bf1Ys4eids6usCS6aZpAxL8 -DMcoCvEt6sT7S0u9ZVRnIoaawpShWPmaZy95D9hm6NIzkVogterALAw1PYJLviBY -e7CzBOV1Tx9HOznfVFgdKIzbv5QrIx5I5Z2Ixl6O4EkL0+phpsAcW3ot4MynCgLI -gx8uLMDV67v6d9nZnOBEu98WmhzUZvbDo61hkF6Q+QeDc88eOJy6wccRk+ZVk11Q -yiYXiWs4UDTifxKfqbd/P6igLkT6z6lVIVBg7VM1wgPThF0ZlbGajUa4pTqdmWwB -svrzZVuoS7wRE2cXaDpCQ9N0QpIBAdIhvTyzTFnyX1UYaVZO6q9Fz6v3Up+XIAXz -wC6dflDijTQBIRLLJPT/CpQHB47c5qwKCjkIoed5WVcPqT4GgmZWwaRblzih5YGh -YXHJoN3lOfHQ/3qMm2UV3CoR2v0CbwJ66q4BHFdwiB34+v0zqIf2o2IwEsCEnAI3 -LSb/opJrK+w+snWMLYSybVNcPvBXKC2iyisMUhS7Ild/prhfoPROdruF83+tcc6P -Po31oH5DEvC3iT3kPuf191zCuR/ugOpykncf5guoM10YXqvw1TfDvm2iax5l/0j7 -kHfDAtTnJIWV9XVPGnp1 -=NbRK +iF4EAREIAAYFAlVDlMQACgkQC77qH+pIQ6TrgwEAhJtIxNZmMDLjLNYnU6id4a7x +0gkrDqY7744VaAhU1GgA+wcg7oWo+IXyFhK0W0oA4Vxq6f0srK3BKb751YzfMx+n +=nKrX -----END PGP SIGNATURE----- diff --git a/www-client/chromium/chromium-42.0.2311.135.ebuild b/www-client/chromium/chromium-42.0.2311.135.ebuild new file mode 100644 index 000000000000..d496ba347ca8 --- /dev/null +++ b/www-client/chromium/chromium-42.0.2311.135.ebuild @@ -0,0 +1,659 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-42.0.2311.135.ebuild,v 1.1 2015/05/01 14:59:15 floppym Exp $ + +EAPI="5" +PYTHON_COMPAT=( python2_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 check-reqs 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}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="bindist cups gnome gnome-keyring hidpi kerberos neon pic pulseaudio selinux +tcmalloc widevine" +RESTRICT="!bindist? ( bindist )" + +# 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:= + app-crypt/libsecret:= + 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 )" +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 + widevine? ( www-plugins/chrome-binary-plugins[widevine] )" + # We build-dep on having widevine, because the patch + # below must extract the current version. + +# For nvidia-drivers blocker, see bug #413637 . +RDEPEND+=" + !=www-client/chromium-9999 + ! "${T}/${PN}-widevine-${WIDEVINE_VERSION}.patch" + epatch "${T}/${PN}-widevine-${WIDEVINE_VERSION}.patch" + local WIDEVINE_SUPPORTED_ARCHS="x64 ia32" + local arch + for arch in $WIDEVINE_SUPPORTED_ARCHS; do + mkdir -p third_party/widevine/cdm/linux/$arch + cp "${ROOT}/usr/$(get_libdir)/chromium-browser/libwidevinecdm.so" third_party/widevine/cdm/widevine_cdm_*.h third_party/widevine/cdm/linux/$arch/ || die "Could not copy headers for Widevine." + done + fi + + 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/analytics' \ + '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/google_input_tools' \ + 'third_party/google_input_tools/third_party/closure_library' \ + 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \ + '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/libudev' \ + 'third_party/libusb' \ + 'third_party/libvpx' \ + 'third_party/libvpx/source/libvpx/third_party/x86inc' \ + '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/mojo' \ + 'third_party/mt19937ar' \ + 'third_party/npapi' \ + 'third_party/openmax_dl' \ + 'third_party/opus' \ + 'third_party/ots' \ + 'third_party/pdfium' \ + 'third_party/pdfium/third_party/base' \ + 'third_party/pdfium/third_party/bigint' \ + 'third_party/pdfium/third_party/freetype' \ + '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/trace-viewer' \ + 'third_party/trace-viewer/third_party/components/polymer' \ + 'third_party/trace-viewer/third_party/d3' \ + 'third_party/trace-viewer/third_party/gl-matrix' \ + '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/undoview' \ + 'third_party/usrsctp' \ + 'third_party/web-animations-js' \ + '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 hidpi enable_hidpi) + $(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" + + if [[ $(tc-getCC) == *clang* ]]; then + myconf+=" -Dclang=1" + else + myconf+=" -Dclang=0" + fi + + # Never use bundled gold binary. Disable gold linker flags for now. + # Do not use bundled clang. + myconf+=" + -Dclang_use_chrome_plugins=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 + + # Prevent libvpx build failures. Bug 530248, 544702, 546984. + if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then + filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx2 + 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/*.bin || die + 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 + if use widevine; then + doexe out/Release/libwidevinecdmadapter.so || die + fi + + # 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 +} -- 2.26.2