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