1 |
phajdan.jr 12/09/27 11:24:50 |
2 |
|
3 |
Modified: ChangeLog chromium-9999-r1.ebuild |
4 |
Added: chromium-23.0.1271.6.ebuild |
5 |
Removed: chromium-23.0.1262.0.ebuild |
6 |
Log: |
7 |
Dev channel bump. Drop unneeded dependency on dbus-glib, bug #434346 by Hans. Remove old. |
8 |
|
9 |
(Portage version: 2.1.11.9/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.721 www-client/chromium/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.721&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.721&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.720&r2=1.721 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
21 |
retrieving revision 1.720 |
22 |
retrieving revision 1.721 |
23 |
diff -u -r1.720 -r1.721 |
24 |
--- ChangeLog 27 Sep 2012 02:31:37 -0000 1.720 |
25 |
+++ ChangeLog 27 Sep 2012 11:24:50 -0000 1.721 |
26 |
@@ -1,6 +1,15 @@ |
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.720 2012/09/27 02:31:37 floppym Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.721 2012/09/27 11:24:50 phajdan.jr Exp $ |
31 |
+ |
32 |
+*chromium-23.0.1271.6 (27 Sep 2012) |
33 |
+ |
34 |
+ 27 Sep 2012; Pawel Hajdan jr <phajdan.jr@g.o> |
35 |
+ +files/chromium-dbus-glib-r0.patch, -chromium-23.0.1262.0.ebuild, |
36 |
+ +chromium-23.0.1271.6.ebuild, chromium-9999-r1.ebuild, |
37 |
+ +files/chromium-system-icu-r0.patch: |
38 |
+ Dev channel bump. Drop unneeded dependency on dbus-glib, bug #434346 by Hans. |
39 |
+ Remove old. |
40 |
|
41 |
*chromium-22.0.1229.91 (27 Sep 2012) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.136 www-client/chromium/chromium-9999-r1.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.136&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?rev=1.136&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild?r1=1.135&r2=1.136 |
51 |
|
52 |
Index: chromium-9999-r1.ebuild |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v |
55 |
retrieving revision 1.135 |
56 |
retrieving revision 1.136 |
57 |
diff -u -r1.135 -r1.136 |
58 |
--- chromium-9999-r1.ebuild 23 Sep 2012 12:37:33 -0000 1.135 |
59 |
+++ chromium-9999-r1.ebuild 27 Sep 2012 11:24:50 -0000 1.136 |
60 |
@@ -1,6 +1,6 @@ |
61 |
# Copyright 1999-2012 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.135 2012/09/23 12:37:33 phajdan.jr Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999-r1.ebuild,v 1.136 2012/09/27 11:24:50 phajdan.jr Exp $ |
65 |
|
66 |
EAPI="4" |
67 |
PYTHON_DEPEND="2:2.6" |
68 |
@@ -27,7 +27,6 @@ |
69 |
>=net-print/cups-1.3.11 |
70 |
) |
71 |
>=dev-lang/v8-3.11.10.6 |
72 |
- dev-libs/dbus-glib |
73 |
>=dev-libs/elfutils-0.149 |
74 |
dev-libs/expat |
75 |
>=dev-libs/icu-49.1.1-r1 |
76 |
|
77 |
|
78 |
|
79 |
1.1 www-client/chromium/chromium-23.0.1271.6.ebuild |
80 |
|
81 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-23.0.1271.6.ebuild?rev=1.1&view=markup |
82 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-23.0.1271.6.ebuild?rev=1.1&content-type=text/plain |
83 |
|
84 |
Index: chromium-23.0.1271.6.ebuild |
85 |
=================================================================== |
86 |
# Copyright 1999-2012 Gentoo Foundation |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-23.0.1271.6.ebuild,v 1.1 2012/09/27 11:24:50 phajdan.jr Exp $ |
89 |
|
90 |
EAPI="4" |
91 |
PYTHON_DEPEND="2:2.6" |
92 |
|
93 |
CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he |
94 |
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 |
95 |
sv sw ta te th tr uk vi zh_CN zh_TW" |
96 |
|
97 |
inherit chromium eutils flag-o-matic multilib \ |
98 |
pax-utils portability python toolchain-funcs versionator virtualx |
99 |
|
100 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
101 |
HOMEPAGE="http://chromium.org/" |
102 |
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2" |
103 |
|
104 |
LICENSE="BSD" |
105 |
SLOT="0" |
106 |
KEYWORDS="~amd64 ~x86" |
107 |
IUSE="bindist cups gnome gnome-keyring kerberos pulseaudio selinux" |
108 |
|
109 |
RDEPEND="app-arch/bzip2 |
110 |
cups? ( |
111 |
dev-libs/libgcrypt |
112 |
>=net-print/cups-1.3.11 |
113 |
) |
114 |
>=dev-lang/v8-3.11.10.6 |
115 |
>=dev-libs/elfutils-0.149 |
116 |
dev-libs/expat |
117 |
>=dev-libs/icu-49.1.1-r1 |
118 |
>=dev-libs/libevent-1.4.13 |
119 |
dev-libs/libxml2[icu] |
120 |
dev-libs/libxslt |
121 |
>=dev-libs/nss-3.12.3 |
122 |
gnome? ( >=gnome-base/gconf-2.24.0 ) |
123 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) |
124 |
>=media-libs/alsa-lib-1.0.19 |
125 |
media-libs/flac |
126 |
>=media-libs/libjpeg-turbo-1.2.0-r1 |
127 |
media-libs/libpng |
128 |
>=media-libs/libwebp-0.2.0_rc1 |
129 |
pulseaudio? ( media-sound/pulseaudio ) |
130 |
sys-fs/udev |
131 |
virtual/libusb:1 |
132 |
x11-libs/gtk+:2 |
133 |
x11-libs/libXinerama |
134 |
x11-libs/libXScrnSaver |
135 |
x11-libs/libXtst |
136 |
kerberos? ( virtual/krb5 ) |
137 |
selinux? ( sys-libs/libselinux )" |
138 |
DEPEND="${RDEPEND} |
139 |
dev-lang/perl |
140 |
dev-lang/yasm |
141 |
dev-python/ply |
142 |
dev-python/simplejson |
143 |
>=dev-util/gperf-3.0.3 |
144 |
>=sys-devel/bison-2.4.3 |
145 |
sys-devel/flex |
146 |
>=sys-devel/make-3.81-r2 |
147 |
virtual/pkgconfig |
148 |
test? ( dev-python/pyftpdlib )" |
149 |
RDEPEND+=" |
150 |
!=www-client/chromium-9999 |
151 |
x11-misc/xdg-utils |
152 |
virtual/ttf-fonts" |
153 |
|
154 |
if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
155 |
EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
156 |
fi |
157 |
|
158 |
pkg_setup() { |
159 |
if [[ "${SLOT}" == "0" ]]; then |
160 |
CHROMIUM_SUFFIX="" |
161 |
else |
162 |
CHROMIUM_SUFFIX="-${SLOT}" |
163 |
fi |
164 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" |
165 |
|
166 |
# Make sure the build system will use the right tools, bug #340795. |
167 |
tc-export AR CC CXX RANLIB |
168 |
|
169 |
# Make sure the build system will use the right python, bug #344367. |
170 |
python_set_active_version 2 |
171 |
python_pkg_setup |
172 |
|
173 |
if ! use selinux; then |
174 |
chromium_suid_sandbox_check_kernel_config |
175 |
fi |
176 |
|
177 |
if use bindist; then |
178 |
elog "bindist enabled: H.264 video support will be disabled." |
179 |
else |
180 |
elog "bindist disabled: Resulting binaries may not be legal to re-distribute." |
181 |
fi |
182 |
} |
183 |
|
184 |
src_prepare() { |
185 |
# if ! use arm; then |
186 |
# ln -s /usr/$(get_libdir)/nacl-toolchain-newlib \ |
187 |
# native_client/toolchain/linux_x86_newlib || die |
188 |
# fi |
189 |
|
190 |
# zlib-1.2.5.1-r1 renames the OF macro in zconf.h, bug 383371. |
191 |
# sed -i '1i#define OF(x) x' \ |
192 |
# third_party/zlib/contrib/minizip/{ioapi,{,un}zip}.h || die |
193 |
|
194 |
# Fix build without NaCl glibc toolchain. |
195 |
# epatch "${FILESDIR}/${PN}-ppapi-r0.patch" |
196 |
|
197 |
# Fix unnecessary dependency on dbus-glib, bug #434346. |
198 |
epatch "${FILESDIR}/${PN}-dbus-glib-r0.patch" |
199 |
|
200 |
# Fix build with system ICU. |
201 |
epatch "${FILESDIR}/${PN}-system-icu-r0.patch" |
202 |
|
203 |
# Missing gyp files in tarball. |
204 |
# https://code.google.com/p/chromium/issues/detail?id=144823 |
205 |
# if [[ -e chrome/test/data/nacl/nacl_test_data.gyp ]]; then |
206 |
# die "tarball fixed, please remove workaround" |
207 |
# fi |
208 |
|
209 |
# mkdir -p chrome/test/data/nacl |
210 |
# cat > chrome/test/data/nacl/nacl_test_data.gyp <<-EOF |
211 |
# { |
212 |
# 'targets': [ |
213 |
# { |
214 |
# 'target_name': 'nacl_tests', |
215 |
# 'type': 'none', |
216 |
# }, |
217 |
# ], |
218 |
# } |
219 |
# EOF |
220 |
|
221 |
epatch_user |
222 |
|
223 |
# Remove most bundled libraries. Some are still needed. |
224 |
find third_party -type f \! -iname '*.gyp*' \ |
225 |
\! -path 'third_party/WebKit/*' \ |
226 |
\! -path 'third_party/angle/*' \ |
227 |
\! -path 'third_party/cacheinvalidation/*' \ |
228 |
\! -path 'third_party/cld/*' \ |
229 |
\! -path 'third_party/ffmpeg/*' \ |
230 |
\! -path 'third_party/flac/flac.h' \ |
231 |
\! -path 'third_party/flot/*' \ |
232 |
\! -path 'third_party/gpsd/*' \ |
233 |
\! -path 'third_party/harfbuzz/*' \ |
234 |
\! -path 'third_party/hunspell/*' \ |
235 |
\! -path 'third_party/hyphen/*' \ |
236 |
\! -path 'third_party/iccjpeg/*' \ |
237 |
\! -path 'third_party/jsoncpp/*' \ |
238 |
\! -path 'third_party/khronos/*' \ |
239 |
\! -path 'third_party/launchpad_translations/*' \ |
240 |
\! -path 'third_party/leveldatabase/*' \ |
241 |
\! -path 'third_party/libjingle/*' \ |
242 |
\! -path 'third_party/libphonenumber/*' \ |
243 |
\! -path 'third_party/libsrtp/*' \ |
244 |
\! -path 'third_party/libusb/libusb.h' \ |
245 |
\! -path 'third_party/libva/*' \ |
246 |
\! -path 'third_party/libvpx/*' \ |
247 |
\! -path 'third_party/libxml/chromium/*' \ |
248 |
\! -path 'third_party/libXNVCtrl/*' \ |
249 |
\! -path 'third_party/libyuv/*' \ |
250 |
\! -path 'third_party/lss/*' \ |
251 |
\! -path 'third_party/mesa/*' \ |
252 |
\! -path 'third_party/modp_b64/*' \ |
253 |
\! -path 'third_party/mongoose/*' \ |
254 |
\! -path 'third_party/mt19937ar/*' \ |
255 |
\! -path 'third_party/npapi/*' \ |
256 |
\! -path 'third_party/openmax/*' \ |
257 |
\! -path 'third_party/ots/*' \ |
258 |
\! -path 'third_party/protobuf/*' \ |
259 |
\! -path 'third_party/qcms/*' \ |
260 |
\! -path 'third_party/re2/*' \ |
261 |
\! -path 'third_party/scons-2.0.1/*' \ |
262 |
\! -path 'third_party/sfntly/*' \ |
263 |
\! -path 'third_party/skia/*' \ |
264 |
\! -path 'third_party/smhasher/*' \ |
265 |
\! -path 'third_party/speex/*' \ |
266 |
\! -path 'third_party/sqlite/*' \ |
267 |
\! -path 'third_party/tlslite/*' \ |
268 |
\! -path 'third_party/trace-viewer/*' \ |
269 |
\! -path 'third_party/undoview/*' \ |
270 |
\! -path 'third_party/v8-i18n/*' \ |
271 |
\! -path 'third_party/webdriver/*' \ |
272 |
\! -path 'third_party/webgl_conformance/*' \ |
273 |
\! -path 'third_party/webrtc/*' \ |
274 |
\! -path 'third_party/zlib/*' \ |
275 |
-delete || die |
276 |
|
277 |
local v8_bundled="$(chromium_bundled_v8_version)" |
278 |
local v8_installed="$(chromium_installed_v8_version)" |
279 |
einfo "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}" |
280 |
|
281 |
# Remove bundled v8. |
282 |
find v8 -type f \! -iname '*.gyp*' -delete || die |
283 |
|
284 |
# The implementation files include v8 headers with full path, |
285 |
# like #include "v8/include/v8.h". Make sure the system headers |
286 |
# will be used. |
287 |
# TODO: find a solution that can be upstreamed. |
288 |
rmdir v8/include || die |
289 |
ln -s /usr/include v8/include || die |
290 |
|
291 |
# Make sure the build system will use the right python, bug #344367. |
292 |
# Only convert directories that need it, to save time. |
293 |
python_convert_shebangs -q -r 2 build tools |
294 |
} |
295 |
|
296 |
src_configure() { |
297 |
local myconf="" |
298 |
|
299 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
300 |
# additions, bug #336871. |
301 |
myconf+=" -Ddisable_sse2=1" |
302 |
|
303 |
# Disable tcmalloc, it causes problems with e.g. NVIDIA |
304 |
# drivers, bug #413637. |
305 |
myconf+=" -Dlinux_use_tcmalloc=0" |
306 |
|
307 |
# TODO: re-enable nacl after fixing build errors, see |
308 |
# http://forums.gentoo.org/viewtopic-t-937222-highlight-chromium.html |
309 |
myconf+=" -Ddisable_nacl=1" |
310 |
|
311 |
# Disable glibc Native Client toolchain, we don't need it (bug #417019). |
312 |
myconf+=" -Ddisable_glibc=1" |
313 |
|
314 |
# Make it possible to remove third_party/adobe. |
315 |
echo > "${T}/flapper_version.h" || die |
316 |
myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" |
317 |
|
318 |
# Use system-provided libraries. |
319 |
# TODO: use_system_ffmpeg |
320 |
# TODO: use_system_hunspell (upstream changes needed). |
321 |
# TODO: use_system_speex (needs additional shims, bug #432748). |
322 |
# TODO: use_system_ssl (http://crbug.com/58087). |
323 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
324 |
# TODO: use_system_vpx |
325 |
# TODO: use_system_zlib (forked, bug #432746). |
326 |
myconf+=" |
327 |
-Duse_system_bzip2=1 |
328 |
-Duse_system_flac=1 |
329 |
-Duse_system_icu=1 |
330 |
-Duse_system_libevent=1 |
331 |
-Duse_system_libjpeg=1 |
332 |
-Duse_system_libpng=1 |
333 |
-Duse_system_libusb=1 |
334 |
-Duse_system_libwebp=1 |
335 |
-Duse_system_libxml=1 |
336 |
-Duse_system_speex=0 |
337 |
-Duse_system_v8=1 |
338 |
-Duse_system_xdg_utils=1 |
339 |
-Duse_system_yasm=1 |
340 |
-Duse_system_zlib=0" |
341 |
|
342 |
# Optional dependencies. |
343 |
# TODO: linux_link_kerberos, bug #381289. |
344 |
myconf+=" |
345 |
$(gyp_use cups) |
346 |
$(gyp_use gnome use_gconf) |
347 |
$(gyp_use gnome-keyring use_gnome_keyring) |
348 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
349 |
$(gyp_use kerberos) |
350 |
$(gyp_use pulseaudio) |
351 |
$(gyp_use selinux selinux)" |
352 |
|
353 |
# Use explicit library dependencies instead of dlopen. |
354 |
# This makes breakages easier to detect by revdep-rebuild. |
355 |
myconf+=" |
356 |
-Dlinux_link_gsettings=1" |
357 |
|
358 |
if ! use selinux; then |
359 |
# Enable SUID sandbox. |
360 |
myconf+=" |
361 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
362 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
363 |
fi |
364 |
|
365 |
# Never use bundled gold binary. Disable gold linker flags for now. |
366 |
myconf+=" |
367 |
-Dlinux_use_gold_binary=0 |
368 |
-Dlinux_use_gold_flags=0" |
369 |
|
370 |
if ! use bindist; then |
371 |
# Enable H.624 support in bundled ffmpeg. |
372 |
myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=Chrome" |
373 |
fi |
374 |
|
375 |
local myarch="$(tc-arch)" |
376 |
if [[ $myarch = amd64 ]] ; then |
377 |
myconf+=" -Dtarget_arch=x64" |
378 |
elif [[ $myarch = x86 ]] ; then |
379 |
myconf+=" -Dtarget_arch=ia32" |
380 |
elif [[ $myarch = arm ]] ; then |
381 |
# TODO: re-enable NaCl (NativeClient). |
382 |
myconf+=" -Dtarget_arch=arm |
383 |
-Darm_neon=0 |
384 |
-Ddisable_nacl=1" |
385 |
else |
386 |
die "Failed to determine target arch, got '$myarch'." |
387 |
fi |
388 |
|
389 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
390 |
# Depending on GCC version the warnings are different and we don't want |
391 |
# the build to fail because of that. |
392 |
myconf+=" -Dwerror=" |
393 |
|
394 |
# Avoid CFLAGS problems, bug #352457, bug #390147. |
395 |
if ! use custom-cflags; then |
396 |
replace-flags "-Os" "-O2" |
397 |
strip-flags |
398 |
fi |
399 |
|
400 |
egyp_chromium ${myconf} || die |
401 |
} |
402 |
|
403 |
src_compile() { |
404 |
local test_targets |
405 |
for x in base cacheinvalidation crypto \ |
406 |
googleurl gpu media net printing sql; do |
407 |
test_targets+=" ${x}_unittests" |
408 |
done |
409 |
|
410 |
local make_targets="chrome chromedriver" |
411 |
if ! use selinux; then |
412 |
make_targets+=" chrome_sandbox" |
413 |
fi |
414 |
if use test; then |
415 |
make_targets+=$test_targets |
416 |
fi |
417 |
|
418 |
# See bug #410883 for more info about the .host mess. |
419 |
emake ${make_targets} BUILDTYPE=Release V=1 \ |
420 |
CC.host="$(tc-getCC)" CFLAGS.host="${CFLAGS}" \ |
421 |
CXX.host="$(tc-getCXX)" CXXFLAGS.host="${CXXFLAGS}" \ |
422 |
LINK.host="$(tc-getCXX)" LDFLAGS.host="${LDFLAGS}" \ |
423 |
AR.host="$(tc-getAR)" || 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 |
) |
461 |
runtest out/Release/base_unittests "${excluded_base_unittests[@]}" |
462 |
|
463 |
runtest out/Release/cacheinvalidation_unittests |
464 |
runtest out/Release/crypto_unittests |
465 |
runtest out/Release/googleurl_unittests |
466 |
runtest out/Release/gpu_unittests |
467 |
runtest out/Release/media_unittests |
468 |
|
469 |
local excluded_net_unittests=( |
470 |
"NetUtilTest.IDNToUnicode*" # bug 361885 |
471 |
"NetUtilTest.FormatUrl*" # see above |
472 |
"DnsConfigServiceTest.GetSystemConfig" # bug #394883 |
473 |
"CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 |
474 |
"URLFetcher*" # bug #425764 |
475 |
"HTTPSOCSPTest.*" # bug #426630 |
476 |
"HTTPSEVCRLSetTest.*" # see above |
477 |
"HTTPSCRLSetTest.*" # see above |
478 |
) |
479 |
runtest out/Release/net_unittests "${excluded_net_unittests[@]}" |
480 |
|
481 |
runtest out/Release/printing_unittests |
482 |
runtest out/Release/sql_unittests |
483 |
} |
484 |
|
485 |
src_install() { |
486 |
exeinto "${CHROMIUM_HOME}" |
487 |
doexe out/Release/chrome || die |
488 |
|
489 |
if ! use selinux; then |
490 |
doexe out/Release/chrome_sandbox || die |
491 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
492 |
fi |
493 |
|
494 |
doexe out/Release/chromedriver || die |
495 |
|
496 |
# if ! use arm; then |
497 |
# doexe out/Release/nacl_helper{,_bootstrap} || die |
498 |
# insinto "${CHROMIUM_HOME}" |
499 |
# doins out/Release/nacl_irt_*.nexe || die |
500 |
# doins out/Release/libppGoogleNaClPluginChrome.so || die |
501 |
# fi |
502 |
|
503 |
newexe "${FILESDIR}"/chromium-launcher-r2.sh chromium-launcher.sh || die |
504 |
if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
505 |
sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" \ |
506 |
-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die |
507 |
sed "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" \ |
508 |
-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die |
509 |
sed "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" \ |
510 |
-i "${ED}"/"${CHROMIUM_HOME}"/chromium-launcher.sh || die |
511 |
fi |
512 |
|
513 |
# It is important that we name the target "chromium-browser", |
514 |
# xdg-utils expect it; bug #355517. |
515 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die |
516 |
# keep the old symlink around for consistency |
517 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die |
518 |
|
519 |
# Allow users to override command-line options, bug #357629. |
520 |
dodir /etc/chromium || die |
521 |
insinto /etc/chromium |
522 |
newins "${FILESDIR}/chromium.default" "default" || die |
523 |
|
524 |
pushd out/Release/locales > /dev/null || die |
525 |
chromium_remove_language_paks |
526 |
popd |
527 |
|
528 |
insinto "${CHROMIUM_HOME}" |
529 |
doins out/Release/*.pak || die |
530 |
|
531 |
doins -r out/Release/locales || die |
532 |
doins -r out/Release/resources || die |
533 |
|
534 |
newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die |
535 |
newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die |
536 |
|
537 |
doexe out/Release/libffmpegsumo.so || die |
538 |
|
539 |
# Install icons and desktop entry. |
540 |
local branding size |
541 |
for size in 16 22 24 32 48 64 128 256 ; do |
542 |
case ${size} in |
543 |
16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
544 |
*) branding="chrome/app/theme/chromium" ;; |
545 |
esac |
546 |
newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
547 |
chromium-browser${CHROMIUM_SUFFIX}.png |
548 |
done |
549 |
|
550 |
local mime_types="text/html;text/xml;application/xhtml+xml;" |
551 |
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
552 |
mime_types+="x-scheme-handler/ftp;" # bug #412185 |
553 |
mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 |
554 |
make_desktop_entry \ |
555 |
chromium-browser${CHROMIUM_SUFFIX} \ |
556 |
"Chromium${CHROMIUM_SUFFIX}" \ |
557 |
chromium-browser${CHROMIUM_SUFFIX} \ |
558 |
"Network;WebBrowser" \ |
559 |
"MimeType=${mime_types}\nStartupWMClass=chromium-browser" |
560 |
sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die |
561 |
|
562 |
# Install GNOME default application entry (bug #303100). |
563 |
if use gnome; then |
564 |
dodir /usr/share/gnome-control-center/default-apps || die |
565 |
insinto /usr/share/gnome-control-center/default-apps |
566 |
newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die |
567 |
if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
568 |
sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ |
569 |
"${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml |
570 |
fi |
571 |
fi |
572 |
} |