Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/
Date: Mon, 10 Sep 2018 16:06:32
Message-Id: 1536595579.2fb65d41ffb0c98e67cd1db4da2f983531eb9f80.floppym@gentoo
1 commit: 2fb65d41ffb0c98e67cd1db4da2f983531eb9f80
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 10 16:05:53 2018 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 16:06:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fb65d41
7
8 www-client/chromium: stable channel bump (69.0.3497.81)
9
10 Package-Manager: Portage-2.3.49_p2, Repoman-2.3.10_p48
11
12 www-client/chromium/Manifest | 3 +-
13 www-client/chromium/chromium-69.0.3497.42.ebuild | 683 ---------------------
14 ...3497.57.ebuild => chromium-69.0.3497.81.ebuild} | 0
15 3 files changed, 1 insertion(+), 685 deletions(-)
16
17 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
18 index cba20b1b74b..68317ad3026 100644
19 --- a/www-client/chromium/Manifest
20 +++ b/www-client/chromium/Manifest
21 @@ -1,6 +1,5 @@
22 DIST chromium-68.0.3440.106.tar.xz 630289544 BLAKE2B 9278244aed5a01dac5ccb670951fdfe1f9445224b5ad13d05a0cb086aabf639d4ab08250a93cedaae0be2c4fbab34e96c4862d0155125a90e42a2ac0880c40b1 SHA512 ab94f89e614919932d4d960bac8e5450c4d3f26dea4892e6591762bfaeeb4707a090352d4a952bcb55e34fde4950db22a36004788efd26ffb22b28770e9795c4
23 DIST chromium-68.0.3440.75.tar.xz 630277224 BLAKE2B 87c152c14333007223f611acb56360b553c5a4a97026f9cf4ca37d90aa501aabe5e294c3bacbd537c7602fc5dcb010a493c8d64b2881681ddfaad66cd58a3c56 SHA512 99ab36c9a9c224469f3a34f0193b0b4662b626ac29d23711716117cc6fa437717c2c3357f8a95adf9085b94a262c8b4c46727f88bf50bb231bb85af956afbedb
24 -DIST chromium-69.0.3497.42.tar.xz 618772608 BLAKE2B 51ed3327cc190316ff551d2a3006b535b773b2e000fa4a5ee1d155b0fbc35b542114ae2f7cba1d2cbb3a7092e981f28975e94557a8bec2ca44b541ca9c64cba4 SHA512 fb410149b6a55f0d80c9a64fcb7e7b65b17abfcfc0c942d58fa2c6bd89f3726decc953da260e8c83020ac8f795d08327ec154337b2488b959c5845947b94e958
25 -DIST chromium-69.0.3497.57.tar.xz 617355768 BLAKE2B d692aa88a63e7484fb8fb455cb07ffe0de66ea41c1a118045c02345d0c4abc27e6560e776efa61efa1ba61342b579aa5b8cc82c42ae712c7eb5f09f47b52e53a SHA512 de6a9c0886fdefb2650b860de7e85983316c065fcfba4019ffb331b6a13c213d8c5438c628b4bdb4417fcbddc4a9af84693a41004e3a1b2f1d2cd996f95db545
26 +DIST chromium-69.0.3497.81.tar.xz 617333008 BLAKE2B c93f04c31a05a7ca29225157f434b27646529aac5e273f8c0e983dde8ebbcb8f32a94bbe6edf7d936f6e989869f49cbea4249a6e7ff7a497f382b0c8ca6d01b1 SHA512 99d3e3212496b3e42133719c6026aec71bd3cd90c7ff689cce509021e038a91986c14d094e6e71ba94600d0c27548b8b33b7084c75d4c2bb8d846b81a4c2562b
27 DIST chromium-70.0.3510.0.tar.xz 620983276 BLAKE2B e2bb05e3e8aefa23ebda5559515d41e41a7c383acf5c4150adfa22ba107096f51603ff5d6bbbd20e9f2e8d549cf832b3a7e194d584c44c289835d9a54e8563bc SHA512 2954737aa229fe8572ef9cf2cc998f5be6bec1745c027fda56278ff9525e9a24eddc6ff48c2f2e07d3eb0607aaf35a5371f3568d218250f95a152a5148b29149
28 DIST chromium-70.0.3521.2.tar.xz 623774860 BLAKE2B 0476078b44561245b409ff4697ea84f093599f2a9fa089003a0de0e135633eff172807ff065d34b637046db9c2741504626f72dbbd46798233a048c219205f6c SHA512 0bcd3706fa86626b8f03f99b141f70b631797412bf67b455cb24a296a6436802acefe5a040553c65984529e4efd7990c659622aeb64b6a1ae1982014d66d4827
29
30 diff --git a/www-client/chromium/chromium-69.0.3497.42.ebuild b/www-client/chromium/chromium-69.0.3497.42.ebuild
31 deleted file mode 100644
32 index c3d05bb2729..00000000000
33 --- a/www-client/chromium/chromium-69.0.3497.42.ebuild
34 +++ /dev/null
35 @@ -1,683 +0,0 @@
36 -# Copyright 1999-2018 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI="6"
40 -PYTHON_COMPAT=( python2_7 )
41 -
42 -CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
43 - 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
44 - sv sw ta te th tr uk vi zh-CN zh-TW"
45 -
46 -inherit check-reqs chromium-2 eutils gnome2-utils flag-o-matic multilib ninja-utils pax-utils portability python-any-r1 readme.gentoo-r1 toolchain-funcs xdg-utils
47 -
48 -DESCRIPTION="Open-source version of Google Chrome web browser"
49 -HOMEPAGE="http://chromium.org/"
50 -SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz"
51 -
52 -LICENSE="BSD"
53 -SLOT="0"
54 -KEYWORDS="~amd64 ~x86"
55 -IUSE="component-build cups gnome-keyring +hangouts jumbo-build kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine"
56 -RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
57 -
58 -COMMON_DEPEND="
59 - app-accessibility/at-spi2-atk:2
60 - app-arch/bzip2:=
61 - cups? ( >=net-print/cups-1.3.11:= )
62 - dev-libs/atk
63 - dev-libs/expat:=
64 - dev-libs/glib:2
65 - system-icu? ( >=dev-libs/icu-59:= )
66 - >=dev-libs/libxml2-2.9.4-r3:=[icu]
67 - dev-libs/libxslt:=
68 - dev-libs/nspr:=
69 - >=dev-libs/nss-3.26:=
70 - >=dev-libs/re2-0.2016.05.01:=
71 - gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
72 - >=media-libs/alsa-lib-1.0.19:=
73 - media-libs/fontconfig:=
74 - media-libs/freetype:=
75 - >=media-libs/harfbuzz-1.6.0:=[icu(-)]
76 - media-libs/libjpeg-turbo:=
77 - media-libs/libpng:=
78 - system-libvpx? ( media-libs/libvpx:=[postproc,svc] )
79 - >=media-libs/openh264-1.6.0:=
80 - pulseaudio? ( media-sound/pulseaudio:= )
81 - system-ffmpeg? (
82 - >=media-video/ffmpeg-4:=
83 - || (
84 - media-video/ffmpeg[-samba]
85 - >=net-fs/samba-4.5.10-r1[-debug(-)]
86 - )
87 - !=net-fs/samba-4.5.12-r0
88 - media-libs/opus:=
89 - )
90 - sys-apps/dbus:=
91 - sys-apps/pciutils:=
92 - virtual/udev
93 - x11-libs/cairo:=
94 - x11-libs/gdk-pixbuf:2
95 - x11-libs/gtk+:3[X]
96 - x11-libs/libX11:=
97 - x11-libs/libXcomposite:=
98 - x11-libs/libXcursor:=
99 - x11-libs/libXdamage:=
100 - x11-libs/libXext:=
101 - x11-libs/libXfixes:=
102 - >=x11-libs/libXi-1.6.0:=
103 - x11-libs/libXrandr:=
104 - x11-libs/libXrender:=
105 - x11-libs/libXScrnSaver:=
106 - x11-libs/libXtst:=
107 - x11-libs/pango:=
108 - app-arch/snappy:=
109 - media-libs/flac:=
110 - >=media-libs/libwebp-0.4.0:=
111 - sys-libs/zlib:=[minizip]
112 - kerberos? ( virtual/krb5 )
113 -"
114 -# For nvidia-drivers blocker, see bug #413637 .
115 -RDEPEND="${COMMON_DEPEND}
116 - !<www-plugins/chrome-binary-plugins-57
117 - dev-util/gn
118 - x11-misc/xdg-utils
119 - virtual/opengl
120 - virtual/ttf-fonts
121 - selinux? ( sec-policy/selinux-chromium )
122 - tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )
123 - widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] )
124 -"
125 -# dev-vcs/git - https://bugs.gentoo.org/593476
126 -# sys-apps/sandbox - https://crbug.com/586444
127 -DEPEND="${COMMON_DEPEND}
128 - >=app-arch/gzip-1.7
129 - !arm? (
130 - dev-lang/yasm
131 - )
132 - dev-lang/perl
133 - >=dev-util/gperf-3.0.3
134 - >=dev-util/ninja-1.7.2
135 - >=net-libs/nodejs-6.9.4
136 - sys-apps/hwids[usb(+)]
137 - >=sys-devel/bison-2.4.3
138 - sys-devel/flex
139 - >=sys-devel/clang-5
140 - virtual/pkgconfig
141 - dev-vcs/git
142 -"
143 -
144 -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
145 - EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
146 -fi
147 -
148 -DISABLE_AUTOFORMATTING="yes"
149 -DOC_CONTENTS="
150 -Some web pages may require additional fonts to display properly.
151 -Try installing some of the following packages if some characters
152 -are not displayed properly:
153 -- media-fonts/arphicfonts
154 -- media-fonts/droid
155 -- media-fonts/ipamonafont
156 -- media-fonts/noto
157 -- media-fonts/ja-ipafonts
158 -- media-fonts/takao-fonts
159 -- media-fonts/wqy-microhei
160 -- media-fonts/wqy-zenhei
161 -
162 -To fix broken icons on the Downloads page, you should install an icon
163 -theme that covers the appropriate MIME types, and configure this as your
164 -GTK+ icon theme.
165 -"
166 -
167 -PATCHES=(
168 - "${FILESDIR}/chromium-compiler-r4.patch"
169 - "${FILESDIR}/chromium-widevine-r2.patch"
170 - "${FILESDIR}/chromium-webrtc-r0.patch"
171 - "${FILESDIR}/chromium-memcpy-r0.patch"
172 - "${FILESDIR}/chromium-math.h-r0.patch"
173 - "${FILESDIR}/chromium-stdint.patch"
174 - "${FILESDIR}/chromium-ffmpeg-ebp-r1.patch"
175 -)
176 -
177 -pre_build_checks() {
178 - #if [[ ${MERGE_TYPE} != binary ]]; then
179 - # local -x CPP="$(tc-getCXX) -E"
180 - # if tc-is-clang && ! version_is_at_least "3.9.1" "$(clang-fullversion)"; then
181 - # # bugs: #601654
182 - # die "At least clang 3.9.1 is required"
183 - # fi
184 - # if tc-is-gcc && ! version_is_at_least 5.0 "$(gcc-version)"; then
185 - # # bugs: #535730, #525374, #518668, #600288, #627356
186 - # die "At least gcc 5.0 is required"
187 - # fi
188 - #fi
189 -
190 - # Check build requirements, bug #541816 and bug #471810 .
191 - CHECKREQS_MEMORY="3G"
192 - CHECKREQS_DISK_BUILD="5G"
193 - eshopts_push -s extglob
194 - if is-flagq '-g?(gdb)?([1-9])'; then
195 - CHECKREQS_DISK_BUILD="25G"
196 - if ! use component-build; then
197 - CHECKREQS_MEMORY="16G"
198 - fi
199 - fi
200 - eshopts_pop
201 - check-reqs_pkg_setup
202 -}
203 -
204 -pkg_pretend() {
205 - pre_build_checks
206 -}
207 -
208 -pkg_setup() {
209 - pre_build_checks
210 -
211 - chromium_suid_sandbox_check_kernel_config
212 -}
213 -
214 -src_prepare() {
215 - # Calling this here supports resumption via FEATURES=keepwork
216 - python_setup
217 -
218 - default
219 -
220 - mkdir -p third_party/node/linux/node-linux-x64/bin || die
221 - ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die
222 -
223 - local keeplibs=(
224 - base/third_party/dmg_fp
225 - base/third_party/dynamic_annotations
226 - base/third_party/icu
227 - base/third_party/nspr
228 - base/third_party/superfasthash
229 - base/third_party/symbolize
230 - base/third_party/valgrind
231 - base/third_party/xdg_mime
232 - base/third_party/xdg_user_dirs
233 - buildtools/third_party/libc++
234 - buildtools/third_party/libc++abi
235 - chrome/third_party/mozilla_security_manager
236 - courgette/third_party
237 - net/third_party/http2
238 - net/third_party/mozilla_security_manager
239 - net/third_party/nss
240 - net/third_party/quic
241 - net/third_party/spdy
242 - third_party/WebKit
243 - third_party/abseil-cpp
244 - third_party/analytics
245 - third_party/angle
246 - third_party/angle/src/common/third_party/base
247 - third_party/angle/src/common/third_party/smhasher
248 - third_party/angle/src/third_party/compiler
249 - third_party/angle/src/third_party/libXNVCtrl
250 - third_party/angle/src/third_party/trace_event
251 - third_party/angle/third_party/glslang
252 - third_party/angle/third_party/spirv-headers
253 - third_party/angle/third_party/spirv-tools
254 - third_party/angle/third_party/vulkan-headers
255 - third_party/angle/third_party/vulkan-loader
256 - third_party/angle/third_party/vulkan-tools
257 - third_party/angle/third_party/vulkan-validation-layers
258 - third_party/apple_apsl
259 - third_party/blink
260 - third_party/boringssl
261 - third_party/boringssl/src/third_party/fiat
262 - third_party/breakpad
263 - third_party/breakpad/breakpad/src/third_party/curl
264 - third_party/brotli
265 - third_party/cacheinvalidation
266 - third_party/catapult
267 - third_party/catapult/common/py_vulcanize/third_party/rcssmin
268 - third_party/catapult/common/py_vulcanize/third_party/rjsmin
269 - third_party/catapult/third_party/beautifulsoup4
270 - third_party/catapult/third_party/html5lib-python
271 - third_party/catapult/third_party/polymer
272 - third_party/catapult/third_party/six
273 - third_party/catapult/tracing/third_party/d3
274 - third_party/catapult/tracing/third_party/gl-matrix
275 - third_party/catapult/tracing/third_party/jszip
276 - third_party/catapult/tracing/third_party/mannwhitneyu
277 - third_party/catapult/tracing/third_party/oboe
278 - third_party/catapult/tracing/third_party/pako
279 - third_party/ced
280 - third_party/cld_3
281 - third_party/crashpad
282 - third_party/crashpad/crashpad/third_party/zlib
283 - third_party/crc32c
284 - third_party/cros_system_api
285 - third_party/devscripts
286 - third_party/dom_distiller_js
287 - third_party/fips181
288 - third_party/flatbuffers
289 - third_party/flot
290 - third_party/freetype
291 - third_party/glslang-angle
292 - third_party/google_input_tools
293 - third_party/google_input_tools/third_party/closure_library
294 - third_party/google_input_tools/third_party/closure_library/third_party/closure
295 - third_party/googletest
296 - third_party/hunspell
297 - third_party/iccjpeg
298 - third_party/inspector_protocol
299 - third_party/jinja2
300 - third_party/jstemplate
301 - third_party/khronos
302 - third_party/leveldatabase
303 - third_party/libXNVCtrl
304 - third_party/libaddressinput
305 - third_party/libaom
306 - third_party/libaom/source/libaom/third_party/vector
307 - third_party/libaom/source/libaom/third_party/x86inc
308 - third_party/libjingle
309 - third_party/libphonenumber
310 - third_party/libsecret
311 - third_party/libsrtp
312 - third_party/libsync
313 - third_party/libudev
314 - third_party/libwebm
315 - third_party/libxml/chromium
316 - third_party/libyuv
317 - third_party/llvm
318 - third_party/lss
319 - third_party/lzma_sdk
320 - third_party/markupsafe
321 - third_party/mesa
322 - third_party/metrics_proto
323 - third_party/modp_b64
324 - third_party/node
325 - third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2
326 - third_party/openmax_dl
327 - third_party/ots
328 - third_party/pdfium
329 - third_party/pdfium/third_party/agg23
330 - third_party/pdfium/third_party/base
331 - third_party/pdfium/third_party/bigint
332 - third_party/pdfium/third_party/freetype
333 - third_party/pdfium/third_party/lcms
334 - third_party/pdfium/third_party/libopenjpeg20
335 - third_party/pdfium/third_party/libpng16
336 - third_party/pdfium/third_party/libtiff
337 - third_party/pdfium/third_party/skia_shared
338 - third_party/perfetto
339 - third_party/ply
340 - third_party/polymer
341 - third_party/protobuf
342 - third_party/protobuf/third_party/six
343 - third_party/pyjson5
344 - third_party/qcms
345 - third_party/rnnoise
346 - third_party/s2cellid
347 - third_party/sfntly
348 - third_party/simplejson
349 - third_party/skia
350 - third_party/skia/third_party/gif
351 - third_party/skia/third_party/skcms
352 - third_party/skia/third_party/vulkan
353 - third_party/smhasher
354 - third_party/spirv-headers
355 - third_party/spirv-tools-angle
356 - third_party/sqlite
357 - third_party/swiftshader
358 - third_party/swiftshader/third_party/llvm-subzero
359 - third_party/swiftshader/third_party/subzero
360 - third_party/unrar
361 - third_party/usrsctp
362 - third_party/vulkan
363 - third_party/vulkan-validation-layers
364 - third_party/web-animations-js
365 - third_party/webdriver
366 - third_party/webrtc
367 - third_party/widevine
368 - third_party/woff2
369 - third_party/zlib/google
370 - url/third_party/mozilla
371 - v8/src/third_party/valgrind
372 - v8/src/third_party/utf8-decoder
373 - v8/third_party/antlr4
374 - v8/third_party/inspector_protocol
375 -
376 - # gyp -> gn leftovers
377 - base/third_party/libevent
378 - third_party/adobe
379 - third_party/speech-dispatcher
380 - third_party/usb_ids
381 - third_party/xdg-utils
382 - third_party/yasm/run_yasm.py
383 - )
384 - if ! use system-ffmpeg; then
385 - keeplibs+=( third_party/ffmpeg third_party/opus )
386 - fi
387 - if ! use system-icu; then
388 - keeplibs+=( third_party/icu )
389 - fi
390 - if ! use system-libvpx; then
391 - keeplibs+=( third_party/libvpx )
392 - keeplibs+=( third_party/libvpx/source/libvpx/third_party/x86inc )
393 - fi
394 - if use tcmalloc; then
395 - keeplibs+=( third_party/tcmalloc )
396 - fi
397 -
398 - # Remove most bundled libraries. Some are still needed.
399 - build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die
400 -}
401 -
402 -src_configure() {
403 - # Calling this here supports resumption via FEATURES=keepwork
404 - python_setup
405 -
406 - local myconf_gn=""
407 -
408 - # Make sure the build system will use the right tools, bug #340795.
409 - tc-export AR CC CXX NM
410 -
411 - if ! tc-is-clang; then
412 - # Force clang since gcc is pretty broken at the moment.
413 - CC=${CHOST}-clang
414 - CXX=${CHOST}-clang++
415 - strip-unsupported-flags
416 - fi
417 -
418 - if tc-is-clang; then
419 - myconf_gn+=" is_clang=true clang_use_chrome_plugins=false"
420 - else
421 - myconf_gn+=" is_clang=false"
422 - fi
423 -
424 - # Define a custom toolchain for GN
425 - myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\""
426 -
427 - if tc-is-cross-compiler; then
428 - tc-export BUILD_{AR,CC,CXX,NM}
429 - myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\""
430 - myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\""
431 - else
432 - myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\""
433 - fi
434 -
435 - # GN needs explicit config for Debug/Release as opposed to inferring it from build directory.
436 - myconf_gn+=" is_debug=false"
437 -
438 - # Component build isn't generally intended for use by end users. It's mostly useful
439 - # for development and debugging.
440 - myconf_gn+=" is_component_build=$(usex component-build true false)"
441 -
442 - # https://chromium.googlesource.com/chromium/src/+/lkcr/docs/jumbo.md
443 - myconf_gn+=" use_jumbo_build=$(usex jumbo-build true false)"
444 -
445 - myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")"
446 -
447 - # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
448 - myconf_gn+=" enable_nacl=false"
449 -
450 - # Use system-provided libraries.
451 - # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733).
452 - # TODO: use_system_hunspell (upstream changes needed).
453 - # TODO: use_system_libsrtp (bug #459932).
454 - # TODO: use_system_protobuf (bug #525560).
455 - # TODO: use_system_ssl (http://crbug.com/58087).
456 - # TODO: use_system_sqlite (http://crbug.com/22208).
457 -
458 - # libevent: https://bugs.gentoo.org/593458
459 - local gn_system_libraries=(
460 - flac
461 - fontconfig
462 - freetype
463 - # Need harfbuzz_from_pkgconfig target
464 - #harfbuzz-ng
465 - libdrm
466 - libjpeg
467 - libpng
468 - libwebp
469 - libxml
470 - libxslt
471 - openh264
472 - re2
473 - snappy
474 - yasm
475 - zlib
476 - )
477 - if use system-ffmpeg; then
478 - gn_system_libraries+=( ffmpeg opus )
479 - fi
480 - if use system-icu; then
481 - gn_system_libraries+=( icu )
482 - fi
483 - if use system-libvpx; then
484 - gn_system_libraries+=( libvpx )
485 - fi
486 - build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die
487 -
488 - # See dependency logic in third_party/BUILD.gn
489 - myconf_gn+=" use_system_harfbuzz=true"
490 -
491 - # Optional dependencies.
492 - myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)"
493 - myconf_gn+=" enable_widevine=$(usex widevine true false)"
494 - myconf_gn+=" use_cups=$(usex cups true false)"
495 - myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)"
496 - myconf_gn+=" use_kerberos=$(usex kerberos true false)"
497 - myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)"
498 -
499 - # TODO: link_pulseaudio=true for GN.
500 -
501 - myconf_gn+=" fieldtrial_testing_like_official_build=true"
502 -
503 - # Never use bundled gold binary. Disable gold linker flags for now.
504 - # Do not use bundled clang.
505 - # Trying to use gold results in linker crash.
506 - myconf_gn+=" use_gold=false use_sysroot=false linux_use_bundled_binutils=false use_custom_libcxx=false"
507 -
508 - # Disable forced lld, bug 641556
509 - myconf_gn+=" use_lld=false"
510 -
511 - ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
512 - myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)"
513 - myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\""
514 -
515 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
516 - # Note: these are for Gentoo use ONLY. For your own distribution,
517 - # please get your own set of keys. Feel free to contact chromium@g.o
518 - # for more info.
519 - local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc"
520 - local google_default_client_id="329227923882.apps.googleusercontent.com"
521 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
522 - myconf_gn+=" google_api_key=\"${google_api_key}\""
523 - myconf_gn+=" google_default_client_id=\"${google_default_client_id}\""
524 - myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\""
525 -
526 - local myarch="$(tc-arch)"
527 - if [[ $myarch = amd64 ]] ; then
528 - myconf_gn+=" target_cpu=\"x64\""
529 - ffmpeg_target_arch=x64
530 - elif [[ $myarch = x86 ]] ; then
531 - myconf_gn+=" target_cpu=\"x86\""
532 - ffmpeg_target_arch=ia32
533 - elif [[ $myarch = arm64 ]] ; then
534 - myconf_gn+=" target_cpu=\"arm64\""
535 - ffmpeg_target_arch=arm64
536 - elif [[ $myarch = arm ]] ; then
537 - myconf_gn+=" target_cpu=\"arm\""
538 - ffmpeg_target_arch=$(usex neon arm-neon arm)
539 - else
540 - die "Failed to determine target arch, got '$myarch'."
541 - fi
542 -
543 - # Make sure that -Werror doesn't get added to CFLAGS by the build system.
544 - # Depending on GCC version the warnings are different and we don't want
545 - # the build to fail because of that.
546 - myconf_gn+=" treat_warnings_as_errors=false"
547 -
548 - # Disable fatal linker warnings, bug 506268.
549 - myconf_gn+=" fatal_linker_warnings=false"
550 -
551 - # Avoid CFLAGS problems, bug #352457, bug #390147.
552 - if ! use custom-cflags; then
553 - replace-flags "-Os" "-O2"
554 - strip-flags
555 -
556 - # Prevent linker from running out of address space, bug #471810 .
557 - if use x86; then
558 - filter-flags "-g*"
559 - fi
560 -
561 - # Prevent libvpx build failures. Bug 530248, 544702, 546984.
562 - if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
563 - filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2
564 - fi
565 - fi
566 -
567 - # https://bugs.gentoo.org/588596
568 - #append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks)
569 -
570 - # Bug 491582.
571 - export TMPDIR="${WORKDIR}/temp"
572 - mkdir -p -m 755 "${TMPDIR}" || die
573 -
574 - # https://bugs.gentoo.org/654216
575 - addpredict /dev/dri/ #nowarn
576 -
577 - #if ! use system-ffmpeg; then
578 - if false; then
579 - local build_ffmpeg_args=""
580 - if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
581 - build_ffmpeg_args+=" --disable-asm"
582 - fi
583 -
584 - # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
585 - einfo "Configuring bundled ffmpeg..."
586 - pushd third_party/ffmpeg > /dev/null || die
587 - chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
588 - --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
589 - chromium/scripts/copy_config.sh || die
590 - chromium/scripts/generate_gn.py || die
591 - popd > /dev/null || die
592 - fi
593 -
594 - einfo "Configuring Chromium..."
595 - set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release
596 - echo "$@"
597 - "$@" || die
598 -}
599 -
600 -src_compile() {
601 - # Calling this here supports resumption via FEATURES=keepwork
602 - python_setup
603 -
604 - #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die
605 -
606 - # Build mksnapshot and pax-mark it.
607 - local x
608 - for x in mksnapshot v8_context_snapshot_generator; do
609 - if tc-is-cross-compiler; then
610 - eninja -C out/Release "host/${x}"
611 - pax-mark m "out/Release/host/${x}"
612 - else
613 - eninja -C out/Release "${x}"
614 - pax-mark m "out/Release/${x}"
615 - fi
616 - done
617 -
618 - # Even though ninja autodetects number of CPUs, we respect
619 - # user's options, for debugging with -j 1 or any other reason.
620 - eninja -C out/Release chrome chromedriver
621 - use suid && eninja -C out/Release chrome_sandbox
622 -
623 - pax-mark m out/Release/chrome
624 -}
625 -
626 -src_install() {
627 - local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
628 - exeinto "${CHROMIUM_HOME}"
629 - doexe out/Release/chrome
630 -
631 - if use suid; then
632 - newexe out/Release/chrome_sandbox chrome-sandbox
633 - fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
634 - fi
635 -
636 - doexe out/Release/chromedriver
637 -
638 - local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
639 - sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
640 - doexe chromium-launcher.sh
641 -
642 - # It is important that we name the target "chromium-browser",
643 - # xdg-utils expect it; bug #355517.
644 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser
645 - # keep the old symlink around for consistency
646 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium
647 -
648 - dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver
649 -
650 - # Allow users to override command-line options, bug #357629.
651 - insinto /etc/chromium
652 - newins "${FILESDIR}/chromium.default" "default"
653 -
654 - pushd out/Release/locales > /dev/null || die
655 - chromium_remove_language_paks
656 - popd
657 -
658 - insinto "${CHROMIUM_HOME}"
659 - doins out/Release/*.bin
660 - doins out/Release/*.pak
661 - doins out/Release/*.so
662 -
663 - if ! use system-icu; then
664 - doins out/Release/icudtl.dat
665 - fi
666 -
667 - doins -r out/Release/locales
668 - doins -r out/Release/resources
669 -
670 - if [[ -d out/Release/swiftshader ]]; then
671 - insinto "${CHROMIUM_HOME}/swiftshader"
672 - doins out/Release/swiftshader/*.so
673 - fi
674 -
675 - # Install icons and desktop entry.
676 - local branding size
677 - for size in 16 22 24 32 48 64 128 256 ; do
678 - case ${size} in
679 - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
680 - *) branding="chrome/app/theme/chromium" ;;
681 - esac
682 - newicon -s ${size} "${branding}/product_logo_${size}.png" \
683 - chromium-browser.png
684 - done
685 -
686 - local mime_types="text/html;text/xml;application/xhtml+xml;"
687 - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
688 - mime_types+="x-scheme-handler/ftp;" # bug #412185
689 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
690 - make_desktop_entry \
691 - chromium-browser \
692 - "Chromium" \
693 - chromium-browser \
694 - "Network;WebBrowser" \
695 - "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
696 - sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
697 -
698 - # Install GNOME default application entry (bug #303100).
699 - insinto /usr/share/gnome-control-center/default-apps
700 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml
701 -
702 - readme.gentoo_create_doc
703 -}
704 -
705 -pkg_preinst() {
706 - gnome2_icon_savelist
707 -}
708 -
709 -pkg_postrm() {
710 - gnome2_icon_cache_update
711 - xdg_desktop_database_update
712 -}
713 -
714 -pkg_postinst() {
715 - gnome2_icon_cache_update
716 - xdg_desktop_database_update
717 - readme.gentoo_print_elog
718 -}
719
720 diff --git a/www-client/chromium/chromium-69.0.3497.57.ebuild b/www-client/chromium/chromium-69.0.3497.81.ebuild
721 similarity index 100%
722 rename from www-client/chromium/chromium-69.0.3497.57.ebuild
723 rename to www-client/chromium/chromium-69.0.3497.81.ebuild