1 |
floppym 13/07/31 00:04:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-28.0.1500.95.ebuild |
5 |
Log: |
6 |
Stable channel bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.921 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.921&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.921&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.920&r2=1.921 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.920 |
21 |
retrieving revision 1.921 |
22 |
diff -u -r1.920 -r1.921 |
23 |
--- ChangeLog 30 Jul 2013 04:22:18 -0000 1.920 |
24 |
+++ ChangeLog 31 Jul 2013 00:04:05 -0000 1.921 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-client/chromium |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.920 2013/07/30 04:22:18 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.921 2013/07/31 00:04:05 floppym Exp $ |
30 |
+ |
31 |
+*chromium-28.0.1500.95 (31 Jul 2013) |
32 |
+ |
33 |
+ 31 Jul 2013; Mike Gilbert <floppym@g.o> +chromium-28.0.1500.95.ebuild: |
34 |
+ Stable channel bump. |
35 |
|
36 |
30 Jul 2013; Pawel Hajdan jr <phajdan.jr@g.o> |
37 |
chromium-28.0.1500.89.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/chromium/chromium-28.0.1500.95.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-28.0.1500.95.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-28.0.1500.95.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: chromium-28.0.1500.95.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-28.0.1500.95.ebuild,v 1.1 2013/07/31 00:04:05 floppym Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
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-any-r1 toolchain-funcs versionator virtualx |
61 |
|
62 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
63 |
HOMEPAGE="http://chromium.org/" |
64 |
SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.xz |
65 |
test? ( https://commondatastorage.googleapis.com/chromium-browser-official/${P}-testdata.tar.xz )" |
66 |
|
67 |
LICENSE="BSD" |
68 |
SLOT="0" |
69 |
KEYWORDS="~amd64 ~arm ~x86" |
70 |
IUSE="bindist cups gnome gnome-keyring gps kerberos pulseaudio selinux +system-ffmpeg system-sqlite tcmalloc" |
71 |
|
72 |
# Native Client binaries are compiled with different set of flags, bug #452066. |
73 |
QA_FLAGS_IGNORED=".*\.nexe" |
74 |
|
75 |
RDEPEND="app-accessibility/speech-dispatcher:= |
76 |
app-arch/bzip2:= |
77 |
app-arch/snappy:= |
78 |
system-sqlite? ( dev-db/sqlite:3 ) |
79 |
cups? ( |
80 |
dev-libs/libgcrypt:= |
81 |
>=net-print/cups-1.3.11:= |
82 |
) |
83 |
>=dev-lang/v8-3.17.6:= |
84 |
=dev-lang/v8-3.18* |
85 |
>=dev-libs/elfutils-0.149 |
86 |
dev-libs/expat:= |
87 |
>=dev-libs/icu-49.1.1-r1:= |
88 |
>=dev-libs/jsoncpp-0.5.0-r1:= |
89 |
>=dev-libs/libevent-1.4.13:= |
90 |
dev-libs/libxml2:=[icu] |
91 |
dev-libs/libxslt:= |
92 |
dev-libs/nspr:= |
93 |
>=dev-libs/nss-3.12.3:= |
94 |
dev-libs/protobuf:= |
95 |
dev-libs/re2:= |
96 |
gnome? ( >=gnome-base/gconf-2.24.0:= ) |
97 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2:= ) |
98 |
gps? ( >=sci-geosciences/gpsd-3.7:=[shm] ) |
99 |
>=media-libs/alsa-lib-1.0.19:= |
100 |
media-libs/flac:= |
101 |
media-libs/harfbuzz:=[icu(+)] |
102 |
>=media-libs/libjpeg-turbo-1.2.0-r1:= |
103 |
media-libs/libpng:0= |
104 |
media-libs/libvpx:= |
105 |
>=media-libs/libwebp-0.2.0_rc1:= |
106 |
!arm? ( !x86? ( >=media-libs/mesa-9.1:=[gles2] ) ) |
107 |
media-libs/opus:= |
108 |
media-libs/speex:= |
109 |
pulseaudio? ( media-sound/pulseaudio:= ) |
110 |
system-ffmpeg? ( || ( |
111 |
>=media-video/ffmpeg-1.0:=[opus] |
112 |
>=media-video/libav-9.5:=[opus] |
113 |
) ) |
114 |
sys-apps/dbus:= |
115 |
sys-apps/pciutils:= |
116 |
sys-libs/zlib:=[minizip] |
117 |
virtual/udev |
118 |
virtual/libusb:1= |
119 |
x11-libs/gtk+:2= |
120 |
x11-libs/libXinerama:= |
121 |
x11-libs/libXScrnSaver:= |
122 |
x11-libs/libXtst:= |
123 |
kerberos? ( virtual/krb5 ) |
124 |
selinux? ( sec-policy/selinux-chromium )" |
125 |
DEPEND="${RDEPEND} |
126 |
${PYTHON_DEPS} |
127 |
!arm? ( |
128 |
>=dev-lang/nacl-toolchain-newlib-0_p9093 |
129 |
<=dev-lang/nacl-toolchain-newlib-0_p10915 |
130 |
dev-lang/yasm |
131 |
) |
132 |
dev-lang/perl |
133 |
dev-python/ply |
134 |
dev-python/simplejson |
135 |
>=dev-util/gperf-3.0.3 |
136 |
sys-apps/hwids |
137 |
>=sys-devel/bison-2.4.3 |
138 |
sys-devel/flex |
139 |
>=sys-devel/make-3.81-r2 |
140 |
virtual/pkgconfig |
141 |
test? ( dev-python/pyftpdlib )" |
142 |
RDEPEND+=" |
143 |
!=www-client/chromium-9999 |
144 |
x11-misc/xdg-utils |
145 |
virtual/ttf-fonts" |
146 |
|
147 |
if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
148 |
EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
149 |
fi |
150 |
|
151 |
pkg_setup() { |
152 |
if [[ "${SLOT}" == "0" ]]; then |
153 |
CHROMIUM_SUFFIX="" |
154 |
else |
155 |
CHROMIUM_SUFFIX="-${SLOT}" |
156 |
fi |
157 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" |
158 |
|
159 |
# Make sure the build system will use the right python, bug #344367. |
160 |
python-any-r1_pkg_setup |
161 |
|
162 |
chromium_suid_sandbox_check_kernel_config |
163 |
|
164 |
if use bindist && ! use system-ffmpeg; then |
165 |
elog "bindist enabled: H.264 video support will be disabled." |
166 |
fi |
167 |
if ! use bindist; then |
168 |
elog "bindist disabled: Resulting binaries may not be legal to re-distribute." |
169 |
fi |
170 |
} |
171 |
|
172 |
src_prepare() { |
173 |
if ! use arm; then |
174 |
mkdir -p out/Release/obj/gen/sdk/toolchain || die |
175 |
# Do not preserve SELinux context, bug #460892 . |
176 |
cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \ |
177 |
out/Release/obj/gen/sdk/toolchain/linux_x86_newlib || die |
178 |
touch out/Release/obj/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die |
179 |
fi |
180 |
|
181 |
epatch "${FILESDIR}/${PN}-gpsd-r0.patch" |
182 |
epatch "${FILESDIR}/${PN}-system-ffmpeg-r5.patch" |
183 |
|
184 |
# Fix build with harfbuzz-0.9.18, bug #472416 . |
185 |
epatch "${FILESDIR}/${PN}-system-harfbuzz-r0.patch" |
186 |
|
187 |
epatch "${FILESDIR}/${PN}-nss-3.15.patch" |
188 |
|
189 |
epatch "${FILESDIR}/chromium-bug471198.patch" |
190 |
|
191 |
epatch_user |
192 |
|
193 |
# Remove most bundled libraries. Some are still needed. |
194 |
find third_party -type f \! -iname '*.gyp*' \ |
195 |
\! -path 'third_party/WebKit/*' \ |
196 |
\! -path 'third_party/angle/*' \ |
197 |
\! -path 'third_party/cacheinvalidation/*' \ |
198 |
\! -path 'third_party/cld/*' \ |
199 |
\! -path 'third_party/cros_system_api/*' \ |
200 |
\! -path 'third_party/ffmpeg/*' \ |
201 |
\! -path 'third_party/flot/*' \ |
202 |
\! -path 'third_party/hunspell/*' \ |
203 |
\! -path 'third_party/hyphen/*' \ |
204 |
\! -path 'third_party/iccjpeg/*' \ |
205 |
\! -path 'third_party/jstemplate/*' \ |
206 |
\! -path 'third_party/khronos/*' \ |
207 |
\! -path 'third_party/leveldatabase/*' \ |
208 |
\! -path 'third_party/libjingle/*' \ |
209 |
\! -path 'third_party/libphonenumber/*' \ |
210 |
\! -path 'third_party/libsrtp/*' \ |
211 |
\! -path 'third_party/libxml/chromium/*' \ |
212 |
\! -path 'third_party/libXNVCtrl/*' \ |
213 |
\! -path 'third_party/libyuv/*' \ |
214 |
\! -path 'third_party/lss/*' \ |
215 |
\! -path 'third_party/mesa/*' \ |
216 |
\! -path 'third_party/modp_b64/*' \ |
217 |
\! -path 'third_party/mongoose/*' \ |
218 |
\! -path 'third_party/mt19937ar/*' \ |
219 |
\! -path 'third_party/npapi/*' \ |
220 |
\! -path 'third_party/openmax/*' \ |
221 |
\! -path 'third_party/ots/*' \ |
222 |
\! -path 'third_party/pywebsocket/*' \ |
223 |
\! -path 'third_party/qcms/*' \ |
224 |
\! -path 'third_party/sfntly/*' \ |
225 |
\! -path 'third_party/skia/*' \ |
226 |
\! -path 'third_party/smhasher/*' \ |
227 |
\! -path 'third_party/sqlite/*' \ |
228 |
\! -path 'third_party/tcmalloc/*' \ |
229 |
\! -path 'third_party/tlslite/*' \ |
230 |
\! -path 'third_party/trace-viewer/*' \ |
231 |
\! -path 'third_party/undoview/*' \ |
232 |
\! -path 'third_party/v8-i18n/*' \ |
233 |
\! -path 'third_party/webdriver/*' \ |
234 |
\! -path 'third_party/webrtc/*' \ |
235 |
\! -path 'third_party/widevine/*' \ |
236 |
\! -path 'third_party/x86inc/*' \ |
237 |
\! -path 'third_party/zlib/google/*' \ |
238 |
-delete || die |
239 |
|
240 |
# Remove bundled v8. |
241 |
find v8 -type f \! -iname '*.gyp*' -delete || die |
242 |
} |
243 |
|
244 |
src_configure() { |
245 |
local myconf="" |
246 |
|
247 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
248 |
# additions, bug #336871. |
249 |
myconf+=" -Ddisable_sse2=1" |
250 |
|
251 |
# Optional tcmalloc. Note it causes problems with e.g. NVIDIA |
252 |
# drivers, bug #413637. |
253 |
myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)" |
254 |
|
255 |
# Disable glibc Native Client toolchain, we don't need it (bug #417019). |
256 |
myconf+=" -Ddisable_glibc=1" |
257 |
|
258 |
# TODO: also build with pnacl |
259 |
myconf+=" -Ddisable_pnacl=1" |
260 |
|
261 |
# It would be awkward for us to tar the toolchain and get it untarred again |
262 |
# during the build. |
263 |
myconf+=" -Ddisable_newlib_untar=1" |
264 |
|
265 |
# Make it possible to remove third_party/adobe. |
266 |
echo > "${T}/flapper_version.h" || die |
267 |
myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" |
268 |
|
269 |
# Use system-provided libraries. |
270 |
# TODO: use_system_hunspell (upstream changes needed). |
271 |
# TODO: use_system_libsrtp (bug #459932). |
272 |
# TODO: use_system_ssl (http://crbug.com/58087). |
273 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
274 |
myconf+=" |
275 |
-Duse_system_bzip2=1 |
276 |
-Duse_system_flac=1 |
277 |
-Duse_system_harfbuzz=1 |
278 |
-Duse_system_icu=1 |
279 |
-Duse_system_jsoncpp=1 |
280 |
-Duse_system_libevent=1 |
281 |
-Duse_system_libjpeg=1 |
282 |
-Duse_system_libpng=1 |
283 |
-Duse_system_libusb=1 |
284 |
-Duse_system_libvpx=1 |
285 |
-Duse_system_libwebp=1 |
286 |
-Duse_system_libxml=1 |
287 |
-Duse_system_libxslt=1 |
288 |
-Duse_system_minizip=1 |
289 |
-Duse_system_nspr=1 |
290 |
-Duse_system_opus=1 |
291 |
-Duse_system_protobuf=1 |
292 |
-Duse_system_re2=1 |
293 |
-Duse_system_snappy=1 |
294 |
-Duse_system_speex=1 |
295 |
-Duse_system_v8=1 |
296 |
-Duse_system_xdg_utils=1 |
297 |
-Duse_system_zlib=1 |
298 |
$(gyp_use system-ffmpeg use_system_ffmpeg)" |
299 |
|
300 |
# TODO: Use system mesa on x86, bug #457130 . |
301 |
if ! use x86 && ! use arm; then |
302 |
myconf+=" |
303 |
-Duse_system_mesa=1" |
304 |
fi |
305 |
|
306 |
# TODO: patch gyp so that this arm conditional is not needed. |
307 |
if ! use arm; then |
308 |
myconf+=" |
309 |
-Duse_system_yasm=1" |
310 |
fi |
311 |
|
312 |
# TODO: re-enable on vp9 libvpx release (http://crbug.com/174287). |
313 |
myconf+=" |
314 |
-Dmedia_use_libvpx=0" |
315 |
|
316 |
# Optional dependencies. |
317 |
# TODO: linux_link_kerberos, bug #381289. |
318 |
myconf+=" |
319 |
$(gyp_use cups) |
320 |
$(gyp_use gnome use_gconf) |
321 |
$(gyp_use gnome-keyring use_gnome_keyring) |
322 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
323 |
$(gyp_use gps linux_use_libgps) |
324 |
$(gyp_use gps linux_link_libgps) |
325 |
$(gyp_use kerberos) |
326 |
$(gyp_use pulseaudio)" |
327 |
|
328 |
if use system-sqlite; then |
329 |
elog "Enabling system sqlite. WebSQL - http://www.w3.org/TR/webdatabase/" |
330 |
elog "will not work. Please report sites broken by this" |
331 |
elog "to https://bugs.gentoo.org" |
332 |
myconf+=" |
333 |
-Duse_system_sqlite=1 |
334 |
-Denable_sql_database=0" |
335 |
fi |
336 |
|
337 |
# Use explicit library dependencies instead of dlopen. |
338 |
# This makes breakages easier to detect by revdep-rebuild. |
339 |
myconf+=" |
340 |
-Dlinux_link_gsettings=1 |
341 |
-Dlinux_link_libpci=1 |
342 |
-Dlinux_link_libspeechd=1" |
343 |
|
344 |
if has_version '>=app-accessibility/speech-dispatcher-0.8'; then |
345 |
myconf+=" -Dlibspeechd_h_prefix=speech-dispatcher/" |
346 |
else |
347 |
myconf+=" -Dlibspeechd_h_prefix=" |
348 |
fi |
349 |
|
350 |
# TODO: use the file at run time instead of effectively compiling it in. |
351 |
myconf+=" |
352 |
-Dusb_ids_path=/usr/share/misc/usb.ids" |
353 |
|
354 |
# Enable SUID sandbox. |
355 |
myconf+=" |
356 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
357 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
358 |
|
359 |
# Never use bundled gold binary. Disable gold linker flags for now. |
360 |
myconf+=" |
361 |
-Dlinux_use_gold_binary=0 |
362 |
-Dlinux_use_gold_flags=0" |
363 |
|
364 |
# Always support proprietary codecs. |
365 |
myconf+=" -Dproprietary_codecs=1" |
366 |
|
367 |
if ! use bindist && ! use system-ffmpeg; then |
368 |
# Enable H.624 support in bundled ffmpeg. |
369 |
myconf+=" -Dffmpeg_branding=Chrome" |
370 |
fi |
371 |
|
372 |
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
373 |
# Note: these are for Gentoo use ONLY. For your own distribution, |
374 |
# please get your own set of keys. Feel free to contact chromium@g.o |
375 |
# for more info. |
376 |
myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
377 |
-Dgoogle_default_client_id=329227923882.apps.googleusercontent.com |
378 |
-Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" |
379 |
|
380 |
local myarch="$(tc-arch)" |
381 |
if [[ $myarch = amd64 ]] ; then |
382 |
myconf+=" -Dtarget_arch=x64" |
383 |
elif [[ $myarch = x86 ]] ; then |
384 |
myconf+=" -Dtarget_arch=ia32" |
385 |
elif [[ $myarch = arm ]] ; then |
386 |
# TODO: re-enable NaCl (NativeClient). |
387 |
myconf+=" -Dtarget_arch=arm |
388 |
-Dsysroot= |
389 |
-Darmv7=0 |
390 |
-Darm_neon=0 |
391 |
-Ddisable_nacl=1" |
392 |
else |
393 |
die "Failed to determine target arch, got '$myarch'." |
394 |
fi |
395 |
|
396 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
397 |
# Depending on GCC version the warnings are different and we don't want |
398 |
# the build to fail because of that. |
399 |
myconf+=" -Dwerror=" |
400 |
|
401 |
# Avoid CFLAGS problems, bug #352457, bug #390147. |
402 |
if ! use custom-cflags; then |
403 |
replace-flags "-Os" "-O2" |
404 |
strip-flags |
405 |
|
406 |
# Prevent linker from running out of address space, bug #471810 . |
407 |
if use x86; then |
408 |
filter-flags "-g*" |
409 |
fi |
410 |
fi |
411 |
|
412 |
# Make sure the build system will use the right tools, bug #340795. |
413 |
tc-export AR CC CXX RANLIB |
414 |
|
415 |
# Tools for building programs to be executed on the build system, bug #410883. |
416 |
export AR_host=$(tc-getBUILD_AR) |
417 |
export CC_host=$(tc-getBUILD_CC) |
418 |
export CXX_host=$(tc-getBUILD_CXX) |
419 |
export LD_host=${CXX_host} |
420 |
|
421 |
build/linux/unbundle/replace_gyp_files.py ${myconf} || die |
422 |
egyp_chromium ${myconf} || die |
423 |
} |
424 |
|
425 |
src_compile() { |
426 |
# TODO: add media_unittests after fixing compile (bug #462546). |
427 |
local test_targets="" |
428 |
for x in base cacheinvalidation content crypto \ |
429 |
googleurl gpu net printing sql; do |
430 |
test_targets+=" ${x}_unittests" |
431 |
done |
432 |
|
433 |
local make_targets="chrome chrome_sandbox chromedriver" |
434 |
if use test; then |
435 |
make_targets+=" $test_targets" |
436 |
fi |
437 |
|
438 |
# See bug #410883 for more info about the .host mess. |
439 |
emake ${make_targets} BUILDTYPE=Release V=1 || die |
440 |
|
441 |
pax-mark m out/Release/chrome |
442 |
if use test; then |
443 |
for x in $test_targets; do |
444 |
pax-mark m out/Release/${x} |
445 |
done |
446 |
fi |
447 |
} |
448 |
|
449 |
src_test() { |
450 |
# For more info see bug #350349. |
451 |
local mylocale='en_US.utf8' |
452 |
if ! locale -a | grep -q "$mylocale"; then |
453 |
eerror "${PN} requires ${mylocale} locale for tests" |
454 |
eerror "Please read the following guides for more information:" |
455 |
eerror " http://www.gentoo.org/doc/en/guide-localization.xml" |
456 |
eerror " http://www.gentoo.org/doc/en/utf-8.xml" |
457 |
die "locale ${mylocale} is not supported" |
458 |
fi |
459 |
|
460 |
# For more info see bug #370957. |
461 |
if [[ $UID -eq 0 ]]; then |
462 |
die "Tests must be run as non-root. Please use FEATURES=userpriv." |
463 |
fi |
464 |
|
465 |
runtest() { |
466 |
local cmd=$1 |
467 |
shift |
468 |
local filter="--gtest_filter=$(IFS=:; echo "-${*}")" |
469 |
einfo "${cmd}" "${filter}" |
470 |
LC_ALL="${mylocale}" VIRTUALX_COMMAND="${cmd}" virtualmake "${filter}" |
471 |
} |
472 |
|
473 |
local excluded_base_unittests=( |
474 |
"ICUStringConversionsTest.*" # bug #350347 |
475 |
"MessagePumpLibeventTest.*" # bug #398591 |
476 |
"TimeTest.JsTime" # bug #459614 |
477 |
"SecurityTest.NewOverflow" # bug #465724 |
478 |
) |
479 |
runtest out/Release/base_unittests "${excluded_base_unittests[@]}" |
480 |
|
481 |
runtest out/Release/cacheinvalidation_unittests |
482 |
|
483 |
local excluded_content_unittests=( |
484 |
"RendererDateTimePickerTest.*" # bug #465452 |
485 |
) |
486 |
runtest out/Release/content_unittests "${excluded_content_unittests[@]}" |
487 |
|
488 |
runtest out/Release/crypto_unittests |
489 |
runtest out/Release/googleurl_unittests |
490 |
runtest out/Release/gpu_unittests |
491 |
|
492 |
# TODO: add media_unittests after fixing compile (bug #462546). |
493 |
# runtest out/Release/media_unittests |
494 |
|
495 |
local excluded_net_unittests=( |
496 |
"NetUtilTest.IDNToUnicode*" # bug 361885 |
497 |
"NetUtilTest.FormatUrl*" # see above |
498 |
"DnsConfigServiceTest.GetSystemConfig" # bug #394883 |
499 |
"CertDatabaseNSSTest.ImportServerCert_SelfSigned" # bug #399269 |
500 |
"CertDatabaseNSSTest.TrustIntermediateCa*" # http://crbug.com/224612 |
501 |
"URLFetcher*" # bug #425764 |
502 |
"HTTPSOCSPTest.*" # bug #426630 |
503 |
"HTTPSEVCRLSetTest.*" # see above |
504 |
"HTTPSCRLSetTest.*" # see above |
505 |
"*SpdyFramerTest.BasicCompression*" # bug #465444 |
506 |
"CertVerifyProcTest.EVVerification" #474642 |
507 |
) |
508 |
runtest out/Release/net_unittests "${excluded_net_unittests[@]}" |
509 |
|
510 |
runtest out/Release/printing_unittests |
511 |
|
512 |
local excluded_sql_unittests=( |
513 |
"SQLiteFeaturesTest.FTS2" # bug #461286 |
514 |
) |
515 |
runtest out/Release/sql_unittests "${excluded_sql_unittests[@]}" |
516 |
} |
517 |
|
518 |
src_install() { |
519 |
exeinto "${CHROMIUM_HOME}" |
520 |
doexe out/Release/chrome || die |
521 |
|
522 |
doexe out/Release/chrome_sandbox || die |
523 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
524 |
|
525 |
doexe out/Release/chromedriver || die |
526 |
|
527 |
if ! use arm; then |
528 |
doexe out/Release/nacl_helper{,_bootstrap} || die |
529 |
insinto "${CHROMIUM_HOME}" |
530 |
doins out/Release/nacl_irt_*.nexe || die |
531 |
doins out/Release/libppGoogleNaClPluginChrome.so || die |
532 |
fi |
533 |
|
534 |
local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) |
535 |
if [[ -n ${CHROMIUM_SUFFIX} ]]; then |
536 |
sedargs+=( |
537 |
-e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" |
538 |
-e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" |
539 |
-e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" |
540 |
) |
541 |
fi |
542 |
sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die |
543 |
doexe chromium-launcher.sh |
544 |
|
545 |
# It is important that we name the target "chromium-browser", |
546 |
# xdg-utils expect it; bug #355517. |
547 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die |
548 |
# keep the old symlink around for consistency |
549 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die |
550 |
|
551 |
# Allow users to override command-line options, bug #357629. |
552 |
dodir /etc/chromium || die |
553 |
insinto /etc/chromium |
554 |
newins "${FILESDIR}/chromium.default" "default" || die |
555 |
|
556 |
pushd out/Release/locales > /dev/null || die |
557 |
chromium_remove_language_paks |
558 |
popd |
559 |
|
560 |
insinto "${CHROMIUM_HOME}" |
561 |
doins out/Release/*.pak || die |
562 |
|
563 |
doins -r out/Release/locales || die |
564 |
doins -r out/Release/resources || die |
565 |
|
566 |
newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die |
567 |
newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die |
568 |
|
569 |
if ! use system-ffmpeg; then |
570 |
doexe out/Release/libffmpegsumo.so || die |
571 |
fi |
572 |
|
573 |
# Install icons and desktop entry. |
574 |
local branding size |
575 |
for size in 16 22 24 32 48 64 128 256 ; do |
576 |
case ${size} in |
577 |
16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
578 |
*) branding="chrome/app/theme/chromium" ;; |
579 |
esac |
580 |
newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
581 |
chromium-browser${CHROMIUM_SUFFIX}.png |
582 |
done |
583 |
|
584 |
local mime_types="text/html;text/xml;application/xhtml+xml;" |
585 |
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
586 |
mime_types+="x-scheme-handler/ftp;" # bug #412185 |
587 |
mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 |
588 |
make_desktop_entry \ |
589 |
chromium-browser${CHROMIUM_SUFFIX} \ |
590 |
"Chromium${CHROMIUM_SUFFIX}" \ |
591 |
chromium-browser${CHROMIUM_SUFFIX} \ |
592 |
"Network;WebBrowser" \ |
593 |
"MimeType=${mime_types}\nStartupWMClass=chromium-browser" |
594 |
sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die |
595 |
|
596 |
# Install GNOME default application entry (bug #303100). |
597 |
if use gnome; then |
598 |
dodir /usr/share/gnome-control-center/default-apps || die |
599 |
insinto /usr/share/gnome-control-center/default-apps |
600 |
newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die |
601 |
if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
602 |
sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ |
603 |
"${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml |
604 |
fi |
605 |
fi |
606 |
} |