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