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