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