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