Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/chromium: chromium-35.0.1916.86.ebuild ChangeLog
Date: Thu, 01 May 2014 00:36:21
Message-Id: 20140501003614.D4FDB2004B@flycatcher.gentoo.org
1 floppym 14/05/01 00:36:14
2
3 Modified: ChangeLog
4 Added: chromium-35.0.1916.86.ebuild
5 Log:
6 Beta channel bump.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
9
10 Revision Changes Path
11 1.1068 www-client/chromium/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.1068&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.1068&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.1067&r2=1.1068
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
20 retrieving revision 1.1067
21 retrieving revision 1.1068
22 diff -u -r1.1067 -r1.1068
23 --- ChangeLog 28 Apr 2014 14:55:00 -0000 1.1067
24 +++ ChangeLog 1 May 2014 00:36:14 -0000 1.1068
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-client/chromium
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1067 2014/04/28 14:55:00 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1068 2014/05/01 00:36:14 floppym Exp $
30 +
31 +*chromium-35.0.1916.86 (01 May 2014)
32 +
33 + 01 May 2014; Mike Gilbert <floppym@g.o> +chromium-35.0.1916.86.ebuild:
34 + Beta channel bump.
35
36 28 Apr 2014; Agostino Sarubbo <ago@g.o> -chromium-34.0.1847.116.ebuild:
37 Remove old
38
39
40
41 1.1 www-client/chromium/chromium-35.0.1916.86.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-35.0.1916.86.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-35.0.1916.86.ebuild?rev=1.1&content-type=text/plain
45
46 Index: chromium-35.0.1916.86.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-35.0.1916.86.ebuild,v 1.1 2014/05/01 00:36:14 floppym Exp $
51
52 EAPI="5"
53 PYTHON_COMPAT=( python{2_6,2_7} )
54
55 CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
56 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
57 sv sw ta te th tr uk vi zh_CN zh_TW"
58
59 inherit chromium eutils flag-o-matic multilib multiprocessing pax-utils \
60 portability python-any-r1 readme.gentoo toolchain-funcs versionator virtualx
61
62 DESCRIPTION="Open-source version of Google Chrome web browser"
63 HOMEPAGE="http://chromium.org/"
64 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
65 test? ( https://commondatastorage.googleapis.com/chromium-browser-official/${P}-testdata.tar.xz )"
66
67 LICENSE="BSD"
68 SLOT="0"
69 KEYWORDS="~amd64 ~arm ~x86"
70 IUSE="bindist cups gnome gnome-keyring kerberos neon pulseaudio selinux +tcmalloc"
71
72 # Native Client binaries are compiled with different set of flags, bug #452066.
73 QA_FLAGS_IGNORED=".*\.nexe"
74
75 # Native Client binaries may be stripped by the build system, which uses the
76 # right tools for it, bug #469144 .
77 QA_PRESTRIPPED=".*\.nexe"
78
79 RDEPEND=">=app-accessibility/speech-dispatcher-0.8:=
80 app-arch/bzip2:=
81 app-arch/snappy:=
82 cups? (
83 dev-libs/libgcrypt:0=
84 >=net-print/cups-1.3.11:=
85 )
86 >=dev-libs/elfutils-0.149
87 dev-libs/expat:=
88 >=dev-libs/jsoncpp-0.5.0-r1:=
89 >=dev-libs/libevent-1.4.13:=
90 dev-libs/libxml2:=[icu]
91 dev-libs/libxslt:=
92 dev-libs/nspr:=
93 >=dev-libs/nss-3.14.3:=
94 dev-libs/re2:=
95 gnome? ( >=gnome-base/gconf-2.24.0:= )
96 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2:= )
97 >=media-libs/alsa-lib-1.0.19:=
98 media-libs/flac:=
99 media-libs/harfbuzz:=[icu(+)]
100 >=media-libs/libjpeg-turbo-1.2.0-r1:=
101 media-libs/libpng:0=
102 >=media-libs/libwebp-0.4.0:=
103 media-libs/speex:=
104 pulseaudio? ( media-sound/pulseaudio:= )
105 sys-apps/dbus:=
106 sys-apps/pciutils:=
107 >=sys-libs/libcap-2.22:=
108 sys-libs/zlib:=[minizip]
109 virtual/udev
110 x11-libs/gtk+:2=
111 >=x11-libs/libXi-1.6.0:=
112 x11-libs/libXinerama:=
113 x11-libs/libXScrnSaver:=
114 x11-libs/libXtst:=
115 kerberos? ( virtual/krb5 )
116 selinux? ( sec-policy/selinux-chromium )"
117 DEPEND="${RDEPEND}
118 !arm? (
119 dev-lang/yasm
120 )
121 dev-lang/perl
122 dev-perl/JSON
123 >=dev-util/gperf-3.0.3
124 dev-util/ninja
125 sys-apps/hwids
126 >=sys-devel/bison-2.4.3
127 sys-devel/flex
128 virtual/pkgconfig
129 test? (
130 dev-libs/openssl:0
131 )"
132 # For nvidia-drivers blocker, see bug #413637 .
133 RDEPEND+="
134 !=www-client/chromium-9999
135 x11-misc/xdg-utils
136 virtual/ttf-fonts
137 tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )"
138
139 # Python dependencies. The DEPEND part needs to be kept in sync
140 # with python_check_deps.
141 DEPEND+=" $(python_gen_any_dep '
142 dev-python/simplejson[${PYTHON_USEDEP}]
143 test? ( dev-python/pyftpdlib[${PYTHON_USEDEP}] )
144 ')"
145 python_check_deps() {
146 has_version "dev-python/simplejson[${PYTHON_USEDEP}]" && \
147 { ! use test || has_version "dev-python/pyftpdlib[${PYTHON_USEDEP}]"; }
148 }
149
150 if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
151 EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
152 fi
153
154 DISABLE_AUTOFORMATTING="yes"
155 DOC_CONTENTS="
156 Some web pages may require additional fonts to display properly.
157 Try installing some of the following packages if some characters
158 are not displayed properly:
159 - media-fonts/arphicfonts
160 - media-fonts/bitstream-cyberbit
161 - media-fonts/droid
162 - media-fonts/ipamonafont
163 - media-fonts/ja-ipafonts
164 - media-fonts/takao-fonts
165 - media-fonts/wqy-microhei
166 - media-fonts/wqy-zenhei
167
168 Depending on your desktop environment, you may need
169 to install additional packages to get icons on the Downloads page.
170
171 For KDE, the required package is kde-base/oxygen-icons.
172
173 For other desktop environments, try one of the following:
174 - x11-themes/gnome-icon-theme
175 - x11-themes/tango-icon-theme
176 "
177
178 pkg_setup() {
179 if [[ "${SLOT}" == "0" ]]; then
180 CHROMIUM_SUFFIX=""
181 else
182 CHROMIUM_SUFFIX="-${SLOT}"
183 fi
184 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
185
186 # Make sure the build system will use the right python, bug #344367.
187 python-any-r1_pkg_setup
188
189 chromium_suid_sandbox_check_kernel_config
190
191 if use bindist; then
192 elog "bindist enabled: H.264 video support will be disabled."
193 else
194 elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
195 fi
196 }
197
198 src_prepare() {
199 # if ! use arm; then
200 # mkdir -p out/Release/gen/sdk/toolchain || die
201 # # Do not preserve SELinux context, bug #460892 .
202 # cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \
203 # out/Release/gen/sdk/toolchain/linux_x86_newlib || die
204 # touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die
205 # fi
206
207 epatch "${FILESDIR}/${PN}-system-zlib-r0.patch"
208
209 epatch_user
210
211 # Remove most bundled libraries. Some are still needed.
212 build/linux/unbundle/remove_bundled_libraries.py \
213 'base/third_party/dmg_fp' \
214 'base/third_party/dynamic_annotations' \
215 'base/third_party/icu' \
216 'base/third_party/nspr' \
217 'base/third_party/superfasthash' \
218 'base/third_party/symbolize' \
219 'base/third_party/valgrind' \
220 'base/third_party/xdg_mime' \
221 'base/third_party/xdg_user_dirs' \
222 'breakpad/src/third_party/curl' \
223 'chrome/third_party/mozilla_security_manager' \
224 'crypto/third_party/nss' \
225 'net/third_party/mozilla_security_manager' \
226 'net/third_party/nss' \
227 'third_party/WebKit' \
228 'third_party/angle' \
229 'third_party/brotli' \
230 'third_party/cacheinvalidation' \
231 'third_party/cld' \
232 'third_party/cros_system_api' \
233 'third_party/dom_distiller_js' \
234 'third_party/ffmpeg' \
235 'third_party/flot' \
236 'third_party/hunspell' \
237 'third_party/iccjpeg' \
238 'third_party/icu' \
239 'third_party/jinja2' \
240 'third_party/jstemplate' \
241 'third_party/khronos' \
242 'third_party/leveldatabase' \
243 'third_party/libaddressinput' \
244 'third_party/libjingle' \
245 'third_party/libphonenumber' \
246 'third_party/libsrtp' \
247 'third_party/libusb' \
248 'third_party/libvpx' \
249 'third_party/libwebm' \
250 'third_party/libxml/chromium' \
251 'third_party/libXNVCtrl' \
252 'third_party/libyuv' \
253 'third_party/lss' \
254 'third_party/lzma_sdk' \
255 'third_party/markupsafe' \
256 'third_party/mesa' \
257 'third_party/modp_b64' \
258 'third_party/mt19937ar' \
259 'third_party/npapi' \
260 'third_party/nss.isolate' \
261 'third_party/opus' \
262 'third_party/ots' \
263 'third_party/polymer' \
264 'third_party/ply' \
265 'third_party/protobuf' \
266 'third_party/pywebsocket' \
267 'third_party/qcms' \
268 'third_party/readability' \
269 'third_party/sfntly' \
270 'third_party/skia' \
271 'third_party/smhasher' \
272 'third_party/sqlite' \
273 'third_party/tcmalloc' \
274 'third_party/tlslite' \
275 'third_party/trace-viewer' \
276 'third_party/undoview' \
277 'third_party/usrsctp' \
278 'third_party/webdriver' \
279 'third_party/webrtc' \
280 'third_party/widevine' \
281 'third_party/x86inc' \
282 'third_party/zlib/google' \
283 'url/third_party/mozilla' \
284 'v8/src/third_party/valgrind' \
285 --do-remove || die
286 }
287
288 src_configure() {
289 local myconf=""
290
291 # Never tell the build system to "enable" SSE2, it has a few unexpected
292 # additions, bug #336871.
293 myconf+=" -Ddisable_sse2=1"
294
295 # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
296 myconf+=" -Ddisable_nacl=1"
297
298 # Disable glibc Native Client toolchain, we don't need it (bug #417019).
299 # myconf+=" -Ddisable_glibc=1"
300
301 # TODO: also build with pnacl
302 # myconf+=" -Ddisable_pnacl=1"
303
304 # It would be awkward for us to tar the toolchain and get it untarred again
305 # during the build.
306 # myconf+=" -Ddisable_newlib_untar=1"
307
308 # Make it possible to remove third_party/adobe.
309 echo > "${T}/flapper_version.h" || die
310 myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
311
312 # Use system-provided libraries.
313 # TODO: use_system_hunspell (upstream changes needed).
314 # TODO: use_system_icu (resolve startup crash).
315 # TODO: use_system_libsrtp (bug #459932).
316 # TODO: use_system_libvpx (http://crbug.com/347823).
317 # TODO: use_system_libusb (http://crbug.com/266149).
318 # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
319 # TODO: use_system_protobuf (bug #503084).
320 # TODO: use_system_ssl (http://crbug.com/58087).
321 # TODO: use_system_sqlite (http://crbug.com/22208).
322 myconf+="
323 -Duse_system_bzip2=1
324 -Duse_system_flac=1
325 -Duse_system_harfbuzz=1
326 -Duse_system_jsoncpp=1
327 -Duse_system_libevent=1
328 -Duse_system_libjpeg=1
329 -Duse_system_libpng=1
330 -Duse_system_libwebp=1
331 -Duse_system_libxml=1
332 -Duse_system_libxslt=1
333 -Duse_system_minizip=1
334 -Duse_system_nspr=1
335 -Duse_system_openssl=1
336 -Duse_system_re2=1
337 -Duse_system_snappy=1
338 -Duse_system_speex=1
339 -Duse_system_xdg_utils=1
340 -Duse_system_zlib=1"
341
342 # TODO: patch gyp so that this arm conditional is not needed.
343 if ! use arm; then
344 myconf+="
345 -Duse_system_yasm=1"
346 fi
347
348 # Optional dependencies.
349 # TODO: linux_link_kerberos, bug #381289.
350 myconf+="
351 $(gyp_use cups)
352 $(gyp_use gnome use_gconf)
353 $(gyp_use gnome-keyring use_gnome_keyring)
354 $(gyp_use gnome-keyring linux_link_gnome_keyring)
355 $(gyp_use kerberos)
356 $(gyp_use pulseaudio)
357 $(gyp_use tcmalloc linux_use_tcmalloc)"
358
359 # Use explicit library dependencies instead of dlopen.
360 # This makes breakages easier to detect by revdep-rebuild.
361 myconf+="
362 -Dlinux_link_gsettings=1
363 -Dlinux_link_libpci=1
364 -Dlinux_link_libspeechd=1
365 -Dlibspeechd_h_prefix=speech-dispatcher/"
366
367 # TODO: use the file at run time instead of effectively compiling it in.
368 myconf+="
369 -Dusb_ids_path=/usr/share/misc/usb.ids"
370
371 # Save space by removing DLOG and DCHECK messages (about 6% reduction).
372 myconf+="
373 -Dlogging_like_official_build=1"
374
375 # Never use bundled gold binary. Disable gold linker flags for now.
376 myconf+="
377 -Dlinux_use_gold_binary=0
378 -Dlinux_use_gold_flags=0"
379
380 # TODO: enable mojo after fixing compile failures.
381 myconf+=" -Duse_mojo=0"
382
383 # Always support proprietary codecs.
384 myconf+=" -Dproprietary_codecs=1"
385
386 # Set python version and libdir so that python_arch.sh can find libpython.
387 # Bug 492864.
388 myconf+="
389 -Dpython_ver=${EPYTHON#python}
390 -Dsystem_libdir=$(get_libdir)"
391
392 if ! use bindist; then
393 # Enable H.264 support in bundled ffmpeg.
394 myconf+=" -Dffmpeg_branding=Chrome"
395 fi
396
397 # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
398 # Note: these are for Gentoo use ONLY. For your own distribution,
399 # please get your own set of keys. Feel free to contact chromium@g.o
400 # for more info.
401 myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
402 -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
403 -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
404
405 local myarch="$(tc-arch)"
406 if [[ $myarch = amd64 ]] ; then
407 target_arch=x64
408 ffmpeg_target_arch=x64
409 elif [[ $myarch = x86 ]] ; then
410 target_arch=ia32
411 ffmpeg_target_arch=ia32
412 elif [[ $myarch = arm ]] ; then
413 target_arch=arm
414 ffmpeg_target_arch=$(usex neon arm-neon arm)
415 # TODO: re-enable NaCl (NativeClient).
416 local CTARGET=${CTARGET:-${CHOST}}
417 if [[ $(tc-is-softfloat) == "no" ]]; then
418
419 myconf+=" -Darm_float_abi=hard"
420 fi
421 filter-flags "-mfpu=*"
422 use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
423
424 if [[ ${CTARGET} == armv[78]* ]]; then
425 myconf+=" -Darmv7=1"
426 else
427 myconf+=" -Darmv7=0"
428 fi
429 myconf+=" -Dsysroot=
430 $(gyp_use neon arm_neon)
431 -Ddisable_nacl=1"
432 else
433 die "Failed to determine target arch, got '$myarch'."
434 fi
435
436 myconf+=" -Dtarget_arch=${target_arch}"
437
438 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
439 # Depending on GCC version the warnings are different and we don't want
440 # the build to fail because of that.
441 myconf+=" -Dwerror="
442
443 # Disable fatal linker warnings, bug 506268.
444 myconf+=" -Ddisable_fatal_linker_warnings=1"
445
446 # Avoid CFLAGS problems, bug #352457, bug #390147.
447 if ! use custom-cflags; then
448 replace-flags "-Os" "-O2"
449 strip-flags
450
451 # Prevent linker from running out of address space, bug #471810 .
452 if use x86; then
453 filter-flags "-g*"
454 fi
455 fi
456
457 # Make sure the build system will use the right tools, bug #340795.
458 tc-export AR CC CXX RANLIB
459
460 # Tools for building programs to be executed on the build system, bug #410883.
461 export AR_host=$(tc-getBUILD_AR)
462 export CC_host=$(tc-getBUILD_CC)
463 export CXX_host=$(tc-getBUILD_CXX)
464 export LD_host=${CXX_host}
465
466 # Bug 491582.
467 export TMPDIR="${WORKDIR}/temp"
468 mkdir -m 755 "${TMPDIR}" || die
469
470 # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
471 einfo "Configuring bundled ffmpeg..."
472 pushd third_party/ffmpeg > /dev/null || die
473 chromium/scripts/build_ffmpeg.sh linux ${ffmpeg_target_arch} "${PWD}" config-only || die
474 chromium/scripts/copy_config.sh || die
475 popd > /dev/null || die
476
477 einfo "Configuring Chromium..."
478 build/linux/unbundle/replace_gyp_files.py ${myconf} || die
479 egyp_chromium ${myconf} || die
480 }
481
482 eninja() {
483 if [[ -z ${NINJAOPTS+set} ]]; then
484 local jobs=$(makeopts_jobs)
485 local loadavg=$(makeopts_loadavg)
486
487 if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
488 NINJAOPTS+=" -j ${jobs}"
489 fi
490 if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
491 NINJAOPTS+=" -l ${loadavg}"
492 fi
493 fi
494 set -- ninja -v ${NINJAOPTS} "$@"
495 echo "$@"
496 "$@"
497 }
498
499 src_compile() {
500 # TODO: add media_unittests after fixing compile (bug #462546).
501 local test_targets=""
502 for x in base cacheinvalidation content crypto \
503 gpu net printing sql; do
504 test_targets+=" ${x}_unittests"
505 done
506
507 local ninja_targets="chrome chrome_sandbox chromedriver"
508 if use test; then
509 ninja_targets+=" $test_targets"
510 fi
511
512 # Build mksnapshot and pax-mark it.
513 eninja -C out/Release mksnapshot.${target_arch} || die
514 pax-mark m out/Release/mksnapshot.${target_arch}
515
516 # Even though ninja autodetects number of CPUs, we respect
517 # user's options, for debugging with -j 1 or any other reason.
518 eninja -C out/Release ${ninja_targets} || die
519
520 pax-mark m out/Release/chrome
521 if use test; then
522 for x in $test_targets; do
523 pax-mark m out/Release/${x}
524 done
525 fi
526 }
527
528 src_test() {
529 # For more info see bug #350349.
530 local LC_ALL="en_US.utf8"
531
532 if ! locale -a | grep -q "${LC_ALL}"; then
533 eerror "${PN} requires ${LC_ALL} locale for tests"
534 eerror "Please read the following guides for more information:"
535 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
536 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
537 die "locale ${LC_ALL} is not supported"
538 fi
539
540 # If we have the right locale, export it to the environment
541 export LC_ALL
542
543 # For more info see bug #370957.
544 if [[ $UID -eq 0 ]]; then
545 die "Tests must be run as non-root. Please use FEATURES=userpriv."
546 fi
547
548 # virtualmake dies on failure, so we run our tests in a function
549 VIRTUALX_COMMAND="chromium_test" virtualmake
550 }
551
552 chromium_test() {
553 # Keep track of the cumulative exit status for all tests
554 local exitstatus=0
555
556 runtest() {
557 local cmd=$1
558 shift
559 local IFS=:
560 set -- "${cmd}" --test-launcher-bot-mode "--gtest_filter=-$*"
561 einfo "$@"
562 "$@"
563 local st=$?
564 (( st )) && eerror "${cmd} failed"
565 (( exitstatus |= st ))
566 }
567
568 local excluded_base_unittests=(
569 "OutOfMemoryDeathTest.ViaSharedLibraries" # bug #497512
570 )
571 runtest out/Release/base_unittests "${excluded_base_unittests[@]}"
572 runtest out/Release/cacheinvalidation_unittests
573
574 local excluded_content_unittests=(
575 "RendererDateTimePickerTest.*" # bug #465452
576 )
577 runtest out/Release/content_unittests "${excluded_content_unittests[@]}"
578
579 runtest out/Release/crypto_unittests
580 runtest out/Release/gpu_unittests
581
582 # TODO: add media_unittests after fixing compile (bug #462546).
583 # runtest out/Release/media_unittests
584
585 local excluded_net_unittests=(
586 "NetUtilTest.IDNToUnicode*" # bug 361885
587 "NetUtilTest.FormatUrl*" # see above
588 "SpdyFramerTests/SpdyFramerTest.CreatePushPromiseCompressed/2" # bug #478168
589 "SpdyFramerTests/SpdyFramerTest.CreateContinuationCompressed/2" # see above
590 "HostResolverImplTest.BypassCache" # bug #498304
591 "HostResolverImplTest.FlushCacheOnIPAddressChange" # bug #481812
592 "HostResolverImplTest.ResolveFromCache" # see above
593 "ProxyResolverV8TracingTest.*" # see above
594 "SSLClientSocketTest.ConnectMismatched" # see above
595 "UDPSocketTest.*" # see above
596 "*EndToEndTest*" # see above
597 "Version/QuicHttpStreamTest.Priority/0" # bug #503010
598 "Version/QuicHttpStreamTest.DestroyedEarly/0" # see above
599 )
600 runtest out/Release/net_unittests "${excluded_net_unittests[@]}"
601
602 runtest out/Release/printing_unittests
603 runtest out/Release/sql_unittests
604
605 return ${exitstatus}
606 }
607
608 src_install() {
609 exeinto "${CHROMIUM_HOME}"
610 doexe out/Release/chrome || die
611
612 newexe out/Release/chrome_sandbox chrome-sandbox || die
613 fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
614
615 doexe out/Release/chromedriver || die
616
617 # if ! use arm; then
618 # doexe out/Release/nacl_helper{,_bootstrap} || die
619 # insinto "${CHROMIUM_HOME}"
620 # doins out/Release/nacl_irt_*.nexe || die
621 # doins out/Release/libppGoogleNaClPluginChrome.so || die
622 # fi
623
624 local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
625 if [[ -n ${CHROMIUM_SUFFIX} ]]; then
626 sedargs+=(
627 -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g"
628 -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g"
629 -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:"
630 )
631 fi
632 sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
633 doexe chromium-launcher.sh
634
635 # It is important that we name the target "chromium-browser",
636 # xdg-utils expect it; bug #355517.
637 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
638 # keep the old symlink around for consistency
639 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
640
641 dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die
642
643 # Allow users to override command-line options, bug #357629.
644 dodir /etc/chromium || die
645 insinto /etc/chromium
646 newins "${FILESDIR}/chromium.default" "default" || die
647
648 pushd out/Release/locales > /dev/null || die
649 chromium_remove_language_paks
650 popd
651
652 insinto "${CHROMIUM_HOME}"
653 doins out/Release/icudtl.dat || die
654 doins out/Release/*.pak || die
655
656 doins -r out/Release/locales || die
657 doins -r out/Release/resources || die
658
659 newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
660 newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
661
662 doexe out/Release/libffmpegsumo.so || die
663
664 # Install icons and desktop entry.
665 local branding size
666 for size in 16 22 24 32 48 64 128 256 ; do
667 case ${size} in
668 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
669 *) branding="chrome/app/theme/chromium" ;;
670 esac
671 newicon -s ${size} "${branding}/product_logo_${size}.png" \
672 chromium-browser${CHROMIUM_SUFFIX}.png
673 done
674
675 local mime_types="text/html;text/xml;application/xhtml+xml;"
676 mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
677 mime_types+="x-scheme-handler/ftp;" # bug #412185
678 mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
679 make_desktop_entry \
680 chromium-browser${CHROMIUM_SUFFIX} \
681 "Chromium${CHROMIUM_SUFFIX}" \
682 chromium-browser${CHROMIUM_SUFFIX} \
683 "Network;WebBrowser" \
684 "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
685 sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
686
687 # Install GNOME default application entry (bug #303100).
688 if use gnome; then
689 dodir /usr/share/gnome-control-center/default-apps || die
690 insinto /usr/share/gnome-control-center/default-apps
691 newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
692 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
693 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
694 "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
695 fi
696 fi
697
698 readme.gentoo_create_doc
699 }
700
701 pkg_postinst() {
702 fdo-mime_desktop_database_update
703 gnome2_icon_cache_update
704 readme.gentoo_print_elog
705 }