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-26.0.1410.19.ebuild chromium-9999-r1.ebuild chromium-27.0.1423.0.ebuild ChangeLog chromium-26.0.1410.5.ebuild
Date: Fri, 01 Mar 2013 02:15:37
Message-Id: 20130301021533.566BD2171F@flycatcher.gentoo.org
1 floppym 13/03/01 02:15:33
2
3 Modified: chromium-9999-r1.ebuild chromium-27.0.1423.0.ebuild
4 ChangeLog
5 Added: chromium-26.0.1410.19.ebuild
6 Removed: chromium-26.0.1410.5.ebuild
7 Log:
8 Beta channel bump. Modify chromium-launcher to source all files in /etc/chromium, bug 459734.
9
10 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
11
12 Revision Changes Path
13 1.173 www-client/chromium/chromium-9999-r1.ebuild
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.173&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.173&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?r1=1.172&r2=1.173
18
19 Index: chromium-9999-r1.ebuild
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v
22 retrieving revision 1.172
23 retrieving revision 1.173
24 diff -u -r1.172 -r1.173
25 --- chromium-9999-r1.ebuild 27 Feb 2013 22:52:17 -0000 1.172
26 +++ chromium-9999-r1.ebuild 1 Mar 2013 02:15:33 -0000 1.173
27 @@ -1,6 +1,6 @@
28 # Copyright 1999-2013 Gentoo Foundation
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.172 2013/02/27 22:52:17 phajdan.jr Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.173 2013/03/01 02:15:33 floppym Exp $
32
33 EAPI="5"
34 PYTHON_COMPAT=( python{2_6,2_7} )
35 @@ -502,7 +502,7 @@
36 doins out/Release/libppGoogleNaClPluginChrome.so || die
37 fi
38
39 - newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
40 + newexe "${FILESDIR}"/chromium-launcher-r3.sh chromium-launcher.sh || die
41 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
42 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \
43 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
44
45
46
47 1.4 www-client/chromium/chromium-27.0.1423.0.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-27.0.1423.0.ebuild?rev=1.4&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-27.0.1423.0.ebuild?rev=1.4&content-type=text/plain
51 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-27.0.1423.0.ebuild?r1=1.3&r2=1.4
52
53 Index: chromium-27.0.1423.0.ebuild
54 ===================================================================
55 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-27.0.1423.0.ebuild,v
56 retrieving revision 1.3
57 retrieving revision 1.4
58 diff -u -r1.3 -r1.4
59 --- chromium-27.0.1423.0.ebuild 28 Feb 2013 20:03:19 -0000 1.3
60 +++ chromium-27.0.1423.0.ebuild 1 Mar 2013 02:15:33 -0000 1.4
61 @@ -1,6 +1,6 @@
62 # Copyright 1999-2013 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-27.0.1423.0.ebuild,v 1.3 2013/02/28 20:03:19 phajdan.jr Exp $
65 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-27.0.1423.0.ebuild,v 1.4 2013/03/01 02:15:33 floppym Exp $
66
67 EAPI="5"
68 PYTHON_COMPAT=( python{2_6,2_7} )
69 @@ -442,7 +442,7 @@
70 doins out/Release/libppGoogleNaClPluginChrome.so || die
71 fi
72
73 - newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die
74 + newexe "${FILESDIR}"/chromium-launcher-r3.sh chromium-launcher.sh || die
75 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
76 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \
77 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
78
79
80
81 1.820 www-client/chromium/ChangeLog
82
83 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.820&view=markup
84 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.820&content-type=text/plain
85 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.819&r2=1.820
86
87 Index: ChangeLog
88 ===================================================================
89 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
90 retrieving revision 1.819
91 retrieving revision 1.820
92 diff -u -r1.819 -r1.820
93 --- ChangeLog 1 Mar 2013 01:01:48 -0000 1.819
94 +++ ChangeLog 1 Mar 2013 02:15:33 -0000 1.820
95 @@ -1,6 +1,14 @@
96 # ChangeLog for www-client/chromium
97 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
98 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.819 2013/03/01 01:01:48 floppym Exp $
99 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.820 2013/03/01 02:15:33 floppym Exp $
100 +
101 +*chromium-26.0.1410.19 (01 Mar 2013)
102 +
103 + 01 Mar 2013; Mike Gilbert <floppym@g.o> +chromium-26.0.1410.19.ebuild,
104 + +files/chromium-launcher-r3.sh, -chromium-26.0.1410.5.ebuild,
105 + chromium-27.0.1423.0.ebuild, chromium-9999-r1.ebuild, files/chromium.default:
106 + Beta channel bump. Modify chromium-launcher to source all files in
107 + /etc/chromium, bug 459734.
108
109 01 Mar 2013; Mike Gilbert <floppym@g.o>
110 -files/chromium-alignment-r0.patch, -files/chromium-arm-r0.patch,
111
112
113
114 1.1 www-client/chromium/chromium-26.0.1410.19.ebuild
115
116 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-26.0.1410.19.ebuild?rev=1.1&view=markup
117 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-26.0.1410.19.ebuild?rev=1.1&content-type=text/plain
118
119 Index: chromium-26.0.1410.19.ebuild
120 ===================================================================
121 # Copyright 1999-2013 Gentoo Foundation
122 # Distributed under the terms of the GNU General Public License v2
123 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-26.0.1410.19.ebuild,v 1.1 2013/03/01 02:15:33 floppym Exp $
124
125 EAPI="5"
126 PYTHON_COMPAT=( python{2_6,2_7} )
127
128 CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
129 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
130 sv sw ta te th tr uk vi zh_CN zh_TW"
131
132 inherit chromium eutils flag-o-matic multilib \
133 pax-utils portability python-any-r1 toolchain-funcs versionator virtualx
134
135 DESCRIPTION="Open-source version of Google Chrome web browser"
136 HOMEPAGE="http://chromium.org/"
137 SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz"
138
139 LICENSE="BSD"
140 SLOT="0"
141 KEYWORDS="~amd64 ~x86"
142 IUSE="bindist cups gnome gnome-keyring gps kerberos pulseaudio selinux system-ffmpeg tcmalloc"
143
144 # Native Client binaries are compiled with different set of flags, bug #452066.
145 QA_FLAGS_IGNORED=".*\.nexe"
146
147 RDEPEND="app-accessibility/speech-dispatcher
148 app-arch/bzip2
149 cups? (
150 dev-libs/libgcrypt
151 >=net-print/cups-1.3.11
152 )
153 >=dev-lang/v8-3.16.11.1:=
154 >=dev-libs/elfutils-0.149
155 dev-libs/expat
156 >=dev-libs/icu-49.1.1-r1:=
157 =dev-libs/jsoncpp-0.5.0
158 >=dev-libs/libevent-1.4.13
159 dev-libs/libxml2[icu]
160 dev-libs/libxslt
161 dev-libs/nspr
162 >=dev-libs/nss-3.12.3
163 dev-libs/protobuf
164 dev-libs/re2
165 gnome? ( >=gnome-base/gconf-2.24.0 )
166 gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 )
167 gps? ( >=sci-geosciences/gpsd-3.7[shm] )
168 >=media-libs/alsa-lib-1.0.19
169 media-libs/flac
170 media-libs/harfbuzz
171 >=media-libs/libjpeg-turbo-1.2.0-r1
172 media-libs/libpng
173 >=media-libs/libwebp-0.2.0_rc1
174 !arm? ( !x86? ( media-libs/mesa[gles2] ) )
175 media-libs/opus
176 media-libs/speex
177 pulseaudio? ( media-sound/pulseaudio )
178 system-ffmpeg? ( >=media-video/ffmpeg-1.0[opus] )
179 >=net-libs/libsrtp-1.4.4_p20121108
180 sys-apps/dbus
181 sys-apps/pciutils
182 sys-libs/zlib[minizip]
183 virtual/udev
184 virtual/libusb:1
185 x11-libs/gtk+:2
186 x11-libs/libXinerama
187 x11-libs/libXScrnSaver
188 x11-libs/libXtst
189 kerberos? ( virtual/krb5 )
190 selinux? (
191 sec-policy/selinux-chromium
192 sys-libs/libselinux
193 )"
194 DEPEND="${RDEPEND}
195 ${PYTHON_DEPS}
196 !arm? (
197 >=dev-lang/nacl-toolchain-newlib-0_p9093
198 dev-lang/yasm
199 )
200 dev-lang/perl
201 dev-python/ply
202 dev-python/simplejson
203 >=dev-util/gperf-3.0.3
204 sys-apps/hwids
205 >=sys-devel/bison-2.4.3
206 sys-devel/flex
207 >=sys-devel/make-3.81-r2
208 virtual/pkgconfig
209 test? ( dev-python/pyftpdlib )"
210 RDEPEND+="
211 !=www-client/chromium-9999
212 x11-misc/xdg-utils
213 virtual/ttf-fonts"
214
215 if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
216 EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
217 fi
218
219 pkg_setup() {
220 if [[ "${SLOT}" == "0" ]]; then
221 CHROMIUM_SUFFIX=""
222 else
223 CHROMIUM_SUFFIX="-${SLOT}"
224 fi
225 CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
226
227 # Make sure the build system will use the right python, bug #344367.
228 python-any-r1_pkg_setup
229
230 if ! use selinux; then
231 chromium_suid_sandbox_check_kernel_config
232 fi
233
234 if use bindist && ! use system-ffmpeg; then
235 elog "bindist enabled: H.264 video support will be disabled."
236 fi
237 if ! use bindist; then
238 elog "bindist disabled: Resulting binaries may not be legal to re-distribute."
239 fi
240 }
241
242 src_prepare() {
243 if ! use arm; then
244 mkdir -p out/Release/obj/gen/sdk/toolchain || die
245 cp -a /usr/$(get_libdir)/nacl-toolchain-newlib \
246 out/Release/obj/gen/sdk/toolchain/linux_x86_newlib || die
247 touch out/Release/obj/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die
248 fi
249
250 # Fix build without NaCl glibc toolchain.
251 epatch "${FILESDIR}/${PN}-ppapi-r0.patch"
252
253 epatch "${FILESDIR}/${PN}-gpsd-r0.patch"
254 epatch "${FILESDIR}/${PN}-system-v8-r0.patch"
255 epatch "${FILESDIR}/${PN}-system-ffmpeg-r2.patch"
256
257 epatch_user
258
259 # Remove most bundled libraries. Some are still needed.
260 find third_party -type f \! -iname '*.gyp*' \
261 \! -path 'third_party/WebKit/*' \
262 \! -path 'third_party/angle/*' \
263 \! -path 'third_party/cacheinvalidation/*' \
264 \! -path 'third_party/cld/*' \
265 \! -path 'third_party/cros_system_api/*' \
266 \! -path 'third_party/ffmpeg/*' \
267 \! -path 'third_party/flot/*' \
268 \! -path 'third_party/hunspell/*' \
269 \! -path 'third_party/hyphen/*' \
270 \! -path 'third_party/iccjpeg/*' \
271 \! -path 'third_party/jstemplate/*' \
272 \! -path 'third_party/khronos/*' \
273 \! -path 'third_party/leveldatabase/*' \
274 \! -path 'third_party/libjingle/*' \
275 \! -path 'third_party/libphonenumber/*' \
276 \! -path 'third_party/libvpx/*' \
277 \! -path 'third_party/libxml/chromium/*' \
278 \! -path 'third_party/libXNVCtrl/*' \
279 \! -path 'third_party/libyuv/*' \
280 \! -path 'third_party/lss/*' \
281 \! -path 'third_party/mesa/*' \
282 \! -path 'third_party/modp_b64/*' \
283 \! -path 'third_party/mongoose/*' \
284 \! -path 'third_party/mt19937ar/*' \
285 \! -path 'third_party/npapi/*' \
286 \! -path 'third_party/openmax/*' \
287 \! -path 'third_party/ots/*' \
288 \! -path 'third_party/pywebsocket/*' \
289 \! -path 'third_party/qcms/*' \
290 \! -path 'third_party/sfntly/*' \
291 \! -path 'third_party/skia/*' \
292 \! -path 'third_party/smhasher/*' \
293 \! -path 'third_party/sqlite/*' \
294 \! -path 'third_party/tcmalloc/*' \
295 \! -path 'third_party/tlslite/*' \
296 \! -path 'third_party/trace-viewer/*' \
297 \! -path 'third_party/undoview/*' \
298 \! -path 'third_party/v8-i18n/*' \
299 \! -path 'third_party/webdriver/*' \
300 \! -path 'third_party/webrtc/*' \
301 \! -path 'third_party/widevine/*' \
302 \! -path 'third_party/x86inc/*' \
303 -delete || die
304
305 # Remove bundled v8.
306 find v8 -type f \! -iname '*.gyp*' -delete || die
307 }
308
309 src_configure() {
310 local myconf=""
311
312 # Never tell the build system to "enable" SSE2, it has a few unexpected
313 # additions, bug #336871.
314 myconf+=" -Ddisable_sse2=1"
315
316 # Optional tcmalloc. Note it causes problems with e.g. NVIDIA
317 # drivers, bug #413637.
318 myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)"
319
320 # Disable glibc Native Client toolchain, we don't need it (bug #417019).
321 myconf+=" -Ddisable_glibc=1"
322
323 # TODO: also build with pnacl
324 myconf+=" -Ddisable_pnacl=1"
325
326 # It would be awkward for us to tar the toolchain and get it untarred again
327 # during the build.
328 myconf+=" -Ddisable_newlib_untar=1"
329
330 # Make it possible to remove third_party/adobe.
331 echo > "${T}/flapper_version.h" || die
332 myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
333
334 # Use system-provided libraries.
335 # TODO: use_system_hunspell (upstream changes needed).
336 # TODO: use_system_ssl (http://crbug.com/58087).
337 # TODO: use_system_sqlite (http://crbug.com/22208).
338 # TODO: use_system_libvpx (http://crbug.com/174287).
339 myconf+="
340 -Duse_system_bzip2=1
341 -Duse_system_flac=1
342 -Duse_system_harfbuzz=1
343 -Duse_system_icu=1
344 -Duse_system_jsoncpp=1
345 -Duse_system_libevent=1
346 -Duse_system_libjpeg=1
347 -Duse_system_libpng=1
348 -Duse_system_libsrtp=1
349 -Duse_system_libusb=1
350 -Duse_system_libwebp=1
351 -Duse_system_libxml=1
352 -Duse_system_minizip=1
353 -Duse_system_nspr=1
354 -Duse_system_opus=1
355 -Duse_system_protobuf=1
356 -Duse_system_re2=1
357 -Duse_system_speex=1
358 -Duse_system_v8=1
359 -Duse_system_xdg_utils=1
360 -Duse_system_zlib=1
361 $(gyp_use system-ffmpeg use_system_ffmpeg)"
362
363 # TODO: Use system mesa on x86, bug #457130 .
364 if ! use x86 && ! use arm; then
365 myconf+="
366 -Duse_system_mesa=1"
367 fi
368
369 # TODO: patch gyp so that this arm conditional is not needed.
370 if ! use arm; then
371 myconf+="
372 -Duse_system_yasm=1"
373 fi
374
375 # Optional dependencies.
376 # TODO: linux_link_kerberos, bug #381289.
377 myconf+="
378 $(gyp_use cups)
379 $(gyp_use gnome use_gconf)
380 $(gyp_use gnome-keyring use_gnome_keyring)
381 $(gyp_use gnome-keyring linux_link_gnome_keyring)
382 $(gyp_use gps linux_use_libgps)
383 $(gyp_use gps linux_link_libgps)
384 $(gyp_use kerberos)
385 $(gyp_use pulseaudio)
386 $(gyp_use selinux selinux)"
387
388 # Use explicit library dependencies instead of dlopen.
389 # This makes breakages easier to detect by revdep-rebuild.
390 myconf+="
391 -Dlinux_link_gsettings=1
392 -Dlinux_link_libpci=1
393 -Dlinux_link_libspeechd=1"
394
395 # TODO: use the file at run time instead of effectively compiling it in.
396 myconf+="
397 -Dusb_ids_path=/usr/share/misc/usb.ids"
398
399 if ! use selinux; then
400 # Enable SUID sandbox.
401 myconf+="
402 -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox
403 -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
404 fi
405
406 # Never use bundled gold binary. Disable gold linker flags for now.
407 myconf+="
408 -Dlinux_use_gold_binary=0
409 -Dlinux_use_gold_flags=0"
410
411 # Always support proprietary codecs.
412 myconf+=" -Dproprietary_codecs=1"
413
414 if ! use bindist && ! use system-ffmpeg; then
415 # Enable H.624 support in bundled ffmpeg.
416 myconf+=" -Dffmpeg_branding=Chrome"
417 fi
418
419 # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
420 # Note: these are for Gentoo use ONLY. For your own distribution,
421 # please get your own set of keys. Feel free to contact chromium@g.o
422 # for more info.
423 myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
424 -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
425 -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
426
427 local myarch="$(tc-arch)"
428 if [[ $myarch = amd64 ]] ; then
429 myconf+=" -Dtarget_arch=x64"
430 elif [[ $myarch = x86 ]] ; then
431 myconf+=" -Dtarget_arch=ia32"
432 elif [[ $myarch = arm ]] ; then
433 # TODO: re-enable NaCl (NativeClient).
434 myconf+=" -Dtarget_arch=arm
435 -Dsysroot=
436 -Darmv7=0
437 -Darm_neon=0
438 -Ddisable_nacl=1"
439 else
440 die "Failed to determine target arch, got '$myarch'."
441 fi
442
443 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
444 # Depending on GCC version the warnings are different and we don't want
445 # the build to fail because of that.
446 myconf+=" -Dwerror="
447
448 # Avoid CFLAGS problems, bug #352457, bug #390147.
449 if ! use custom-cflags; then
450 replace-flags "-Os" "-O2"
451 strip-flags
452 fi
453
454 # Make sure the build system will use the right tools, bug #340795.
455 tc-export AR CC CXX RANLIB
456
457 # Tools for building programs to be executed on the build system, bug #410883.
458 tc-export_build_env BUILD_AR BUILD_CC BUILD_CXX
459
460 egyp_chromium ${myconf} || die
461 }
462
463 src_compile() {
464 local test_targets
465 for x in base cacheinvalidation crypto \
466 googleurl gpu media net printing sql; do
467 test_targets+=" ${x}_unittests"
468 done
469
470 local make_targets="chrome chromedriver"
471 if ! use selinux; then
472 make_targets+=" chrome_sandbox"
473 fi
474 if use test; then
475 make_targets+=$test_targets
476 fi
477
478 # See bug #410883 for more info about the .host mess.
479 emake ${make_targets} BUILDTYPE=Release V=1 \
480 CC.host="${BUILD_CC}" CFLAGS.host="${BUILD_CFLAGS}" \
481 CXX.host="${BUILD_CXX}" CXXFLAGS.host="${BUILD_CXXFLAGS}" \
482 LINK.host="${BUILD_CXX}" LDFLAGS.host="${BUILD_LDFLAGS}" \
483 AR.host="${BUILD_AR}" || die
484
485 pax-mark m out/Release/chrome
486 if use test; then
487 for x in $test_targets; do
488 pax-mark m out/Release/${x}
489 done
490 fi
491 }
492
493 src_test() {
494 # For more info see bug #350349.
495 local mylocale='en_US.utf8'
496 if ! locale -a | grep -q "$mylocale"; then
497 eerror "${PN} requires ${mylocale} locale for tests"
498 eerror "Please read the following guides for more information:"
499 eerror " http://www.gentoo.org/doc/en/guide-localization.xml"
500 eerror " http://www.gentoo.org/doc/en/utf-8.xml"
501 die "locale ${mylocale} is not supported"
502 fi
503
504 # For more info see bug #370957.
505 if [[ $UID -eq 0 ]]; then
506 die "Tests must be run as non-root. Please use FEATURES=userpriv."
507 fi
508
509 runtest() {
510 local cmd=$1
511 shift
512 local filter="--gtest_filter=$(IFS=:; echo "-${*}")"
513 einfo "${cmd}" "${filter}"
514 LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}"
515 }
516
517 local excluded_base_unittests=(
518 "ICUStringConversionsTest.*" # bug #350347
519 "MessagePumpLibeventTest.*" # bug #398591
520 )
521 runtest out/Release/base_unittests "${excluded_base_unittests[@]}"
522
523 runtest out/Release/cacheinvalidation_unittests
524 runtest out/Release/crypto_unittests
525 runtest out/Release/googleurl_unittests
526 runtest out/Release/gpu_unittests
527
528 # TODO: re-enable when we get the test data in a separate tarball.
529 # runtest out/Release/media_unittests
530
531 # local excluded_net_unittests=(
532 # "NetUtilTest.IDNToUnicode*" # bug 361885
533 # "NetUtilTest.FormatUrl*" # see above
534 # "DnsConfigServiceTest.GetSystemConfig" # bug #394883
535 # "CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269
536 # "URLFetcher*" # bug #425764
537 # "HTTPSOCSPTest.*" # bug #426630
538 # "HTTPSEVCRLSetTest.*" # see above
539 # "HTTPSCRLSetTest.*" # see above
540 #)
541 # runtest out/Release/net_unittests "${excluded_net_unittests[@]}"
542
543 runtest out/Release/printing_unittests
544 runtest out/Release/sql_unittests
545 }
546
547 src_install() {
548 exeinto "${CHROMIUM_HOME}"
549 doexe out/Release/chrome || die
550
551 if ! use selinux; then
552 doexe out/Release/chrome_sandbox || die
553 fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox"
554 fi
555
556 doexe out/Release/chromedriver || die
557
558 if ! use arm; then
559 doexe out/Release/nacl_helper{,_bootstrap} || die
560 insinto "${CHROMIUM_HOME}"
561 doins out/Release/nacl_irt_*.nexe || die
562 doins out/Release/libppGoogleNaClPluginChrome.so || die
563 fi
564
565 newexe "${FILESDIR}"/chromium-launcher-r3.sh chromium-launcher.sh || die
566 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
567 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \
568 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
569 sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \
570 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
571 sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \
572 -i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die
573 fi
574
575 # It is important that we name the target "chromium-browser",
576 # xdg-utils expect it; bug #355517.
577 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
578 # keep the old symlink around for consistency
579 dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
580
581 # Allow users to override command-line options, bug #357629.
582 dodir /etc/chromium || die
583 insinto /etc/chromium
584 newins "${FILESDIR}/chromium.default" "default" || die
585
586 pushd out/Release/locales > /dev/null || die
587 chromium_remove_language_paks
588 popd
589
590 insinto "${CHROMIUM_HOME}"
591 doins out/Release/*.pak || die
592
593 doins -r out/Release/locales || die
594 doins -r out/Release/resources || die
595
596 newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
597 newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
598
599 if ! use system-ffmpeg; then
600 doexe out/Release/libffmpegsumo.so || die
601 fi
602
603 # Install icons and desktop entry.
604 local branding size
605 for size in 16 22 24 32 48 64 128 256 ; do
606 case ${size} in
607 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
608 *) branding="chrome/app/theme/chromium" ;;
609 esac
610 newicon -s ${size} "${branding}/product_logo_${size}.png" \
611 chromium-browser${CHROMIUM_SUFFIX}.png
612 done
613
614 local mime_types="text/html;text/xml;application/xhtml+xml;"
615 mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
616 mime_types+="x-scheme-handler/ftp;" # bug #412185
617 mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
618 make_desktop_entry \
619 chromium-browser${CHROMIUM_SUFFIX} \
620 "Chromium${CHROMIUM_SUFFIX}" \
621 chromium-browser${CHROMIUM_SUFFIX} \
622 "Network;WebBrowser" \
623 "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
624 sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
625
626 # Install GNOME default application entry (bug #303100).
627 if use gnome; then
628 dodir /usr/share/gnome-control-center/default-apps || die
629 insinto /usr/share/gnome-control-center/default-apps
630 newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
631 if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
632 sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
633 "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
634 fi
635 fi
636 }