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