1 |
floppym 12/08/21 23:58:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-22.0.1229.12.ebuild |
5 |
Removed: chromium-22.0.1229.6.ebuild |
6 |
Log: |
7 |
Version bump for dev channel release. |
8 |
|
9 |
(Portage version: 2.2.0_alpha121/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.698 www-client/chromium/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.698&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.698&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.697&r2=1.698 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
21 |
retrieving revision 1.697 |
22 |
retrieving revision 1.698 |
23 |
diff -u -r1.697 -r1.698 |
24 |
--- ChangeLog 17 Aug 2012 21:57:14 -0000 1.697 |
25 |
+++ ChangeLog 21 Aug 2012 23:58:50 -0000 1.698 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/chromium |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.697 2012/08/17 21:57:14 floppym Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.698 2012/08/21 23:58:50 floppym Exp $ |
31 |
+ |
32 |
+*chromium-22.0.1229.12 (21 Aug 2012) |
33 |
+ |
34 |
+ 21 Aug 2012; Mike Gilbert <floppym@g.o> +chromium-22.0.1229.12.ebuild, |
35 |
+ -chromium-22.0.1229.6.ebuild: |
36 |
+ Version bump for dev channel release. |
37 |
|
38 |
*chromium-21.0.1180.81 (17 Aug 2012) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/chromium/chromium-22.0.1229.12.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-22.0.1229.12.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-22.0.1229.12.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: chromium-22.0.1229.12.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-22.0.1229.12.ebuild,v 1.1 2012/08/21 23:58:50 floppym Exp $ |
53 |
|
54 |
EAPI="4" |
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="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2" |
67 |
|
68 |
LICENSE="BSD" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~x86" |
71 |
IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux" |
72 |
|
73 |
RDEPEND="app-arch/bzip2 |
74 |
cups? ( |
75 |
dev-libs/libgcrypt |
76 |
>=net-print/cups-1.3.11 |
77 |
) |
78 |
>=dev-lang/v8-3.11.10.6 |
79 |
dev-libs/dbus-glib |
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 |
gnome? ( >=gnome-base/gconf-2.24.0 ) |
88 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) |
89 |
>=media-libs/alsa-lib-1.0.19 |
90 |
media-libs/flac |
91 |
>=media-libs/libjpeg-turbo-1.2.0-r1 |
92 |
media-libs/libpng |
93 |
>=media-libs/libwebp-0.2.0_rc1 |
94 |
media-libs/speex |
95 |
pulseaudio? ( media-sound/pulseaudio ) |
96 |
sys-fs/udev |
97 |
sys-libs/zlib |
98 |
virtual/libusb:1 |
99 |
x11-libs/gtk+:2 |
100 |
x11-libs/libXinerama |
101 |
x11-libs/libXScrnSaver |
102 |
x11-libs/libXtst |
103 |
kerberos? ( virtual/krb5 ) |
104 |
selinux? ( sys-libs/libselinux )" |
105 |
DEPEND="${RDEPEND} |
106 |
>=dev-lang/nacl-toolchain-newlib-0_p9093 |
107 |
dev-lang/perl |
108 |
dev-lang/yasm |
109 |
dev-python/ply |
110 |
dev-python/simplejson |
111 |
>=dev-util/gperf-3.0.3 |
112 |
>=sys-devel/bison-2.4.3 |
113 |
sys-devel/flex |
114 |
>=sys-devel/make-3.81-r2 |
115 |
virtual/pkgconfig |
116 |
test? ( |
117 |
dev-python/pyftpdlib |
118 |
)" |
119 |
RDEPEND+=" |
120 |
!=www-client/chromium-9999 |
121 |
x11-misc/xdg-utils |
122 |
virtual/ttf-fonts" |
123 |
|
124 |
if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
125 |
EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
126 |
fi |
127 |
|
128 |
pkg_setup() { |
129 |
if [[ "${SLOT}" == "0" ]]; then |
130 |
CHROMIUM_SUFFIX="" |
131 |
else |
132 |
CHROMIUM_SUFFIX="-${SLOT}" |
133 |
fi |
134 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" |
135 |
|
136 |
# Make sure the build system will use the right tools, bug #340795. |
137 |
tc-export AR CC CXX RANLIB |
138 |
|
139 |
# Make sure the build system will use the right python, bug #344367. |
140 |
python_set_active_version 2 |
141 |
python_pkg_setup |
142 |
|
143 |
if ! use selinux; then |
144 |
chromium_suid_sandbox_check_kernel_config |
145 |
fi |
146 |
|
147 |
if use bindist; then |
148 |
elog "bindist enabled: H.264 video support will be disabled." |
149 |
else |
150 |
elog "bindist disabled: Resulting binaries may not be legal to re-distribute." |
151 |
fi |
152 |
} |
153 |
|
154 |
src_prepare() { |
155 |
ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \ |
156 |
native_client/toolchain/linux_x86_newlib || die |
157 |
|
158 |
# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371. |
159 |
sed -i '1i#define OF(x) x' \ |
160 |
third_party/zlib/contrib/minizip/{ioapi,{,un}zip}.h || die |
161 |
|
162 |
# Fix build without NaCl glibc toolchain. |
163 |
epatch "${FILESDIR}/${PN}-ppapi-r0.patch" |
164 |
|
165 |
epatch_user |
166 |
|
167 |
# Remove most bundled libraries. Some are still needed. |
168 |
find third_party -type f \! -iname '*.gyp*' \ |
169 |
\! -path 'third_party/WebKit/*' \ |
170 |
\! -path 'third_party/angle/*' \ |
171 |
\! -path 'third_party/cacheinvalidation/*' \ |
172 |
\! -path 'third_party/cld/*' \ |
173 |
\! -path 'third_party/ffmpeg/*' \ |
174 |
\! -path 'third_party/flac/flac.h' \ |
175 |
\! -path 'third_party/gpsd/*' \ |
176 |
\! -path 'third_party/harfbuzz/*' \ |
177 |
\! -path 'third_party/hunspell/*' \ |
178 |
\! -path 'third_party/hyphen/*' \ |
179 |
\! -path 'third_party/iccjpeg/*' \ |
180 |
\! -path 'third_party/jsoncpp/*' \ |
181 |
\! -path 'third_party/khronos/*' \ |
182 |
\! -path 'third_party/launchpad_translations/*' \ |
183 |
\! -path 'third_party/leveldatabase/*' \ |
184 |
\! -path 'third_party/libjingle/*' \ |
185 |
\! -path 'third_party/libphonenumber/*' \ |
186 |
\! -path 'third_party/libsrtp/*' \ |
187 |
\! -path 'third_party/libusb/libusb.h' \ |
188 |
\! -path 'third_party/libva/*' \ |
189 |
\! -path 'third_party/libvpx/*' \ |
190 |
\! -path 'third_party/libxml/chromium/*' \ |
191 |
\! -path 'third_party/libXNVCtrl/*' \ |
192 |
\! -path 'third_party/libyuv/*' \ |
193 |
\! -path 'third_party/lss/*' \ |
194 |
\! -path 'third_party/mesa/*' \ |
195 |
\! -path 'third_party/modp_b64/*' \ |
196 |
\! -path 'third_party/mongoose/*' \ |
197 |
\! -path 'third_party/npapi/*' \ |
198 |
\! -path 'third_party/openmax/*' \ |
199 |
\! -path 'third_party/ots/*' \ |
200 |
\! -path 'third_party/protobuf/*' \ |
201 |
\! -path 'third_party/qcms/*' \ |
202 |
\! -path 'third_party/re2/*' \ |
203 |
\! -path 'third_party/scons-2.0.1/*' \ |
204 |
\! -path 'third_party/sfntly/*' \ |
205 |
\! -path 'third_party/skia/*' \ |
206 |
\! -path 'third_party/smhasher/*' \ |
207 |
\! -path 'third_party/speex/speex.h' \ |
208 |
\! -path 'third_party/sqlite/*' \ |
209 |
\! -path 'third_party/tlslite/*' \ |
210 |
\! -path 'third_party/trace-viewer/*' \ |
211 |
\! -path 'third_party/undoview/*' \ |
212 |
\! -path 'third_party/v8-i18n/*' \ |
213 |
\! -path 'third_party/webdriver/*' \ |
214 |
\! -path 'third_party/webgl_conformance/*' \ |
215 |
\! -path 'third_party/webrtc/*' \ |
216 |
\! -path 'third_party/zlib/contrib/minizip/*' \ |
217 |
-delete || die |
218 |
|
219 |
local v8_bundled="$(chromium_bundled_v8_version)" |
220 |
local v8_installed="$(chromium_installed_v8_version)" |
221 |
einfo "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}" |
222 |
|
223 |
# Remove bundled v8. |
224 |
find v8 -type f \! -iname '*.gyp*' -delete || die |
225 |
|
226 |
# The implementation files include v8 headers with full path, |
227 |
# like #include "v8/include/v8.h". Make sure the system headers |
228 |
# will be used. |
229 |
# TODO: find a solution that can be upstreamed. |
230 |
rmdir v8/include || die |
231 |
ln -s /usr/include v8/include || die |
232 |
|
233 |
# Make sure the build system will use the right python, bug #344367. |
234 |
# Only convert directories that need it, to save time. |
235 |
python_convert_shebangs -q -r 2 build tools |
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 |
# Disable tcmalloc, it causes problems with e.g. NVIDIA |
246 |
# drivers, bug #413637. |
247 |
myconf+=" -Dlinux_use_tcmalloc=0" |
248 |
|
249 |
# Disable glibc Native Client toolchain, we don't need it (bug #417019). |
250 |
myconf+=" -Ddisable_glibc=1" |
251 |
|
252 |
# Make it possible to remove third_party/adobe. |
253 |
echo > "${T}/flapper_version.h" || die |
254 |
myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" |
255 |
|
256 |
# Use system-provided libraries. |
257 |
# TODO: use_system_ffmpeg |
258 |
# TODO: use_system_hunspell (upstream changes needed). |
259 |
# TODO: use_system_ssl (http://crbug.com/58087). |
260 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
261 |
# TODO: use_system_vpx |
262 |
myconf+=" |
263 |
-Duse_system_bzip2=1 |
264 |
-Duse_system_flac=1 |
265 |
-Duse_system_icu=1 |
266 |
-Duse_system_libevent=1 |
267 |
-Duse_system_libjpeg=1 |
268 |
-Duse_system_libpng=1 |
269 |
-Duse_system_libusb=1 |
270 |
-Duse_system_libwebp=1 |
271 |
-Duse_system_libxml=1 |
272 |
-Duse_system_speex=1 |
273 |
-Duse_system_v8=1 |
274 |
-Duse_system_xdg_utils=1 |
275 |
-Duse_system_yasm=1 |
276 |
-Duse_system_zlib=1" |
277 |
|
278 |
# Optional dependencies. |
279 |
# TODO: linux_link_kerberos, bug #381289. |
280 |
myconf+=" |
281 |
$(gyp_use cups) |
282 |
$(gyp_use gnome use_gconf) |
283 |
$(gyp_use gnome-keyring use_gnome_keyring) |
284 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
285 |
$(gyp_use kerberos) |
286 |
$(gyp_use pulseaudio) |
287 |
$(gyp_use selinux selinux)" |
288 |
|
289 |
# Use explicit library dependencies instead of dlopen. |
290 |
# This makes breakages easier to detect by revdep-rebuild. |
291 |
myconf+=" |
292 |
-Dlinux_link_gsettings=1" |
293 |
|
294 |
if ! use selinux; then |
295 |
# Enable SUID sandbox. |
296 |
myconf+=" |
297 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
298 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
299 |
fi |
300 |
|
301 |
# Never use bundled gold binary. Disable gold linker flags for now. |
302 |
myconf+=" |
303 |
-Dlinux_use_gold_binary=0 |
304 |
-Dlinux_use_gold_flags=0" |
305 |
|
306 |
if ! use bindist; then |
307 |
# Enable H.624 support in bundled ffmpeg. |
308 |
myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome" |
309 |
fi |
310 |
|
311 |
local myarch="$(tc-arch)" |
312 |
if [[ $myarch = amd64 ]] ; then |
313 |
myconf+=" -Dtarget_arch=x64" |
314 |
elif [[ $myarch = x86 ]] ; then |
315 |
myconf+=" -Dtarget_arch=ia32" |
316 |
else |
317 |
die "Failed to determine target arch, got '$myarch'." |
318 |
fi |
319 |
|
320 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
321 |
# Depending on GCC version the warnings are different and we don't want |
322 |
# the build to fail because of that. |
323 |
myconf+=" -Dwerror=" |
324 |
|
325 |
# Avoid CFLAGS problems, bug #352457, bug #390147. |
326 |
if ! use custom-cflags; then |
327 |
replace-flags "-Os" "-O2" |
328 |
strip-flags |
329 |
fi |
330 |
|
331 |
egyp_chromium ${myconf} || die |
332 |
} |
333 |
|
334 |
src_compile() { |
335 |
local test_targets |
336 |
for x in base cacheinvalidation crypto \ |
337 |
googleurl gpu media net printing sql; do |
338 |
test_targets+=" ${x}_unittests" |
339 |
done |
340 |
|
341 |
local make_targets="chrome chromedriver" |
342 |
if ! use selinux; then |
343 |
make_targets+=" chrome_sandbox" |
344 |
fi |
345 |
if use test; then |
346 |
make_targets+=$test_targets |
347 |
fi |
348 |
|
349 |
# See bug #410883 for more info about the .host mess. |
350 |
emake ${make_targets} BUILDTYPE=Release V=1 \ |
351 |
CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \ |
352 |
CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \ |
353 |
LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \ |
354 |
AR.host="$(tc-getAR)" || die |
355 |
|
356 |
pax-mark m out/Release/chrome |
357 |
if use test; then |
358 |
for x in $test_targets; do |
359 |
pax-mark m out/Release/${x} |
360 |
done |
361 |
fi |
362 |
} |
363 |
|
364 |
src_test() { |
365 |
# For more info see bug #350349. |
366 |
local mylocale='en_US.utf8' |
367 |
if ! locale -a | grep -q "$mylocale"; then |
368 |
eerror "${PN} requires ${mylocale} locale for tests" |
369 |
eerror "Please read the following guides for more information:" |
370 |
eerror " http://www.gentoo.org/doc/en/guide-localization.xml" |
371 |
eerror " http://www.gentoo.org/doc/en/utf-8.xml" |
372 |
die "locale ${mylocale} is not supported" |
373 |
fi |
374 |
|
375 |
# For more info see bug #370957. |
376 |
if [[ $UID -eq 0 ]]; then |
377 |
die "Tests must be run as non-root. Please use FEATURES=userpriv." |
378 |
fi |
379 |
|
380 |
runtest() { |
381 |
local cmd=$1 |
382 |
shift |
383 |
local filter="--gtest_filter=$(IFS=:; echo "-${*}")" |
384 |
einfo "${cmd}" "${filter}" |
385 |
LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}" |
386 |
} |
387 |
|
388 |
local excluded_base_unittests=( |
389 |
"ICUStringConversionsTest.*" # bug #350347 |
390 |
"MessagePumpLibeventTest.*" # bug #398591 |
391 |
) |
392 |
runtest out/Release/base_unittests "${excluded_base_unittests[@]}" |
393 |
|
394 |
runtest out/Release/cacheinvalidation_unittests |
395 |
runtest out/Release/crypto_unittests |
396 |
runtest out/Release/googleurl_unittests |
397 |
runtest out/Release/gpu_unittests |
398 |
runtest out/Release/media_unittests |
399 |
|
400 |
local excluded_net_unittests=( |
401 |
"NetUtilTest.IDNToUnicode*" # bug 361885 |
402 |
"NetUtilTest.FormatUrl*" # see above |
403 |
"DnsConfigServiceTest.GetSystemConfig" # bug #394883 |
404 |
"CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 |
405 |
"URLFetcher*" # bug #425764 |
406 |
) |
407 |
runtest out/Release/net_unittests "${excluded_net_unittests[@]}" |
408 |
|
409 |
runtest out/Release/printing_unittests |
410 |
runtest out/Release/sql_unittests |
411 |
} |
412 |
|
413 |
src_install() { |
414 |
exeinto "${CHROMIUM_HOME}" |
415 |
doexe out/Release/chrome || die |
416 |
|
417 |
if ! use selinux; then |
418 |
doexe out/Release/chrome_sandbox || die |
419 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
420 |
fi |
421 |
|
422 |
doexe out/Release/chromedriver || die |
423 |
|
424 |
doexe out/Release/nacl_helper{,_bootstrap} || die |
425 |
insinto "${CHROMIUM_HOME}" |
426 |
doins out/Release/nacl_irt_*.nexe || die |
427 |
doins out/Release/libppGoogleNaClPluginChrome.so || die |
428 |
|
429 |
newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die |
430 |
if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
431 |
sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \ |
432 |
-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die |
433 |
sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \ |
434 |
-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die |
435 |
sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \ |
436 |
-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die |
437 |
fi |
438 |
|
439 |
# It is important that we name the target "chromium-browser", |
440 |
# xdg-utils expect it; bug #355517. |
441 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die |
442 |
# keep the old symlink around for consistency |
443 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die |
444 |
|
445 |
# Allow users to override command-line options, bug #357629. |
446 |
dodir /etc/chromium || die |
447 |
insinto /etc/chromium |
448 |
newins "${FILESDIR}/chromium.default" "default" || die |
449 |
|
450 |
pushd out/Release/locales > /dev/null || die |
451 |
chromium_remove_language_paks |
452 |
popd |
453 |
|
454 |
insinto "${CHROMIUM_HOME}" |
455 |
doins out/Release/*.pak || die |
456 |
|
457 |
doins -r out/Release/locales || die |
458 |
doins -r out/Release/resources || die |
459 |
|
460 |
newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die |
461 |
newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die |
462 |
|
463 |
doexe out/Release/libffmpegsumo.so || die |
464 |
|
465 |
# Install icons and desktop entry. |
466 |
local branding size |
467 |
for size in 16 22 24 32 48 64 128 256 ; do |
468 |
case ${size} in |
469 |
16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
470 |
*) branding="chrome/app/theme/chromium" ;; |
471 |
esac |
472 |
newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
473 |
chromium-browser${CHROMIUM_SUFFIX}.png |
474 |
done |
475 |
|
476 |
local mime_types="text/html;text/xml;application/xhtml+xml;" |
477 |
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
478 |
mime_types+="x-scheme-handler/ftp;" # bug #412185 |
479 |
mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 |
480 |
make_desktop_entry \ |
481 |
chromium-browser${CHROMIUM_SUFFIX} \ |
482 |
"Chromium${CHROMIUM_SUFFIX}" \ |
483 |
chromium-browser${CHROMIUM_SUFFIX} \ |
484 |
"Network;WebBrowser" \ |
485 |
"MimeType=${mime_types}\nStartupWMClass=chromium-browser" |
486 |
sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die |
487 |
|
488 |
# Install GNOME default application entry (bug #303100). |
489 |
if use gnome; then |
490 |
dodir /usr/share/gnome-control-center/default-apps || die |
491 |
insinto /usr/share/gnome-control-center/default-apps |
492 |
newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die |
493 |
if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
494 |
sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ |
495 |
"${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml |
496 |
fi |
497 |
fi |
498 |
} |