Gentoo Archives: gentoo-commits

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