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