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