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