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