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