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