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