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: Thu, 01 Sep 2016 17:11:32
Message-Id: 1472749872.829cacb1970ca82e3e8ac4f11717232d80d0ab7c.floppym@gentoo
1 commit: 829cacb1970ca82e3e8ac4f11717232d80d0ab7c
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 1 17:10:44 2016 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 1 17:11:12 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=829cacb1
7
8 www-client/chromium: remove old
9
10 Package-Manager: portage-2.3.0_p22
11
12 www-client/chromium/Manifest | 1 -
13 www-client/chromium/chromium-52.0.2743.116.ebuild | 719 ----------------------
14 www-client/chromium/metadata.xml | 2 -
15 3 files changed, 722 deletions(-)
16
17 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
18 index c55057a..2d60f64 100644
19 --- a/www-client/chromium/Manifest
20 +++ b/www-client/chromium/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST chromium-52.0.2743.116.tar.xz 458156660 SHA256 a194ae1edb041024b3d4b6ba438f32fefdb6f1ecb24a96c50248a486b237a101 SHA512 c9a8b6d7a22d3b086f1761678f1fa047191a8e44bc6ebe8745e76ea92420b1330fc6e4134ca7bc22c0367e7a25df04900156d0ebb44eae3ef7f98d1deb5362e5 WHIRLPOOL 90cc620e9dab964690a24606ae456e20f1a9dc556301fef33f3599a395ec247cb03712c94522a681f20332b54163896e118463b1b402aff6153b513deb25c5cc
23 DIST chromium-53.0.2785.70.tar.xz 460838212 SHA256 edd660ea30eeb1a3fccb1c18c725c96bf464b6ea34134c8210ef9dfa8cd35179 SHA512 7029915f983f854ceb2e43b1bc896b2954eb2ca4f704a81070a837e2435ffd0f5a4e4128456826fc70e439997febb1eb715ed33b3336734f137952632f61dd7e WHIRLPOOL d6e51313b37c6408e6f41900b984f1cc835fb247dfb0371eaca9554425df5df2ae1d56e4efd31093c2ffcd0359b457338558ee8e66cd1a67f69528f5461cd5b2
24 DIST chromium-53.0.2785.89.tar.xz 460845036 SHA256 2e3c5f7b12b5b4f150b93004a718fb85778aeddc4df05bbf92b99a19a1c63dee SHA512 b1ae1021bcebafa2e9e639d1ed14112d1553bad739148e52ad8831c7ae8bc3c1933a7c06bab443b694cec1f6a50eec82148029408bc5032c7e0ebbf75b502d55 WHIRLPOOL 1dadb6d32ad5d2e7a0caac4cc4ba3146c33bc375655cecda11580acc6e12617279bcf7eaf6fc481f0b8993cbced422b9596ecad1280478e4a310ca762fd1b622
25 DIST chromium-54.0.2837.0.tar.xz 479983852 SHA256 4813772a104aefc630bd80f81c663f702659fe8a7d592839bf04a1d252e20d75 SHA512 f052afd0b32a1de30df55792c91fbc595489eb347b775e05db7f272e5d88ffc2ff8d498d35c811f2c4e4c14b6cd57d18549dddbbf6b085f5bbe533723dfc2dde WHIRLPOOL d37ec6920ce4922ff2dfd3b4c59691d735301b6124d49f6a854b7eca6975e0588ff975d8337d293a242014d2a5a747695a0dad4216e3c53b552d4a43a6c3a3dc
26
27 diff --git a/www-client/chromium/chromium-52.0.2743.116.ebuild b/www-client/chromium/chromium-52.0.2743.116.ebuild
28 deleted file mode 100644
29 index 62d12ab..00000000
30 --- a/www-client/chromium/chromium-52.0.2743.116.ebuild
31 +++ /dev/null
32 @@ -1,719 +0,0 @@
33 -# Copyright 1999-2016 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -# $Id$
36 -
37 -EAPI="5"
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 multiprocessing pax-utils portability python-any-r1 readme.gentoo-r1 toolchain-funcs versionator virtualx 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 hotwording? ( no-source-code )"
51 -SLOT="0"
52 -KEYWORDS="amd64 ~arm ~arm64 x86"
53 -IUSE="cups gn gnome gnome-keyring gtk3 +hangouts hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc widevine"
54 -RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
55 -
56 -# TODO: bootstrapped gn binary hangs when using tcmalloc with portage's sandbox.
57 -REQUIRED_USE="gn? ( !tcmalloc )"
58 -
59 -# Native Client binaries are compiled with different set of flags, bug #452066.
60 -QA_FLAGS_IGNORED=".*\.nexe"
61 -
62 -# Native Client binaries may be stripped by the build system, which uses the
63 -# right tools for it, bug #469144 .
64 -QA_PRESTRIPPED=".*\.nexe"
65 -
66 -RDEPEND="
67 - app-arch/bzip2:=
68 - cups? ( >=net-print/cups-1.3.11:= )
69 - >=dev-libs/elfutils-0.149
70 - dev-libs/expat:=
71 - dev-libs/glib:=
72 - >=dev-libs/jsoncpp-0.5.0-r1:=
73 - dev-libs/nspr:=
74 - >=dev-libs/nss-3.14.3:=
75 - gnome? ( >=gnome-base/gconf-2.24.0:= )
76 - gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
77 - >=media-libs/alsa-lib-1.0.19:=
78 - media-libs/fontconfig:=
79 - media-libs/freetype:=
80 - media-libs/libexif:=
81 - media-libs/speex:=
82 - pulseaudio? ( media-sound/pulseaudio:= )
83 - system-ffmpeg? ( >=media-video/ffmpeg-2.7.2:= )
84 - sys-apps/dbus:=
85 - sys-apps/pciutils:=
86 - >=sys-libs/libcap-2.22:=
87 - virtual/udev
88 - x11-libs/cairo:=
89 - x11-libs/gdk-pixbuf:=
90 - gtk3? ( x11-libs/gtk+:3= )
91 - !gtk3? ( x11-libs/gtk+:2= )
92 - x11-libs/libdrm
93 - x11-libs/libX11:=
94 - x11-libs/libXcomposite:=
95 - x11-libs/libXcursor:=
96 - x11-libs/libXdamage:=
97 - x11-libs/libXext:=
98 - x11-libs/libXfixes:=
99 - >=x11-libs/libXi-1.6.0:=
100 - x11-libs/libXinerama:=
101 - x11-libs/libXrandr:=
102 - x11-libs/libXrender:=
103 - x11-libs/libXScrnSaver:=
104 - x11-libs/libXtst:=
105 - x11-libs/pango:=
106 - kerberos? ( virtual/krb5 )
107 - !gn? (
108 - >=app-accessibility/speech-dispatcher-0.8:=
109 - app-arch/snappy:=
110 - >=dev-libs/libevent-1.4.13:=
111 - dev-libs/libxml2:=[icu]
112 - dev-libs/libxslt:=
113 - media-libs/flac:=
114 - >=media-libs/harfbuzz-0.9.41:=[icu(+)]
115 - >=media-libs/libwebp-0.4.0:=
116 - sys-libs/zlib:=[minizip]
117 - )"
118 -DEPEND="${RDEPEND}
119 - !arm? (
120 - dev-lang/yasm
121 - )
122 - dev-lang/perl
123 - dev-perl/JSON
124 - >=dev-util/gperf-3.0.3
125 - dev-util/ninja
126 - sys-apps/hwids[usb(+)]
127 - >=sys-devel/bison-2.4.3
128 - sys-devel/flex
129 - virtual/pkgconfig"
130 -
131 -# For nvidia-drivers blocker, see bug #413637 .
132 -RDEPEND+="
133 - !=www-client/chromium-9999
134 - !<www-plugins/chrome-binary-plugins-37
135 - x11-misc/xdg-utils
136 - virtual/opengl
137 - virtual/ttf-fonts
138 - selinux? ( sec-policy/selinux-chromium )
139 - tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )
140 - widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] )"
141 -
142 -# Python dependencies. The DEPEND part needs to be kept in sync
143 -# with python_check_deps.
144 -DEPEND+=" $(python_gen_any_dep '
145 - dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
146 - >=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]
147 - dev-python/html5lib[${PYTHON_USEDEP}]
148 - dev-python/jinja[${PYTHON_USEDEP}]
149 - dev-python/ply[${PYTHON_USEDEP}]
150 - dev-python/simplejson[${PYTHON_USEDEP}]
151 -')"
152 -python_check_deps() {
153 - has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" &&
154 - has_version --host-root ">=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]" &&
155 - has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" &&
156 - has_version --host-root "dev-python/jinja[${PYTHON_USEDEP}]" &&
157 - has_version --host-root "dev-python/ply[${PYTHON_USEDEP}]" &&
158 - has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]"
159 -}
160 -
161 -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
162 - EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
163 -fi
164 -
165 -DISABLE_AUTOFORMATTING="yes"
166 -DOC_CONTENTS="
167 -Some web pages may require additional fonts to display properly.
168 -Try installing some of the following packages if some characters
169 -are not displayed properly:
170 -- media-fonts/arphicfonts
171 -- media-fonts/bitstream-cyberbit
172 -- media-fonts/droid
173 -- media-fonts/ipamonafont
174 -- media-fonts/ja-ipafonts
175 -- media-fonts/takao-fonts
176 -- media-fonts/wqy-microhei
177 -- media-fonts/wqy-zenhei
178 -
179 -Depending on your desktop environment, you may need
180 -to install additional packages to get icons on the Downloads page.
181 -
182 -For KDE, the required package is kde-frameworks/oxygen-icons.
183 -
184 -For other desktop environments, try one of the following:
185 -- x11-themes/gnome-icon-theme
186 -- x11-themes/tango-icon-theme
187 -"
188 -
189 -pkg_pretend() {
190 - if [[ $(tc-getCC)$ == *gcc* ]] && \
191 - [[ $(gcc-major-version)$(gcc-minor-version) -lt 48 ]]; then
192 - die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
193 - fi
194 -
195 - # Check build requirements, bug #541816 and bug #471810 .
196 - CHECKREQS_MEMORY="3G"
197 - CHECKREQS_DISK_BUILD="5G"
198 - eshopts_push -s extglob
199 - if is-flagq '-g?(gdb)?([1-9])'; then
200 - CHECKREQS_DISK_BUILD="25G"
201 - fi
202 - eshopts_pop
203 - check-reqs_pkg_pretend
204 -}
205 -
206 -pkg_setup() {
207 - if [[ "${SLOT}" == "0" ]]; then
208 - CHROMIUM_SUFFIX=""
209 - else
210 - CHROMIUM_SUFFIX="-${SLOT}"
211 - fi
212 - CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
213 -
214 - # Make sure the build system will use the right python, bug #344367.
215 - python-any-r1_pkg_setup
216 -
217 - chromium_suid_sandbox_check_kernel_config
218 -}
219 -
220 -src_prepare() {
221 - epatch "${FILESDIR}/${PN}-system-ffmpeg-r2.patch"
222 - epatch "${FILESDIR}/${PN}-system-jinja-r9.patch"
223 - epatch "${FILESDIR}/${PN}-widevine-r1.patch"
224 - epatch "${FILESDIR}/${PN}-last-commit-position-r0.patch"
225 - epatch "${FILESDIR}/${PN}-snapshot-toolchain-r1.patch"
226 - epatch "${FILESDIR}/${PN}-pdfium-r0.patch"
227 - epatch "${FILESDIR}/${PN}-system-zlib-r0.patch"
228 - epatch "${FILESDIR}/${PN}-linker-warnings-r0.patch"
229 - epatch "${FILESDIR}/${PN}-ffmpeg-license-r0.patch"
230 -
231 - epatch_user
232 -
233 - local conditional_bundled_libraries=""
234 - if ! use system-ffmpeg; then
235 - conditional_bundled_libraries+=" third_party/ffmpeg"
236 - fi
237 - if use gn; then
238 - conditional_bundled_libraries+="
239 - base/third_party/libevent
240 - third_party/adobe
241 - third_party/speech-dispatcher
242 - third_party/usb_ids
243 - third_party/xdg-utils
244 - third_party/yasm/run_yasm.py
245 - "
246 - fi
247 -
248 - # Remove most bundled libraries. Some are still needed.
249 - build/linux/unbundle/remove_bundled_libraries.py \
250 - ${conditional_bundled_libraries} \
251 - 'base/third_party/dmg_fp' \
252 - 'base/third_party/dynamic_annotations' \
253 - 'base/third_party/icu' \
254 - 'base/third_party/nspr' \
255 - 'base/third_party/superfasthash' \
256 - 'base/third_party/symbolize' \
257 - 'base/third_party/valgrind' \
258 - 'base/third_party/xdg_mime' \
259 - 'base/third_party/xdg_user_dirs' \
260 - 'breakpad/src/third_party/curl' \
261 - 'chrome/third_party/mozilla_security_manager' \
262 - 'courgette/third_party' \
263 - 'net/third_party/mozilla_security_manager' \
264 - 'net/third_party/nss' \
265 - 'third_party/WebKit' \
266 - 'third_party/analytics' \
267 - 'third_party/angle' \
268 - 'third_party/angle/src/third_party/compiler' \
269 - 'third_party/angle/src/third_party/libXNVCtrl' \
270 - 'third_party/angle/src/third_party/murmurhash' \
271 - 'third_party/angle/src/third_party/trace_event' \
272 - 'third_party/boringssl' \
273 - 'third_party/brotli' \
274 - 'third_party/cacheinvalidation' \
275 - 'third_party/catapult' \
276 - 'third_party/catapult/third_party/py_vulcanize' \
277 - 'third_party/catapult/third_party/py_vulcanize/third_party/rcssmin' \
278 - 'third_party/catapult/third_party/py_vulcanize/third_party/rjsmin' \
279 - 'third_party/catapult/tracing/third_party/components/polymer' \
280 - 'third_party/catapult/tracing/third_party/d3' \
281 - 'third_party/catapult/tracing/third_party/gl-matrix' \
282 - 'third_party/catapult/tracing/third_party/jszip' \
283 - 'third_party/cld_2' \
284 - 'third_party/cros_system_api' \
285 - 'third_party/cython/python_flags.py' \
286 - 'third_party/devscripts' \
287 - 'third_party/dom_distiller_js' \
288 - 'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \
289 - 'third_party/fips181' \
290 - 'third_party/flot' \
291 - 'third_party/google_input_tools' \
292 - 'third_party/google_input_tools/third_party/closure_library' \
293 - 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
294 - 'third_party/hunspell' \
295 - 'third_party/iccjpeg' \
296 - 'third_party/icu' \
297 - 'third_party/jstemplate' \
298 - 'third_party/khronos' \
299 - 'third_party/leveldatabase' \
300 - 'third_party/libXNVCtrl' \
301 - 'third_party/libaddressinput' \
302 - 'third_party/libjingle' \
303 - 'third_party/libjpeg_turbo' \
304 - 'third_party/libphonenumber' \
305 - 'third_party/libpng' \
306 - 'third_party/libsecret' \
307 - 'third_party/libsrtp' \
308 - 'third_party/libudev' \
309 - 'third_party/libusb' \
310 - 'third_party/libvpx' \
311 - 'third_party/libvpx/source/libvpx/third_party/x86inc' \
312 - 'third_party/libwebm' \
313 - 'third_party/libxml/chromium' \
314 - 'third_party/libyuv' \
315 - 'third_party/lss' \
316 - 'third_party/lzma_sdk' \
317 - 'third_party/mesa' \
318 - 'third_party/modp_b64' \
319 - 'third_party/mt19937ar' \
320 - 'third_party/openh264' \
321 - 'third_party/openmax_dl' \
322 - 'third_party/opus' \
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/lcms2-2.6' \
330 - 'third_party/pdfium/third_party/libjpeg' \
331 - 'third_party/pdfium/third_party/libopenjpeg20' \
332 - 'third_party/pdfium/third_party/libpng16' \
333 - 'third_party/pdfium/third_party/libtiff' \
334 - 'third_party/pdfium/third_party/zlib_v128' \
335 - 'third_party/polymer' \
336 - 'third_party/protobuf' \
337 - 'third_party/protobuf/third_party/six' \
338 - 'third_party/qcms' \
339 - 'third_party/re2' \
340 - 'third_party/sfntly' \
341 - 'third_party/skia' \
342 - 'third_party/smhasher' \
343 - 'third_party/sqlite' \
344 - 'third_party/tcmalloc' \
345 - 'third_party/usrsctp' \
346 - 'third_party/web-animations-js' \
347 - 'third_party/webdriver' \
348 - 'third_party/webrtc' \
349 - 'third_party/widevine' \
350 - 'third_party/woff2' \
351 - 'third_party/x86inc' \
352 - 'third_party/zlib/google' \
353 - 'url/third_party/mozilla' \
354 - 'v8/src/third_party/fdlibm' \
355 - 'v8/src/third_party/valgrind' \
356 - --do-remove || die
357 -}
358 -
359 -src_configure() {
360 - local myconf_gyp=""
361 - local myconf_gn=""
362 -
363 - # GN needs explicit config for Debug/Release as opposed to inferring it from build directory.
364 - myconf_gn+=" is_debug=false"
365 -
366 - # Never tell the build system to "enable" SSE2, it has a few unexpected
367 - # additions, bug #336871.
368 - myconf_gyp+=" -Ddisable_sse2=1"
369 -
370 - # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
371 - myconf_gyp+=" -Ddisable_nacl=1"
372 - myconf_gn+=" enable_nacl=false"
373 -
374 - # Make it possible to remove third_party/adobe.
375 - echo > "${T}/flapper_version.h" || die
376 - myconf_gyp+=" -Dflapper_version_h_file=${T}/flapper_version.h"
377 -
378 - # Use system-provided libraries.
379 - # TODO: use_system_hunspell (upstream changes needed).
380 - # TODO: use_system_icu (bug #576370).
381 - # TODO: use_system_libjpeg (bug #584518).
382 - # TODO: use_system_libpng (bug #578212).
383 - # TODO: use_system_libsrtp (bug #459932).
384 - # TODO: use_system_libusb (http://crbug.com/266149).
385 - # TODO: use_system_libvpx (http://crbug.com/494939).
386 - # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
387 - # TODO: use_system_protobuf (bug #525560).
388 - # TODO: use_system_re2 (bug #571156).
389 - # TODO: use_system_ssl (http://crbug.com/58087).
390 - # TODO: use_system_sqlite (http://crbug.com/22208).
391 - myconf_gyp+="
392 - -Duse_system_bzip2=1
393 - -Duse_system_ffmpeg=$(usex system-ffmpeg 1 0)
394 - -Duse_system_flac=1
395 - -Duse_system_harfbuzz=1
396 - -Duse_system_jsoncpp=1
397 - -Duse_system_libevent=1
398 - -Duse_system_libwebp=1
399 - -Duse_system_libxml=1
400 - -Duse_system_libxslt=1
401 - -Duse_system_minizip=1
402 - -Duse_system_nspr=1
403 - -Duse_system_snappy=1
404 - -Duse_system_speex=1
405 - -Duse_system_xdg_utils=1
406 - -Duse_system_zlib=1"
407 -
408 - local gn_system_libraries="
409 - flac
410 - harfbuzz-ng
411 - libevent
412 - libwebp
413 - libxml
414 - libxslt
415 - snappy
416 - yasm
417 - zlib"
418 - if use system-ffmpeg; then
419 - gn_system_libraries+=" ffmpeg"
420 - fi
421 - build/linux/unbundle/replace_gn_files.py --system-libraries ${gn_system_libraries} || die
422 -
423 - # Needed for system icu - we don't need additional data files.
424 - # myconf_gyp+=" -Dicu_use_data_file_flag=0"
425 -
426 - # TODO: patch gyp so that this arm conditional is not needed.
427 - if ! use arm; then
428 - myconf_gyp+="
429 - -Duse_system_yasm=1"
430 - fi
431 -
432 - # Optional dependencies.
433 - # TODO: linux_link_kerberos, bug #381289.
434 - myconf_gyp+="
435 - $(gyp_use cups)
436 - $(gyp_use gnome use_gconf)
437 - $(gyp_use gnome-keyring use_gnome_keyring)
438 - $(gyp_use gnome-keyring linux_link_gnome_keyring)
439 - $(gyp_use gtk3)
440 - $(gyp_use hangouts enable_hangout_services_extension)
441 - $(gyp_use hidpi enable_hidpi)
442 - $(gyp_use hotwording enable_hotwording)
443 - $(gyp_use kerberos)
444 - $(gyp_use pulseaudio)
445 - $(gyp_use tcmalloc use_allocator tcmalloc none)
446 - $(gyp_use widevine enable_widevine)"
447 -
448 - myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")"
449 - myconf_gn+=" use_cups=$(usex cups true false)"
450 - myconf_gn+=" use_kerberos=$(usex kerberos true false)"
451 -
452 - # Use explicit library dependencies instead of dlopen.
453 - # This makes breakages easier to detect by revdep-rebuild.
454 - myconf_gyp+="
455 - -Dlinux_link_gsettings=1
456 - -Dlinux_link_libpci=1
457 - -Dlinux_link_libspeechd=1
458 - -Dlibspeechd_h_prefix=speech-dispatcher/"
459 -
460 - # TODO: use the file at run time instead of effectively compiling it in.
461 - myconf_gyp+="
462 - -Dusb_ids_path=/usr/share/misc/usb.ids"
463 -
464 - # Save space by removing DLOG and DCHECK messages (about 6% reduction).
465 - myconf_gyp+="
466 - -Dlogging_like_official_build=1"
467 -
468 - if [[ $(tc-getCC) == *clang* ]]; then
469 - myconf_gyp+=" -Dclang=1"
470 - myconf_gn+=" is_clang=true"
471 - else
472 - myconf_gyp+=" -Dclang=0"
473 - myconf_gn+=" is_clang=false"
474 - fi
475 -
476 - # Never use bundled gold binary. Disable gold linker flags for now.
477 - # Do not use bundled clang.
478 - myconf_gyp+="
479 - -Dclang_use_chrome_plugins=0
480 - -Dhost_clang=0
481 - -Dlinux_use_bundled_binutils=0
482 - -Dlinux_use_bundled_gold=0
483 - -Dlinux_use_gold_flags=0
484 - -Dsysroot="
485 - myconf_gn+=" use_sysroot=false"
486 -
487 - ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
488 - myconf_gyp+=" -Dproprietary_codecs=1 -Dffmpeg_branding=${ffmpeg_branding}"
489 - myconf_gn+=" proprietary_codecs=true ffmpeg_branding=\"${ffmpeg_branding}\""
490 -
491 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
492 - # Note: these are for Gentoo use ONLY. For your own distribution,
493 - # please get your own set of keys. Feel free to contact chromium@g.o
494 - # for more info.
495 - local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc"
496 - local google_default_client_id="329227923882.apps.googleusercontent.com"
497 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
498 - myconf_gyp+=" -Dgoogle_api_key=${google_api_key}
499 - -Dgoogle_default_client_id=${google_default_client_id}
500 - -Dgoogle_default_client_secret=${google_default_client_secret}"
501 - myconf_gn+=" google_api_key=\"${google_api_key}\""
502 - myconf_gn+=" google_default_client_id=\"${google_default_client_id}\""
503 - myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\""
504 -
505 - local myarch="$(tc-arch)"
506 - if [[ $myarch = amd64 ]] ; then
507 - target_arch=x64
508 - ffmpeg_target_arch=x64
509 - elif [[ $myarch = x86 ]] ; then
510 - target_arch=ia32
511 - ffmpeg_target_arch=ia32
512 - elif [[ $myarch = arm64 ]] ; then
513 - target_arch=arm64
514 - ffmpeg_target_arch=arm64
515 - elif [[ $myarch = arm ]] ; then
516 - target_arch=arm
517 - ffmpeg_target_arch=$(usex neon arm-neon arm)
518 - # TODO: re-enable NaCl (NativeClient).
519 - local CTARGET=${CTARGET:-${CHOST}}
520 - if [[ $(tc-is-softfloat) == "no" ]]; then
521 -
522 - myconf_gyp+=" -Darm_float_abi=hard"
523 - fi
524 - filter-flags "-mfpu=*"
525 - use neon || myconf_gyp+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
526 -
527 - if [[ ${CTARGET} == armv[78]* ]]; then
528 - myconf_gyp+=" -Darmv7=1"
529 - else
530 - myconf_gyp+=" -Darmv7=0"
531 - fi
532 - myconf_gyp+=" -Dsysroot=
533 - $(gyp_use neon arm_neon)
534 - -Ddisable_nacl=1"
535 - else
536 - die "Failed to determine target arch, got '$myarch'."
537 - fi
538 -
539 - myconf_gyp+=" -Dtarget_arch=${target_arch}"
540 -
541 - # Make sure that -Werror doesn't get added to CFLAGS by the build system.
542 - # Depending on GCC version the warnings are different and we don't want
543 - # the build to fail because of that.
544 - myconf_gyp+=" -Dwerror="
545 - myconf_gn+=" treat_warnings_as_errors=false"
546 -
547 - # Disable fatal linker warnings, bug 506268.
548 - myconf_gyp+=" -Ddisable_fatal_linker_warnings=1"
549 -
550 - # Avoid CFLAGS problems, bug #352457, bug #390147.
551 - if ! use custom-cflags; then
552 - replace-flags "-Os" "-O2"
553 - strip-flags
554 -
555 - # Prevent linker from running out of address space, bug #471810 .
556 - if use x86; then
557 - filter-flags "-g*"
558 - fi
559 -
560 - # Prevent libvpx build failures. Bug 530248, 544702, 546984.
561 - if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
562 - filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2
563 - fi
564 - fi
565 -
566 - # Make sure the build system will use the right tools, bug #340795.
567 - tc-export AR CC CXX NM
568 -
569 - # Tools for building programs to be executed on the build system, bug #410883.
570 - if tc-is-cross-compiler; then
571 - export AR_host=$(tc-getBUILD_AR)
572 - export CC_host=$(tc-getBUILD_CC)
573 - export CXX_host=$(tc-getBUILD_CXX)
574 - export NM_host=$(tc-getBUILD_NM)
575 - fi
576 -
577 - # Bug 491582.
578 - export TMPDIR="${WORKDIR}/temp"
579 - mkdir -p -m 755 "${TMPDIR}" || die
580 -
581 - if ! use system-ffmpeg; then
582 - local build_ffmpeg_args=""
583 - if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
584 - build_ffmpeg_args+=" --disable-asm"
585 - fi
586 -
587 - # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
588 - einfo "Configuring bundled ffmpeg..."
589 - pushd third_party/ffmpeg > /dev/null || die
590 - chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
591 - --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
592 - chromium/scripts/copy_config.sh || die
593 - chromium/scripts/generate_gyp.py || die
594 - popd > /dev/null || die
595 - fi
596 -
597 - third_party/libaddressinput/chromium/tools/update-strings.py || die
598 -
599 - touch chrome/test/data/webui/i18n_process_css_test.html || die
600 -
601 - einfo "Configuring Chromium..."
602 - if use gn; then
603 - tools/gn/bootstrap/bootstrap.py -v --gn-gen-args "${myconf_gn}" || die
604 - out/Release/gn gen --args="${myconf_gn}" out/Release || die
605 - else
606 - build/linux/unbundle/replace_gyp_files.py ${myconf_gyp} || die
607 - egyp_chromium ${myconf_gyp} || die
608 - fi
609 -}
610 -
611 -eninja() {
612 - if [[ -z ${NINJAOPTS+set} ]]; then
613 - local jobs=$(makeopts_jobs)
614 - local loadavg=$(makeopts_loadavg)
615 -
616 - if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
617 - NINJAOPTS+=" -j ${jobs}"
618 - fi
619 - if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
620 - NINJAOPTS+=" -l ${loadavg}"
621 - fi
622 - fi
623 - set -- ninja -v ${NINJAOPTS} "$@"
624 - echo "$@"
625 - "$@"
626 -}
627 -
628 -src_compile() {
629 - local ninja_targets="chrome chrome_sandbox chromedriver"
630 -
631 - if ! use gn; then
632 - # Build mksnapshot and pax-mark it.
633 - eninja -C out/Release mksnapshot || die
634 - pax-mark m out/Release/mksnapshot
635 - fi
636 -
637 - # Even though ninja autodetects number of CPUs, we respect
638 - # user's options, for debugging with -j 1 or any other reason.
639 - eninja -C out/Release ${ninja_targets} || die
640 -
641 - pax-mark m out/Release/chrome
642 -}
643 -
644 -src_install() {
645 - exeinto "${CHROMIUM_HOME}"
646 - doexe out/Release/chrome || die
647 -
648 - newexe out/Release/chrome_sandbox chrome-sandbox || die
649 - fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
650 -
651 - doexe out/Release/chromedriver || die
652 - use widevine && doexe out/Release/libwidevinecdmadapter.so
653 -
654 - # if ! use arm; then
655 - # doexe out/Release/nacl_helper{,_bootstrap} || die
656 - # insinto "${CHROMIUM_HOME}"
657 - # doins out/Release/nacl_irt_*.nexe || die
658 - # doins out/Release/libppGoogleNaClPluginChrome.so || die
659 - # fi
660 -
661 - local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
662 - if [[ -n ${CHROMIUM_SUFFIX} ]]; then
663 - sedargs+=(
664 - -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g"
665 - -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g"
666 - -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:"
667 - )
668 - fi
669 - sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
670 - doexe chromium-launcher.sh
671 -
672 - # It is important that we name the target "chromium-browser",
673 - # xdg-utils expect it; bug #355517.
674 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
675 - # keep the old symlink around for consistency
676 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
677 -
678 - dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die
679 -
680 - # Allow users to override command-line options, bug #357629.
681 - dodir /etc/chromium || die
682 - insinto /etc/chromium
683 - newins "${FILESDIR}/chromium.default" "default" || die
684 -
685 - pushd out/Release/locales > /dev/null || die
686 - chromium_remove_language_paks
687 - popd
688 -
689 - insinto "${CHROMIUM_HOME}"
690 - doins out/Release/*.bin || die
691 - doins out/Release/*.pak || die
692 -
693 - doins out/Release/icudtl.dat || die
694 -
695 - doins -r out/Release/locales || die
696 - doins -r out/Release/resources || die
697 -
698 - newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
699 - newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
700 -
701 - # Install icons and desktop entry.
702 - local branding size
703 - for size in 16 22 24 32 48 64 128 256 ; do
704 - case ${size} in
705 - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
706 - *) branding="chrome/app/theme/chromium" ;;
707 - esac
708 - newicon -s ${size} "${branding}/product_logo_${size}.png" \
709 - chromium-browser${CHROMIUM_SUFFIX}.png
710 - done
711 -
712 - local mime_types="text/html;text/xml;application/xhtml+xml;"
713 - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
714 - mime_types+="x-scheme-handler/ftp;" # bug #412185
715 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
716 - make_desktop_entry \
717 - chromium-browser${CHROMIUM_SUFFIX} \
718 - "Chromium${CHROMIUM_SUFFIX}" \
719 - chromium-browser${CHROMIUM_SUFFIX} \
720 - "Network;WebBrowser" \
721 - "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
722 - sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
723 -
724 - # Install GNOME default application entry (bug #303100).
725 - if use gnome; then
726 - dodir /usr/share/gnome-control-center/default-apps || die
727 - insinto /usr/share/gnome-control-center/default-apps
728 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
729 - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
730 - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
731 - "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
732 - fi
733 - fi
734 -
735 - readme.gentoo_create_doc
736 -}
737 -
738 -pkg_preinst() {
739 - gnome2_icon_savelist
740 -}
741 -
742 -pkg_postrm() {
743 - gnome2_icon_cache_update
744 - xdg_desktop_database_update
745 -}
746 -
747 -pkg_postinst() {
748 - gnome2_icon_cache_update
749 - xdg_desktop_database_update
750 - readme.gentoo_print_elog
751 -}
752
753 diff --git a/www-client/chromium/metadata.xml b/www-client/chromium/metadata.xml
754 index e3e29a2..e8b2f0f 100644
755 --- a/www-client/chromium/metadata.xml
756 +++ b/www-client/chromium/metadata.xml
757 @@ -10,8 +10,6 @@
758 <flag name="gn">Use GN (generate ninja) instead of GYP for building</flag>
759 <flag name="gtk3">Use gtk3 instead of gtk2</flag>
760 <flag name="hangouts">Enable support for Google Hangouts features such as screen sharing</flag>
761 - <flag name="hidpi">Enable support for high-resolution screens (high dots per inch)</flag>
762 - <flag name="hotwording">Enable voice-recognition support (Ok Google)</flag>
763 <flag name="pic">Disable optimized assembly code that is not PIC friendly</flag>
764 <flag name="proprietary-codecs">Enable proprietary codecs like H.264, MP3</flag>
765 <flag name="system-ffmpeg">Use system ffmpeg instead of the bundled one</flag>