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