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