1 |
phajdan.jr 11/03/29 14:22:43 |
2 |
|
3 |
Modified: chromium-12.0.712.0.ebuild ChangeLog |
4 |
chromium-9999-r1.ebuild |
5 |
Added: chromium-11.0.696.25.ebuild |
6 |
Removed: chromium-11.0.696.14.ebuild |
7 |
Log: |
8 |
Version bump for beta channel release. Restore check for PaX (bug #301880), handle more MIME types for GNOME (bug #360797 by pacho). Remove old. |
9 |
|
10 |
(Portage version: 2.1.9.42/cvs/Linux i686) |
11 |
|
12 |
Revision Changes Path |
13 |
1.2 www-client/chromium/chromium-12.0.712.0.ebuild |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-12.0.712.0.ebuild?rev=1.2&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-12.0.712.0.ebuild?rev=1.2&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-12.0.712.0.ebuild?r1=1.1&r2=1.2 |
18 |
|
19 |
Index: chromium-12.0.712.0.ebuild |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-12.0.712.0.ebuild,v |
22 |
retrieving revision 1.1 |
23 |
retrieving revision 1.2 |
24 |
diff -u -r1.1 -r1.2 |
25 |
--- chromium-12.0.712.0.ebuild 25 Mar 2011 10:44:53 -0000 1.1 |
26 |
+++ chromium-12.0.712.0.ebuild 29 Mar 2011 14:22:43 -0000 1.2 |
27 |
@@ -1,6 +1,6 @@ |
28 |
# Copyright 1999-2011 Gentoo Foundation |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-12.0.712.0.ebuild,v 1.1 2011/03/25 10:44:53 phajdan.jr Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-12.0.712.0.ebuild,v 1.2 2011/03/29 14:22:43 phajdan.jr Exp $ |
32 |
|
33 |
EAPI="3" |
34 |
PYTHON_DEPEND="2:2.6" |
35 |
@@ -175,6 +175,12 @@ |
36 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
37 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
38 |
|
39 |
+ if host-is-pax; then |
40 |
+ # Prevent the build from failing (bug #301880). The performance |
41 |
+ # difference is very small. |
42 |
+ myconf+=" -Dv8_use_snapshot=0" |
43 |
+ fi |
44 |
+ |
45 |
# Our system ffmpeg should support more codecs than the bundled one |
46 |
# for Chromium. |
47 |
myconf+=" -Dproprietary_codecs=1" |
48 |
@@ -277,8 +283,10 @@ |
49 |
newins chrome/app/theme/chromium/product_logo_${SIZE}.png \ |
50 |
chromium-browser.png || die |
51 |
done |
52 |
+ local mime_types="text/html;text/xml;application/xhtml+xml;" |
53 |
+ mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
54 |
make_desktop_entry chromium-browser "Chromium" chromium-browser \ |
55 |
- "Network;WebBrowser" "MimeType=text/html;text/xml;application/xhtml+xml;" |
56 |
+ "Network;WebBrowser" "MimeType=${mime_types}" |
57 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die |
58 |
|
59 |
# Install GNOME default application entry (bug #303100). |
60 |
|
61 |
|
62 |
|
63 |
1.321 www-client/chromium/ChangeLog |
64 |
|
65 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.321&view=markup |
66 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.321&content-type=text/plain |
67 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.320&r2=1.321 |
68 |
|
69 |
Index: ChangeLog |
70 |
=================================================================== |
71 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
72 |
retrieving revision 1.320 |
73 |
retrieving revision 1.321 |
74 |
diff -u -r1.320 -r1.321 |
75 |
--- ChangeLog 26 Mar 2011 09:31:15 -0000 1.320 |
76 |
+++ ChangeLog 29 Mar 2011 14:22:43 -0000 1.321 |
77 |
@@ -1,6 +1,15 @@ |
78 |
# ChangeLog for www-client/chromium |
79 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
80 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.320 2011/03/26 09:31:15 fauli Exp $ |
81 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.321 2011/03/29 14:22:43 phajdan.jr Exp $ |
82 |
+ |
83 |
+*chromium-11.0.696.25 (29 Mar 2011) |
84 |
+ |
85 |
+ 29 Mar 2011; Pawel Hajdan jr <phajdan.jr@g.o> |
86 |
+ -chromium-11.0.696.14.ebuild, +chromium-11.0.696.25.ebuild, |
87 |
+ chromium-12.0.712.0.ebuild, chromium-9999-r1.ebuild: |
88 |
+ Version bump for beta channel release. Restore check for PaX (bug |
89 |
+ #301880), handle more MIME types for GNOME (bug #360797 by pacho). Remove |
90 |
+ old. |
91 |
|
92 |
26 Mar 2011; Christian Faulhammer <fauli@g.o> |
93 |
chromium-10.0.648.204.ebuild: |
94 |
|
95 |
|
96 |
|
97 |
1.11 www-client/chromium/chromium-9999-r1.ebuild |
98 |
|
99 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.11&view=markup |
100 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.11&content-type=text/plain |
101 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?r1=1.10&r2=1.11 |
102 |
|
103 |
Index: chromium-9999-r1.ebuild |
104 |
=================================================================== |
105 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v |
106 |
retrieving revision 1.10 |
107 |
retrieving revision 1.11 |
108 |
diff -u -r1.10 -r1.11 |
109 |
--- chromium-9999-r1.ebuild 25 Mar 2011 10:44:53 -0000 1.10 |
110 |
+++ chromium-9999-r1.ebuild 29 Mar 2011 14:22:43 -0000 1.11 |
111 |
@@ -1,6 +1,6 @@ |
112 |
# Copyright 1999-2011 Gentoo Foundation |
113 |
# Distributed under the terms of the GNU General Public License v2 |
114 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.10 2011/03/25 10:44:53 phajdan.jr Exp $ |
115 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.11 2011/03/29 14:22:43 phajdan.jr Exp $ |
116 |
|
117 |
EAPI="3" |
118 |
PYTHON_DEPEND="2:2.6" |
119 |
@@ -222,6 +222,12 @@ |
120 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
121 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
122 |
|
123 |
+ if host-is-pax; then |
124 |
+ # Prevent the build from failing (bug #301880). The performance |
125 |
+ # difference is very small. |
126 |
+ myconf+=" -Dv8_use_snapshot=0" |
127 |
+ fi |
128 |
+ |
129 |
# Our system ffmpeg should support more codecs than the bundled one |
130 |
# for Chromium. |
131 |
myconf+=" -Dproprietary_codecs=1" |
132 |
@@ -330,8 +336,10 @@ |
133 |
newins chrome/app/theme/chromium/product_logo_${SIZE}.png \ |
134 |
chromium-browser${SUFFIX}.png || die |
135 |
done |
136 |
- make_desktop_entry chromium-browser${SUFFIX} "Chromium ${SLOT}" chromium-browser${SUFFIX} \ |
137 |
- "Network;WebBrowser" "MimeType=text/html;text/xml;application/xhtml+xml;" |
138 |
+ local mime_types="text/html;text/xml;application/xhtml+xml;" |
139 |
+ mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
140 |
+ make_desktop_entry chromium-browser "Chromium" chromium-browser \ |
141 |
+ "Network;WebBrowser" "MimeType=${mime_types}" |
142 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die |
143 |
|
144 |
# Install GNOME default application entry (bug #303100). |
145 |
|
146 |
|
147 |
|
148 |
1.1 www-client/chromium/chromium-11.0.696.25.ebuild |
149 |
|
150 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-11.0.696.25.ebuild?rev=1.1&view=markup |
151 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-11.0.696.25.ebuild?rev=1.1&content-type=text/plain |
152 |
|
153 |
Index: chromium-11.0.696.25.ebuild |
154 |
=================================================================== |
155 |
# Copyright 1999-2011 Gentoo Foundation |
156 |
# Distributed under the terms of the GNU General Public License v2 |
157 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-11.0.696.25.ebuild,v 1.1 2011/03/29 14:22:43 phajdan.jr Exp $ |
158 |
|
159 |
EAPI="3" |
160 |
PYTHON_DEPEND="2:2.6" |
161 |
|
162 |
inherit eutils fdo-mime flag-o-matic gnome2-utils multilib pax-utils \ |
163 |
portability python toolchain-funcs versionator virtualx |
164 |
|
165 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
166 |
HOMEPAGE="http://chromium.org/" |
167 |
SRC_URI="http://build.chromium.org/official/${P}.tar.bz2" |
168 |
|
169 |
LICENSE="BSD" |
170 |
SLOT="0" |
171 |
KEYWORDS="~amd64 ~arm ~x86" |
172 |
IUSE="cups gnome gnome-keyring" |
173 |
|
174 |
RDEPEND="app-arch/bzip2 |
175 |
dev-libs/dbus-glib |
176 |
>=dev-libs/icu-4.4.1 |
177 |
>=dev-libs/libevent-1.4.13 |
178 |
dev-libs/libxml2[icu] |
179 |
dev-libs/libxslt |
180 |
>=dev-libs/nss-3.12.3 |
181 |
gnome? ( >=gnome-base/gconf-2.24.0 ) |
182 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) |
183 |
>=media-libs/alsa-lib-1.0.19 |
184 |
media-libs/flac |
185 |
virtual/jpeg |
186 |
media-libs/libpng |
187 |
>=media-libs/libvpx-0.9.5 |
188 |
media-libs/speex |
189 |
>=media-video/ffmpeg-0.6_p25767[threads] |
190 |
cups? ( >=net-print/cups-1.3.11 ) |
191 |
sys-libs/pam |
192 |
sys-libs/zlib |
193 |
x11-libs/gtk+:2 |
194 |
x11-libs/libXScrnSaver |
195 |
x11-libs/libXtst" |
196 |
DEPEND="${RDEPEND} |
197 |
dev-lang/perl |
198 |
>=dev-util/gperf-3.0.3 |
199 |
>=dev-util/pkgconfig-0.23 |
200 |
sys-devel/flex |
201 |
>=sys-devel/make-3.81-r2" |
202 |
RDEPEND+=" |
203 |
x11-misc/xdg-utils |
204 |
virtual/ttf-fonts" |
205 |
|
206 |
gyp_use() { |
207 |
if [[ $# -lt 2 ]]; then |
208 |
echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2 |
209 |
return 1 |
210 |
fi |
211 |
if use "$1"; then echo "-D$2=1"; else echo "-D$2=0"; fi |
212 |
} |
213 |
|
214 |
egyp() { |
215 |
set -- build/gyp_chromium --depth=. "${@}" |
216 |
echo "${@}" >&2 |
217 |
"${@}" |
218 |
} |
219 |
|
220 |
pkg_setup() { |
221 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
222 |
|
223 |
# Make sure the build system will use the right tools, bug #340795. |
224 |
tc-export AR CC CXX RANLIB |
225 |
|
226 |
# Make sure the build system will use the right python, bug #344367. |
227 |
python_set_active_version 2 |
228 |
python_pkg_setup |
229 |
|
230 |
# Prevent user problems like bug #299777. |
231 |
if ! grep -q /dev/shm <<< $(get_mounts); then |
232 |
ewarn "You don't have tmpfs mounted at /dev/shm." |
233 |
ewarn "${PN} may fail to start in that configuration." |
234 |
ewarn "Please uncomment the /dev/shm entry in /etc/fstab," |
235 |
ewarn "and run 'mount /dev/shm'." |
236 |
fi |
237 |
if [ `stat -c %a /dev/shm` -ne 1777 ]; then |
238 |
ewarn "/dev/shm does not have correct permissions." |
239 |
ewarn "${PN} may fail to start in that configuration." |
240 |
ewarn "Please run 'chmod 1777 /dev/shm'." |
241 |
fi |
242 |
|
243 |
# Prevent user problems like bug #348235. |
244 |
eshopts_push -s extglob |
245 |
if is-flagq '-g?(gdb)?([1-9])'; then |
246 |
ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)." |
247 |
ewarn "You may experience really long compilation times and/or increased memory usage." |
248 |
ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug." |
249 |
fi |
250 |
eshopts_pop |
251 |
} |
252 |
|
253 |
src_prepare() { |
254 |
# Make sure we don't use bundled libvpx headers. |
255 |
epatch "${FILESDIR}/${PN}-system-vpx-r3.patch" |
256 |
|
257 |
# Remove most bundled libraries. Some are still needed. |
258 |
find third_party -type f \! -iname '*.gyp*' \ |
259 |
\! -path 'third_party/WebKit/*' \ |
260 |
\! -path 'third_party/angle/*' \ |
261 |
\! -path 'third_party/cacheinvalidation/*' \ |
262 |
\! -path 'third_party/cld/*' \ |
263 |
\! -path 'third_party/expat/*' \ |
264 |
\! -path 'third_party/ffmpeg/*' \ |
265 |
\! -path 'third_party/flac/flac.h' \ |
266 |
\! -path 'third_party/gpsd/*' \ |
267 |
\! -path 'third_party/harfbuzz/*' \ |
268 |
\! -path 'third_party/hunspell/*' \ |
269 |
\! -path 'third_party/iccjpeg/*' \ |
270 |
\! -path 'third_party/launchpad_translations/*' \ |
271 |
\! -path 'third_party/libjingle/*' \ |
272 |
\! -path 'third_party/libsrtp/*' \ |
273 |
\! -path 'third_party/libvpx/libvpx.h' \ |
274 |
\! -path 'third_party/libwebp/*' \ |
275 |
\! -path 'third_party/mesa/*' \ |
276 |
\! -path 'third_party/modp_b64/*' \ |
277 |
\! -path 'third_party/npapi/*' \ |
278 |
\! -path 'third_party/openmax/*' \ |
279 |
\! -path 'third_party/ots/*' \ |
280 |
\! -path 'third_party/protobuf/*' \ |
281 |
\! -path 'third_party/skia/*' \ |
282 |
\! -path 'third_party/speex/speex.h' \ |
283 |
\! -path 'third_party/sqlite/*' \ |
284 |
\! -path 'third_party/tcmalloc/*' \ |
285 |
\! -path 'third_party/undoview/*' \ |
286 |
\! -path 'third_party/zlib/contrib/minizip/*' \ |
287 |
-delete || die |
288 |
|
289 |
# Make sure the build system will use the right python, bug #344367. |
290 |
# Only convert directories that need it, to save time. |
291 |
python_convert_shebangs -q -r 2 build tools |
292 |
} |
293 |
|
294 |
src_configure() { |
295 |
local myconf="" |
296 |
|
297 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
298 |
# additions, bug #336871. |
299 |
myconf+=" -Ddisable_sse2=1" |
300 |
|
301 |
# Use system-provided libraries. |
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_ffmpeg=1 |
309 |
-Duse_system_icu=1 |
310 |
-Duse_system_libevent=1 |
311 |
-Duse_system_libjpeg=1 |
312 |
-Duse_system_libpng=1 |
313 |
-Duse_system_libxml=1 |
314 |
-Duse_system_speex=1 |
315 |
-Duse_system_vpx=1 |
316 |
-Duse_system_xdg_utils=1 |
317 |
-Duse_system_zlib=1" |
318 |
|
319 |
# Optional dependencies. |
320 |
myconf+=" |
321 |
$(gyp_use cups use_cups) |
322 |
$(gyp_use gnome use_gconf) |
323 |
$(gyp_use gnome-keyring use_gnome_keyring) |
324 |
$(gyp_use gnome-keyring linux_link_gnome_keyring)" |
325 |
|
326 |
# Enable sandbox. |
327 |
myconf+=" |
328 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
329 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
330 |
|
331 |
if host-is-pax; then |
332 |
# Prevent the build from failing (bug #301880). The performance |
333 |
# difference is very small. |
334 |
myconf+=" -Dv8_use_snapshot=0" |
335 |
fi |
336 |
|
337 |
# Our system ffmpeg should support more codecs than the bundled one |
338 |
# for Chromium. |
339 |
myconf+=" -Dproprietary_codecs=1" |
340 |
|
341 |
# Use target arch detection logic from bug #296917. |
342 |
local myarch="$ABI" |
343 |
[[ $myarch = "" ]] && myarch="$ARCH" |
344 |
|
345 |
if [[ $myarch = amd64 ]] ; then |
346 |
myconf+=" -Dtarget_arch=x64" |
347 |
elif [[ $myarch = x86 ]] ; then |
348 |
myconf+=" -Dtarget_arch=ia32" |
349 |
elif [[ $myarch = arm ]] ; then |
350 |
# TODO: check this again after |
351 |
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed. |
352 |
append-flags -fno-tree-sink |
353 |
|
354 |
myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
355 |
else |
356 |
die "Failed to determine target arch, got '$myarch'." |
357 |
fi |
358 |
|
359 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
360 |
# Depending on GCC version the warnings are different and we don't want |
361 |
# the build to fail because of that. |
362 |
myconf+=" -Dwerror=" |
363 |
|
364 |
# Avoid a build error with -Os, bug #352457. |
365 |
replace-flags "-Os" "-O2" |
366 |
|
367 |
egyp ${myconf} || die |
368 |
} |
369 |
|
370 |
src_compile() { |
371 |
emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die |
372 |
pax-mark m out/Release/chrome |
373 |
if use test; then |
374 |
emake base_unittests BUILDTYPE=Release V=1 || die |
375 |
pax-mark m out/Release/base_unittests |
376 |
fi |
377 |
} |
378 |
|
379 |
src_test() { |
380 |
# For more info see bug #350349. |
381 |
local mylocale='en_US.utf8' |
382 |
if ! locale -a | grep -q "$mylocale"; then |
383 |
eerror "${PN} requires ${mylocale} locale for tests" |
384 |
eerror "Please read the following guides for more information:" |
385 |
eerror " http://www.gentoo.org/doc/en/guide-localization.xml" |
386 |
eerror " http://www.gentoo.org/doc/en/utf-8.xml" |
387 |
die "locale ${mylocale} is not supported" |
388 |
fi |
389 |
|
390 |
# For more info see bug #350347. |
391 |
LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/base_unittests virtualmake \ |
392 |
'--gtest_filter=-ICUStringConversionsTest.*' |
393 |
} |
394 |
|
395 |
src_install() { |
396 |
exeinto "${CHROMIUM_HOME}" |
397 |
doexe out/Release/chrome |
398 |
doexe out/Release/chrome_sandbox || die |
399 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
400 |
newexe "${FILESDIR}"/chromium-launcher-r1.sh chromium-launcher.sh || die |
401 |
|
402 |
# It is important that we name the target "chromium-browser", |
403 |
# xdg-utils expect it; bug #355517. |
404 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser || die |
405 |
# keep the old symlink around for consistency |
406 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die |
407 |
|
408 |
insinto "${CHROMIUM_HOME}" |
409 |
doins out/Release/chrome.pak || die |
410 |
doins out/Release/resources.pak || die |
411 |
|
412 |
doins -r out/Release/locales || die |
413 |
doins -r out/Release/resources || die |
414 |
|
415 |
newman out/Release/chrome.1 chromium.1 || die |
416 |
newman out/Release/chrome.1 chromium-browser.1 || die |
417 |
|
418 |
# Chromium looks for these in its folder |
419 |
# See media_posix.cc and base_paths_linux.cc |
420 |
dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die |
421 |
dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die |
422 |
dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die |
423 |
|
424 |
# Install icons and desktop entry. |
425 |
for SIZE in 16 22 24 32 48 64 128 256 ; do |
426 |
insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps |
427 |
newins chrome/app/theme/chromium/product_logo_${SIZE}.png \ |
428 |
chromium-browser.png || die |
429 |
done |
430 |
local mime_types="text/html;text/xml;application/xhtml+xml;" |
431 |
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
432 |
make_desktop_entry chromium-browser "Chromium" chromium-browser \ |
433 |
"Network;WebBrowser" "MimeType=${mime_types}" |
434 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die |
435 |
|
436 |
# Install GNOME default application entry (bug #303100). |
437 |
if use gnome; then |
438 |
dodir /usr/share/gnome-control-center/default-apps || die |
439 |
insinto /usr/share/gnome-control-center/default-apps |
440 |
doins "${FILESDIR}"/chromium-browser.xml || die |
441 |
fi |
442 |
} |
443 |
|
444 |
pkg_preinst() { |
445 |
gnome2_icon_savelist |
446 |
} |
447 |
|
448 |
pkg_postinst() { |
449 |
fdo-mime_desktop_database_update |
450 |
gnome2_icon_cache_update |
451 |
|
452 |
# For more info see bugs #292201 and bug #352263. |
453 |
elog "Depending on your desktop environment, you may need" |
454 |
elog "to install additional packages to get icons on the Downloads page." |
455 |
elog |
456 |
elog "For KDE, the required package is kde-base/oxygen-icons." |
457 |
elog |
458 |
elog "For other desktop environments, try one of the following:" |
459 |
elog " - x11-themes/gnome-icon-theme" |
460 |
elog " - x11-themes/xfce4-icon-theme" |
461 |
} |
462 |
|
463 |
pkg_postrm() { |
464 |
gnome2_icon_cache_update |
465 |
} |