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