1 |
floppym 13/11/21 03:40:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-32.0.1700.19.ebuild |
5 |
Removed: chromium-32.0.1700.6.ebuild |
6 |
Log: |
7 |
Beta channel bump. |
8 |
|
9 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.990 www-client/chromium/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.990&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.990&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.989&r2=1.990 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
21 |
retrieving revision 1.989 |
22 |
retrieving revision 1.990 |
23 |
diff -u -r1.989 -r1.990 |
24 |
--- ChangeLog 20 Nov 2013 21:34:47 -0000 1.989 |
25 |
+++ ChangeLog 21 Nov 2013 03:40:12 -0000 1.990 |
26 |
@@ -1,6 +1,12 @@ |
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.989 2013/11/20 21:34:47 phajdan.jr Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.990 2013/11/21 03:40:12 floppym Exp $ |
31 |
+ |
32 |
+*chromium-32.0.1700.19 (21 Nov 2013) |
33 |
+ |
34 |
+ 21 Nov 2013; Mike Gilbert <floppym@g.o> +chromium-32.0.1700.19.ebuild, |
35 |
+ -chromium-32.0.1700.6.ebuild: |
36 |
+ Beta channel bump. |
37 |
|
38 |
*chromium-33.0.1711.3 (20 Nov 2013) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/chromium/chromium-32.0.1700.19.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-32.0.1700.19.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-32.0.1700.19.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: chromium-32.0.1700.19.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-32.0.1700.19.ebuild,v 1.1 2013/11/21 03:40:12 floppym Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
56 |
|
57 |
CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he |
58 |
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 |
59 |
sv sw ta te th tr uk vi zh_CN zh_TW" |
60 |
|
61 |
inherit chromium eutils flag-o-matic multilib multiprocessing pax-utils \ |
62 |
portability python-any-r1 readme.gentoo toolchain-funcs versionator virtualx |
63 |
|
64 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
65 |
HOMEPAGE="http://chromium.org/" |
66 |
SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz |
67 |
test? ( https://commondatastorage.googleapis.com/chromium-browser-official/${P}-testdata.tar.xz )" |
68 |
|
69 |
LICENSE="BSD" |
70 |
SLOT="0" |
71 |
KEYWORDS="~amd64 ~arm ~x86" |
72 |
IUSE="bindist cups gnome gnome-keyring kerberos neon pulseaudio selinux system-sqlite tcmalloc" |
73 |
|
74 |
# Native Client binaries are compiled with different set of flags, bug #452066. |
75 |
QA_FLAGS_IGNORED=".*\.nexe" |
76 |
|
77 |
# Native Client binaries may be stripped by the build system, which uses the |
78 |
# right tools for it, bug #469144 . |
79 |
QA_PRESTRIPPED=".*\.nexe" |
80 |
|
81 |
RDEPEND=">=app-accessibility/speech-dispatcher-0.8:= |
82 |
app-arch/bzip2:= |
83 |
app-arch/snappy:= |
84 |
system-sqlite? ( dev-db/sqlite:3 ) |
85 |
cups? ( |
86 |
dev-libs/libgcrypt:= |
87 |
>=net-print/cups-1.3.11:= |
88 |
) |
89 |
>=dev-libs/elfutils-0.149 |
90 |
dev-libs/expat:= |
91 |
>=dev-libs/icu-49.1.1-r1:= |
92 |
>=dev-libs/jsoncpp-0.5.0-r1:= |
93 |
>=dev-libs/libevent-1.4.13:= |
94 |
dev-libs/libxml2:=[icu] |
95 |
dev-libs/libxslt:= |
96 |
dev-libs/nspr:= |
97 |
>=dev-libs/nss-3.14.3:= |
98 |
>=dev-libs/protobuf-2.5.0:= |
99 |
dev-libs/re2:= |
100 |
gnome? ( >=gnome-base/gconf-2.24.0:= ) |
101 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2:= ) |
102 |
>=media-libs/alsa-lib-1.0.19:= |
103 |
media-libs/flac:= |
104 |
media-libs/harfbuzz:=[icu(+)] |
105 |
>=media-libs/libjpeg-turbo-1.2.0-r1:= |
106 |
media-libs/libpng:0= |
107 |
media-libs/opus:= |
108 |
media-libs/speex:= |
109 |
pulseaudio? ( media-sound/pulseaudio:= ) |
110 |
sys-apps/dbus:= |
111 |
sys-apps/pciutils:= |
112 |
>=sys-libs/libcap-2.22:= |
113 |
sys-libs/zlib:=[minizip] |
114 |
virtual/udev |
115 |
x11-libs/gtk+:2= |
116 |
>=x11-libs/libXi-1.6.0:= |
117 |
x11-libs/libXinerama:= |
118 |
x11-libs/libXScrnSaver:= |
119 |
x11-libs/libXtst:= |
120 |
kerberos? ( virtual/krb5 ) |
121 |
selinux? ( sec-policy/selinux-chromium )" |
122 |
DEPEND="${RDEPEND} |
123 |
${PYTHON_DEPS} |
124 |
!arm? ( |
125 |
dev-lang/yasm |
126 |
) |
127 |
dev-lang/perl |
128 |
dev-perl/JSON |
129 |
>=dev-python/jinja-2.7 |
130 |
dev-python/ply |
131 |
dev-python/simplejson |
132 |
>=dev-util/gperf-3.0.3 |
133 |
dev-util/ninja |
134 |
sys-apps/hwids |
135 |
>=sys-devel/bison-2.4.3 |
136 |
sys-devel/flex |
137 |
virtual/pkgconfig |
138 |
test? ( |
139 |
dev-libs/openssl:0 |
140 |
dev-python/pyftpdlib |
141 |
)" |
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 |
DISABLE_AUTOFORMATTING="yes" |
152 |
DOC_CONTENTS=" |
153 |
Some web pages may require additional fonts to display properly. |
154 |
Try installing some of the following packages if some characters |
155 |
are not displayed properly: |
156 |
- media-fonts/arphicfonts |
157 |
- media-fonts/bitstream-cyberbit |
158 |
- media-fonts/droid |
159 |
- media-fonts/ipamonafont |
160 |
- media-fonts/ja-ipafonts |
161 |
- media-fonts/takao-fonts |
162 |
- media-fonts/wqy-microhei |
163 |
- media-fonts/wqy-zenhei |
164 |
|
165 |
Depending on your desktop environment, you may need |
166 |
to install additional packages to get icons on the Downloads page. |
167 |
|
168 |
For KDE, the required package is kde-base/oxygen-icons. |
169 |
|
170 |
For other desktop environments, try one of the following: |
171 |
- x11-themes/gnome-icon-theme |
172 |
- x11-themes/tango-icon-theme |
173 |
" |
174 |
|
175 |
pkg_setup() { |
176 |
if [[ "${SLOT}" == "0" ]]; then |
177 |
CHROMIUM_SUFFIX="" |
178 |
else |
179 |
CHROMIUM_SUFFIX="-${SLOT}" |
180 |
fi |
181 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" |
182 |
|
183 |
# Make sure the build system will use the right python, bug #344367. |
184 |
python-any-r1_pkg_setup |
185 |
|
186 |
chromium_suid_sandbox_check_kernel_config |
187 |
|
188 |
if use bindist; then |
189 |
elog "bindist enabled: H.264 video support will be disabled." |
190 |
else |
191 |
elog "bindist disabled: Resulting binaries may not be legal to re-distribute." |
192 |
fi |
193 |
} |
194 |
|
195 |
src_prepare() { |
196 |
# if ! use arm; then |
197 |
# mkdir -p out/Release/gen/sdk/toolchain || die |
198 |
# # Do not preserve SELinux context, bug #460892 . |
199 |
# cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \ |
200 |
# out/Release/gen/sdk/toolchain/linux_x86_newlib || die |
201 |
# touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die |
202 |
# fi |
203 |
|
204 |
epatch "${FILESDIR}/${PN}-system-jinja-r2.patch" |
205 |
epatch "${FILESDIR}/${PN}-build_ffmpeg-r0.patch" |
206 |
|
207 |
epatch_user |
208 |
|
209 |
# Remove most bundled libraries. Some are still needed. |
210 |
build/linux/unbundle/remove_bundled_libraries.py \ |
211 |
'base/third_party/dmg_fp' \ |
212 |
'base/third_party/dynamic_annotations' \ |
213 |
'base/third_party/icu' \ |
214 |
'base/third_party/nspr' \ |
215 |
'base/third_party/symbolize' \ |
216 |
'base/third_party/valgrind' \ |
217 |
'base/third_party/xdg_mime' \ |
218 |
'base/third_party/xdg_user_dirs' \ |
219 |
'breakpad/src/third_party/curl' \ |
220 |
'chrome/third_party/mozilla_security_manager' \ |
221 |
'crypto/third_party/nss' \ |
222 |
'net/third_party/mozilla_security_manager' \ |
223 |
'net/third_party/nss' \ |
224 |
'third_party/WebKit' \ |
225 |
'third_party/angle_dx11' \ |
226 |
'third_party/cacheinvalidation' \ |
227 |
'third_party/cld' \ |
228 |
'third_party/cros_system_api' \ |
229 |
'third_party/ffmpeg' \ |
230 |
'third_party/flot' \ |
231 |
'third_party/hunspell' \ |
232 |
'third_party/iccjpeg' \ |
233 |
'third_party/jstemplate' \ |
234 |
'third_party/khronos' \ |
235 |
'third_party/leveldatabase' \ |
236 |
'third_party/libjingle' \ |
237 |
'third_party/libphonenumber' \ |
238 |
'third_party/libsrtp' \ |
239 |
'third_party/libusb' \ |
240 |
'third_party/libvpx' \ |
241 |
'third_party/libwebp' \ |
242 |
'third_party/libxml/chromium' \ |
243 |
'third_party/libXNVCtrl' \ |
244 |
'third_party/libyuv' \ |
245 |
'third_party/lss' \ |
246 |
'third_party/lzma_sdk' \ |
247 |
'third_party/mesa' \ |
248 |
'third_party/modp_b64' \ |
249 |
'third_party/mt19937ar' \ |
250 |
'third_party/npapi' \ |
251 |
'third_party/ots' \ |
252 |
'third_party/pywebsocket' \ |
253 |
'third_party/qcms' \ |
254 |
'third_party/sfntly' \ |
255 |
'third_party/skia' \ |
256 |
'third_party/smhasher' \ |
257 |
'third_party/sqlite' \ |
258 |
'third_party/tcmalloc' \ |
259 |
'third_party/tlslite' \ |
260 |
'third_party/trace-viewer' \ |
261 |
'third_party/undoview' \ |
262 |
'third_party/usrsctp' \ |
263 |
'third_party/webdriver' \ |
264 |
'third_party/webrtc' \ |
265 |
'third_party/widevine' \ |
266 |
'third_party/x86inc' \ |
267 |
'third_party/zlib/google' \ |
268 |
'url/third_party/mozilla' \ |
269 |
'v8/src/third_party/valgrind' \ |
270 |
--do-remove || die |
271 |
} |
272 |
|
273 |
src_configure() { |
274 |
local myconf="" |
275 |
|
276 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
277 |
# additions, bug #336871. |
278 |
myconf+=" -Ddisable_sse2=1" |
279 |
|
280 |
# Optional tcmalloc. Note it causes problems with e.g. NVIDIA |
281 |
# drivers, bug #413637. |
282 |
myconf+=" $(gyp_use tcmalloc linux_use_tcmalloc)" |
283 |
|
284 |
# Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
285 |
myconf+=" -Ddisable_nacl=1" |
286 |
|
287 |
# Disable glibc Native Client toolchain, we don't need it (bug #417019). |
288 |
# myconf+=" -Ddisable_glibc=1" |
289 |
|
290 |
# TODO: also build with pnacl |
291 |
# myconf+=" -Ddisable_pnacl=1" |
292 |
|
293 |
# It would be awkward for us to tar the toolchain and get it untarred again |
294 |
# during the build. |
295 |
# myconf+=" -Ddisable_newlib_untar=1" |
296 |
|
297 |
# Make it possible to remove third_party/adobe. |
298 |
echo > "${T}/flapper_version.h" || die |
299 |
myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" |
300 |
|
301 |
# Use system-provided libraries. |
302 |
# TODO: use_system_hunspell (upstream changes needed). |
303 |
# TODO: use_system_libsrtp (bug #459932). |
304 |
# TODO: use_system_libusb (http://crbug.com/266149). |
305 |
# TODO: use_system_libvpx (bug #487926). |
306 |
# TODO: use_system_ssl (http://crbug.com/58087). |
307 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
308 |
# TODO: use_system_libwebp (http://crbug.com/288019). |
309 |
myconf+=" |
310 |
-Duse_system_bzip2=1 |
311 |
-Duse_system_flac=1 |
312 |
-Duse_system_harfbuzz=1 |
313 |
-Duse_system_icu=1 |
314 |
-Duse_system_jsoncpp=1 |
315 |
-Duse_system_libevent=1 |
316 |
-Duse_system_libjpeg=1 |
317 |
-Duse_system_libpng=1 |
318 |
-Duse_system_libxml=1 |
319 |
-Duse_system_libxslt=1 |
320 |
-Duse_system_minizip=1 |
321 |
-Duse_system_nspr=1 |
322 |
-Duse_system_openssl=1 |
323 |
-Duse_system_opus=1 |
324 |
-Duse_system_protobuf=1 |
325 |
-Duse_system_re2=1 |
326 |
-Duse_system_snappy=1 |
327 |
-Duse_system_speex=1 |
328 |
-Duse_system_xdg_utils=1 |
329 |
-Duse_system_zlib=1" |
330 |
|
331 |
# TODO: patch gyp so that this arm conditional is not needed. |
332 |
if ! use arm; then |
333 |
myconf+=" |
334 |
-Duse_system_yasm=1" |
335 |
fi |
336 |
|
337 |
# Optional dependencies. |
338 |
# TODO: linux_link_kerberos, bug #381289. |
339 |
myconf+=" |
340 |
$(gyp_use cups) |
341 |
$(gyp_use gnome use_gconf) |
342 |
$(gyp_use gnome-keyring use_gnome_keyring) |
343 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
344 |
$(gyp_use kerberos) |
345 |
$(gyp_use pulseaudio)" |
346 |
|
347 |
if use system-sqlite; then |
348 |
elog "Enabling system sqlite. WebSQL - http://www.w3.org/TR/webdatabase/" |
349 |
elog "will not work. Please report sites broken by this" |
350 |
elog "to https://bugs.gentoo.org" |
351 |
myconf+=" |
352 |
-Duse_system_sqlite=1 |
353 |
-Denable_sql_database=0" |
354 |
fi |
355 |
|
356 |
# Use explicit library dependencies instead of dlopen. |
357 |
# This makes breakages easier to detect by revdep-rebuild. |
358 |
myconf+=" |
359 |
-Dlinux_link_gsettings=1 |
360 |
-Dlinux_link_libpci=1 |
361 |
-Dlinux_link_libspeechd=1 |
362 |
-Dlibspeechd_h_prefix=speech-dispatcher/" |
363 |
|
364 |
# TODO: use the file at run time instead of effectively compiling it in. |
365 |
myconf+=" |
366 |
-Dusb_ids_path=/usr/share/misc/usb.ids" |
367 |
|
368 |
# Save space by removing DLOG and DCHECK messages (about 6% reduction). |
369 |
myconf+=" |
370 |
-Dlogging_like_official_build=1" |
371 |
|
372 |
# Never use bundled gold binary. Disable gold linker flags for now. |
373 |
myconf+=" |
374 |
-Dlinux_use_gold_binary=0 |
375 |
-Dlinux_use_gold_flags=0" |
376 |
|
377 |
# Always support proprietary codecs. |
378 |
myconf+=" -Dproprietary_codecs=1" |
379 |
|
380 |
if ! use bindist; then |
381 |
# Enable H.264 support in bundled ffmpeg. |
382 |
myconf+=" -Dffmpeg_branding=Chrome" |
383 |
fi |
384 |
|
385 |
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
386 |
# Note: these are for Gentoo use ONLY. For your own distribution, |
387 |
# please get your own set of keys. Feel free to contact chromium@g.o |
388 |
# for more info. |
389 |
myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
390 |
-Dgoogle_default_client_id=329227923882.apps.googleusercontent.com |
391 |
-Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" |
392 |
|
393 |
local myarch="$(tc-arch)" |
394 |
if [[ $myarch = amd64 ]] ; then |
395 |
target_arch=x64 |
396 |
elif [[ $myarch = x86 ]] ; then |
397 |
target_arch=ia32 |
398 |
elif [[ $myarch = arm ]] ; then |
399 |
target_arch=arm |
400 |
# TODO: re-enable NaCl (NativeClient). |
401 |
local CTARGET=${CTARGET:-${CHOST}} |
402 |
if [[ $(tc-is-softfloat) == "no" ]]; then |
403 |
|
404 |
myconf+=" -Darm_float_abi=hard" |
405 |
fi |
406 |
filter-flags "-mfpu=*" |
407 |
use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}" |
408 |
|
409 |
if [[ ${CTARGET} == armv[78]* ]]; then |
410 |
myconf+=" -Darmv7=1" |
411 |
else |
412 |
myconf+=" -Darmv7=0" |
413 |
fi |
414 |
myconf+=" -Dsysroot= |
415 |
$(gyp_use neon arm_neon) |
416 |
-Ddisable_nacl=1" |
417 |
else |
418 |
die "Failed to determine target arch, got '$myarch'." |
419 |
fi |
420 |
|
421 |
myconf+=" -Dtarget_arch=${target_arch}" |
422 |
|
423 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
424 |
# Depending on GCC version the warnings are different and we don't want |
425 |
# the build to fail because of that. |
426 |
myconf+=" -Dwerror=" |
427 |
|
428 |
# Avoid CFLAGS problems, bug #352457, bug #390147. |
429 |
if ! use custom-cflags; then |
430 |
replace-flags "-Os" "-O2" |
431 |
strip-flags |
432 |
|
433 |
# Prevent linker from running out of address space, bug #471810 . |
434 |
if use x86; then |
435 |
filter-flags "-g*" |
436 |
fi |
437 |
fi |
438 |
|
439 |
# Make sure the build system will use the right tools, bug #340795. |
440 |
tc-export AR CC CXX RANLIB |
441 |
|
442 |
# Tools for building programs to be executed on the build system, bug #410883. |
443 |
export AR_host=$(tc-getBUILD_AR) |
444 |
export CC_host=$(tc-getBUILD_CC) |
445 |
export CXX_host=$(tc-getBUILD_CXX) |
446 |
export LD_host=${CXX_host} |
447 |
|
448 |
# Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
449 |
einfo "Configuring bundled ffmpeg..." |
450 |
pushd third_party/ffmpeg > /dev/null || die |
451 |
chromium/scripts/build_ffmpeg.sh linux ${target_arch} "${PWD}" config-only || die |
452 |
chromium/scripts/copy_config.sh || die |
453 |
popd > /dev/null || die |
454 |
|
455 |
einfo "Configuring Chromium..." |
456 |
build/linux/unbundle/replace_gyp_files.py ${myconf} || die |
457 |
egyp_chromium ${myconf} || die |
458 |
} |
459 |
|
460 |
src_compile() { |
461 |
# TODO: add media_unittests after fixing compile (bug #462546). |
462 |
local test_targets="" |
463 |
for x in base cacheinvalidation content crypto \ |
464 |
gpu net printing sql; do |
465 |
test_targets+=" ${x}_unittests" |
466 |
done |
467 |
|
468 |
local ninja_targets="chrome chrome_sandbox chromedriver" |
469 |
if use test; then |
470 |
ninja_targets+=" $test_targets" |
471 |
fi |
472 |
|
473 |
# Build mksnapshot and pax-mark it. |
474 |
ninja -C out/Release -v -j $(makeopts_jobs) mksnapshot.${target_arch} || die |
475 |
pax-mark m out/Release/mksnapshot.${target_arch} |
476 |
|
477 |
# Even though ninja autodetects number of CPUs, we respect |
478 |
# user's options, for debugging with -j 1 or any other reason. |
479 |
ninja -C out/Release -v -j $(makeopts_jobs) ${ninja_targets} || die |
480 |
|
481 |
pax-mark m out/Release/chrome |
482 |
if use test; then |
483 |
for x in $test_targets; do |
484 |
pax-mark m out/Release/${x} |
485 |
done |
486 |
fi |
487 |
} |
488 |
|
489 |
src_test() { |
490 |
# For more info see bug #350349. |
491 |
local LC_ALL="en_US.utf8" |
492 |
|
493 |
if ! locale -a | grep -q "${LC_ALL}"; then |
494 |
eerror "${PN} requires ${LC_ALL} locale for tests" |
495 |
eerror "Please read the following guides for more information:" |
496 |
eerror " http://www.gentoo.org/doc/en/guide-localization.xml" |
497 |
eerror " http://www.gentoo.org/doc/en/utf-8.xml" |
498 |
die "locale ${LC_ALL} is not supported" |
499 |
fi |
500 |
|
501 |
# If we have the right locale, export it to the environment |
502 |
export LC_ALL |
503 |
|
504 |
# For more info see bug #370957. |
505 |
if [[ $UID -eq 0 ]]; then |
506 |
die "Tests must be run as non-root. Please use FEATURES=userpriv." |
507 |
fi |
508 |
|
509 |
# virtualmake dies on failure, so we run our tests in a function |
510 |
VIRTUALX_COMMAND="chromium_test" virtualmake |
511 |
} |
512 |
|
513 |
chromium_test() { |
514 |
# Keep track of the cumulative exit status for all tests |
515 |
local exitstatus=0 |
516 |
|
517 |
runtest() { |
518 |
local cmd=$1 |
519 |
shift |
520 |
local IFS=: |
521 |
set -- "${cmd}" "--gtest_filter=-$*" |
522 |
einfo "$@" |
523 |
"$@" |
524 |
local st=$? |
525 |
(( st )) && eerror "${cmd} failed" |
526 |
(( exitstatus |= st )) |
527 |
} |
528 |
|
529 |
runtest out/Release/base_unittests |
530 |
runtest out/Release/cacheinvalidation_unittests |
531 |
|
532 |
local excluded_content_unittests=( |
533 |
"RendererDateTimePickerTest.*" # bug #465452 |
534 |
) |
535 |
runtest out/Release/content_unittests "${excluded_content_unittests[@]}" |
536 |
|
537 |
runtest out/Release/crypto_unittests |
538 |
runtest out/Release/gpu_unittests |
539 |
|
540 |
# TODO: add media_unittests after fixing compile (bug #462546). |
541 |
# runtest out/Release/media_unittests |
542 |
|
543 |
local excluded_net_unittests=( |
544 |
"NetUtilTest.IDNToUnicode*" # bug 361885 |
545 |
"NetUtilTest.FormatUrl*" # see above |
546 |
"SpdyFramerTests/SpdyFramerTest.CreatePushPromiseCompressed/2" # bug #478168 |
547 |
"HostResolverImplTest.FlushCacheOnIPAddressChange" # bug #481812 |
548 |
"HostResolverImplTest.ResolveFromCache" # see above |
549 |
"ProxyResolverV8TracingTest.*" # see above |
550 |
"SSLClientSocketTest.ConnectMismatched" # see above |
551 |
"UDPSocketTest.*" # see above |
552 |
"*EndToEndTest*" # see above |
553 |
) |
554 |
runtest out/Release/net_unittests "${excluded_net_unittests[@]}" |
555 |
|
556 |
runtest out/Release/printing_unittests |
557 |
runtest out/Release/sql_unittests |
558 |
|
559 |
return ${exitstatus} |
560 |
} |
561 |
|
562 |
src_install() { |
563 |
exeinto "${CHROMIUM_HOME}" |
564 |
doexe out/Release/chrome || die |
565 |
|
566 |
newexe out/Release/chrome_sandbox chrome-sandbox || die |
567 |
fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
568 |
|
569 |
doexe out/Release/chromedriver || die |
570 |
|
571 |
# if ! use arm; then |
572 |
# doexe out/Release/nacl_helper{,_bootstrap} || die |
573 |
# insinto "${CHROMIUM_HOME}" |
574 |
# doins out/Release/nacl_irt_*.nexe || die |
575 |
# doins out/Release/libppGoogleNaClPluginChrome.so || die |
576 |
# fi |
577 |
|
578 |
local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) |
579 |
if [[ -n ${CHROMIUM_SUFFIX} ]]; then |
580 |
sedargs+=( |
581 |
-e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" |
582 |
-e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" |
583 |
-e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" |
584 |
) |
585 |
fi |
586 |
sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die |
587 |
doexe chromium-launcher.sh |
588 |
|
589 |
# It is important that we name the target "chromium-browser", |
590 |
# xdg-utils expect it; bug #355517. |
591 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die |
592 |
# keep the old symlink around for consistency |
593 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die |
594 |
|
595 |
# Allow users to override command-line options, bug #357629. |
596 |
dodir /etc/chromium || die |
597 |
insinto /etc/chromium |
598 |
newins "${FILESDIR}/chromium.default" "default" || die |
599 |
|
600 |
pushd out/Release/locales > /dev/null || die |
601 |
chromium_remove_language_paks |
602 |
popd |
603 |
|
604 |
insinto "${CHROMIUM_HOME}" |
605 |
doins out/Release/*.pak || die |
606 |
|
607 |
doins -r out/Release/locales || die |
608 |
doins -r out/Release/resources || die |
609 |
|
610 |
newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die |
611 |
newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die |
612 |
|
613 |
doexe out/Release/libffmpegsumo.so || die |
614 |
|
615 |
# Install icons and desktop entry. |
616 |
local branding size |
617 |
for size in 16 22 24 32 48 64 128 256 ; do |
618 |
case ${size} in |
619 |
16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
620 |
*) branding="chrome/app/theme/chromium" ;; |
621 |
esac |
622 |
newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
623 |
chromium-browser${CHROMIUM_SUFFIX}.png |
624 |
done |
625 |
|
626 |
local mime_types="text/html;text/xml;application/xhtml+xml;" |
627 |
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
628 |
mime_types+="x-scheme-handler/ftp;" # bug #412185 |
629 |
mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 |
630 |
make_desktop_entry \ |
631 |
chromium-browser${CHROMIUM_SUFFIX} \ |
632 |
"Chromium${CHROMIUM_SUFFIX}" \ |
633 |
chromium-browser${CHROMIUM_SUFFIX} \ |
634 |
"Network;WebBrowser" \ |
635 |
"MimeType=${mime_types}\nStartupWMClass=chromium-browser" |
636 |
sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die |
637 |
|
638 |
# Install GNOME default application entry (bug #303100). |
639 |
if use gnome; then |
640 |
dodir /usr/share/gnome-control-center/default-apps || die |
641 |
insinto /usr/share/gnome-control-center/default-apps |
642 |
newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die |
643 |
if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
644 |
sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ |
645 |
"${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml |
646 |
fi |
647 |
fi |
648 |
|
649 |
readme.gentoo_create_doc |
650 |
} |
651 |
|
652 |
pkg_postinst() { |
653 |
fdo-mime_desktop_database_update |
654 |
gnome2_icon_cache_update |
655 |
readme.gentoo_print_elog |
656 |
} |