1 |
floppym 14/07/30 01:01:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-37.0.2062.44.ebuild |
5 |
Removed: chromium-37.0.2062.20.ebuild |
6 |
Log: |
7 |
Beta channel bump. |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1111 www-client/chromium/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.1111&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.1111&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.1110&r2=1.1111 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
21 |
retrieving revision 1.1110 |
22 |
retrieving revision 1.1111 |
23 |
diff -u -r1.1110 -r1.1111 |
24 |
--- ChangeLog 24 Jul 2014 03:59:24 -0000 1.1110 |
25 |
+++ ChangeLog 30 Jul 2014 01:01:37 -0000 1.1111 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/chromium |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1110 2014/07/24 03:59:24 floppym Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.1111 2014/07/30 01:01:37 floppym Exp $ |
31 |
+ |
32 |
+*chromium-37.0.2062.44 (30 Jul 2014) |
33 |
+ |
34 |
+ 30 Jul 2014; Mike Gilbert <floppym@g.o> +chromium-37.0.2062.44.ebuild, |
35 |
+ -chromium-37.0.2062.20.ebuild: |
36 |
+ Beta channel bump. |
37 |
|
38 |
*chromium-37.0.2062.35 (24 Jul 2014) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/chromium/chromium-37.0.2062.44.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-37.0.2062.44.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-37.0.2062.44.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: chromium-37.0.2062.44.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-37.0.2062.44.ebuild,v 1.1 2014/07/30 01:01:37 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}-lite.tar.xz" |
67 |
|
68 |
LICENSE="BSD" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~arm ~x86" |
71 |
IUSE="bindist cups gnome gnome-keyring kerberos neon pic pulseaudio selinux +tcmalloc" |
72 |
|
73 |
# Native Client binaries are compiled with different set of flags, bug #452066. |
74 |
QA_FLAGS_IGNORED=".*\.nexe" |
75 |
|
76 |
# Native Client binaries may be stripped by the build system, which uses the |
77 |
# right tools for it, bug #469144 . |
78 |
QA_PRESTRIPPED=".*\.nexe" |
79 |
|
80 |
RDEPEND=">=app-accessibility/speech-dispatcher-0.8:= |
81 |
app-arch/bzip2:= |
82 |
app-arch/snappy:= |
83 |
cups? ( |
84 |
dev-libs/libgcrypt:0= |
85 |
>=net-print/cups-1.3.11:= |
86 |
) |
87 |
>=dev-libs/elfutils-0.149 |
88 |
dev-libs/expat:= |
89 |
dev-libs/glib:= |
90 |
dev-libs/icu:= |
91 |
>=dev-libs/jsoncpp-0.5.0-r1:= |
92 |
>=dev-libs/libevent-1.4.13:= |
93 |
dev-libs/libxml2:=[icu] |
94 |
dev-libs/libxslt:= |
95 |
dev-libs/nspr:= |
96 |
>=dev-libs/nss-3.14.3:= |
97 |
dev-libs/re2:= |
98 |
gnome? ( >=gnome-base/gconf-2.24.0:= ) |
99 |
gnome-keyring? ( gnome-base/libgnome-keyring:= ) |
100 |
>=media-libs/alsa-lib-1.0.19:= |
101 |
media-libs/flac:= |
102 |
media-libs/fontconfig:= |
103 |
media-libs/freetype:= |
104 |
media-libs/harfbuzz:=[icu(+)] |
105 |
media-libs/libexif:= |
106 |
>=media-libs/libjpeg-turbo-1.2.0-r1:= |
107 |
media-libs/libpng:0= |
108 |
>=media-libs/libwebp-0.4.0:= |
109 |
media-libs/speex:= |
110 |
pulseaudio? ( media-sound/pulseaudio:= ) |
111 |
sys-apps/dbus:= |
112 |
sys-apps/pciutils:= |
113 |
>=sys-libs/libcap-2.22:= |
114 |
sys-libs/zlib:=[minizip] |
115 |
virtual/udev |
116 |
x11-libs/cairo:= |
117 |
x11-libs/gdk-pixbuf:= |
118 |
x11-libs/gtk+:2= |
119 |
x11-libs/libdrm |
120 |
x11-libs/libX11:= |
121 |
x11-libs/libXcomposite:= |
122 |
x11-libs/libXcursor:= |
123 |
x11-libs/libXdamage:= |
124 |
x11-libs/libXext:= |
125 |
x11-libs/libXfixes:= |
126 |
>=x11-libs/libXi-1.6.0:= |
127 |
x11-libs/libXinerama:= |
128 |
x11-libs/libXrandr:= |
129 |
x11-libs/libXrender:= |
130 |
x11-libs/libXScrnSaver:= |
131 |
x11-libs/libXtst:= |
132 |
x11-libs/pango:= |
133 |
kerberos? ( virtual/krb5 ) |
134 |
selinux? ( sec-policy/selinux-chromium )" |
135 |
DEPEND="${RDEPEND} |
136 |
!arm? ( |
137 |
dev-lang/yasm |
138 |
) |
139 |
dev-lang/perl |
140 |
dev-perl/JSON |
141 |
>=dev-util/gperf-3.0.3 |
142 |
dev-util/ninja |
143 |
sys-apps/hwids[usb(+)] |
144 |
>=sys-devel/bison-2.4.3 |
145 |
sys-devel/flex |
146 |
virtual/pkgconfig" |
147 |
# For nvidia-drivers blocker, see bug #413637 . |
148 |
RDEPEND+=" |
149 |
!=www-client/chromium-9999 |
150 |
!<www-plugins/chrome-binary-plugins-37 |
151 |
x11-misc/xdg-utils |
152 |
virtual/ttf-fonts |
153 |
tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )" |
154 |
|
155 |
# Python dependencies. The DEPEND part needs to be kept in sync |
156 |
# with python_check_deps. |
157 |
DEPEND+=" $(python_gen_any_dep ' |
158 |
dev-python/simplejson[${PYTHON_USEDEP}] |
159 |
')" |
160 |
python_check_deps() { |
161 |
has_version "dev-python/simplejson[${PYTHON_USEDEP}]" |
162 |
} |
163 |
|
164 |
if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
165 |
EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
166 |
fi |
167 |
|
168 |
DISABLE_AUTOFORMATTING="yes" |
169 |
DOC_CONTENTS=" |
170 |
Some web pages may require additional fonts to display properly. |
171 |
Try installing some of the following packages if some characters |
172 |
are not displayed properly: |
173 |
- media-fonts/arphicfonts |
174 |
- media-fonts/bitstream-cyberbit |
175 |
- media-fonts/droid |
176 |
- media-fonts/ipamonafont |
177 |
- media-fonts/ja-ipafonts |
178 |
- media-fonts/takao-fonts |
179 |
- media-fonts/wqy-microhei |
180 |
- media-fonts/wqy-zenhei |
181 |
|
182 |
Depending on your desktop environment, you may need |
183 |
to install additional packages to get icons on the Downloads page. |
184 |
|
185 |
For KDE, the required package is kde-base/oxygen-icons. |
186 |
|
187 |
For other desktop environments, try one of the following: |
188 |
- x11-themes/gnome-icon-theme |
189 |
- x11-themes/tango-icon-theme |
190 |
" |
191 |
|
192 |
pkg_setup() { |
193 |
if [[ "${SLOT}" == "0" ]]; then |
194 |
CHROMIUM_SUFFIX="" |
195 |
else |
196 |
CHROMIUM_SUFFIX="-${SLOT}" |
197 |
fi |
198 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" |
199 |
|
200 |
# Make sure the build system will use the right python, bug #344367. |
201 |
python-any-r1_pkg_setup |
202 |
|
203 |
chromium_suid_sandbox_check_kernel_config |
204 |
|
205 |
if use bindist; then |
206 |
elog "bindist enabled: H.264 video support will be disabled." |
207 |
else |
208 |
elog "bindist disabled: Resulting binaries may not be legal to re-distribute." |
209 |
fi |
210 |
} |
211 |
|
212 |
src_prepare() { |
213 |
# if ! use arm; then |
214 |
# mkdir -p out/Release/gen/sdk/toolchain || die |
215 |
# # Do not preserve SELinux context, bug #460892 . |
216 |
# cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \ |
217 |
# out/Release/gen/sdk/toolchain/linux_x86_newlib || die |
218 |
# touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die |
219 |
# fi |
220 |
|
221 |
epatch "${FILESDIR}/${PN}-angle-r0.patch" |
222 |
epatch "${FILESDIR}/${PN}-ffmpeg-r2.patch" |
223 |
|
224 |
epatch_user |
225 |
|
226 |
# Remove most bundled libraries. Some are still needed. |
227 |
build/linux/unbundle/remove_bundled_libraries.py \ |
228 |
'base/third_party/dmg_fp' \ |
229 |
'base/third_party/dynamic_annotations' \ |
230 |
'base/third_party/icu' \ |
231 |
'base/third_party/nspr' \ |
232 |
'base/third_party/superfasthash' \ |
233 |
'base/third_party/symbolize' \ |
234 |
'base/third_party/valgrind' \ |
235 |
'base/third_party/xdg_mime' \ |
236 |
'base/third_party/xdg_user_dirs' \ |
237 |
'breakpad/src/third_party/curl' \ |
238 |
'chrome/third_party/mozilla_security_manager' \ |
239 |
'courgette/third_party' \ |
240 |
'crypto/third_party/nss' \ |
241 |
'net/third_party/mozilla_security_manager' \ |
242 |
'net/third_party/nss' \ |
243 |
'third_party/WebKit' \ |
244 |
'third_party/angle' \ |
245 |
'third_party/brotli' \ |
246 |
'third_party/cacheinvalidation' \ |
247 |
'third_party/cld' \ |
248 |
'third_party/cros_system_api' \ |
249 |
'third_party/dom_distiller_js' \ |
250 |
'third_party/ffmpeg' \ |
251 |
'third_party/fips181' \ |
252 |
'third_party/flot' \ |
253 |
'third_party/hunspell' \ |
254 |
'third_party/iccjpeg' \ |
255 |
'third_party/icu/icu.isolate' \ |
256 |
'third_party/jinja2' \ |
257 |
'third_party/jstemplate' \ |
258 |
'third_party/khronos' \ |
259 |
'third_party/leveldatabase' \ |
260 |
'third_party/libaddressinput' \ |
261 |
'third_party/libjingle' \ |
262 |
'third_party/libphonenumber' \ |
263 |
'third_party/libsrtp' \ |
264 |
'third_party/libusb' \ |
265 |
'third_party/libvpx' \ |
266 |
'third_party/libwebm' \ |
267 |
'third_party/libxml/chromium' \ |
268 |
'third_party/libXNVCtrl' \ |
269 |
'third_party/libyuv' \ |
270 |
'third_party/lss' \ |
271 |
'third_party/lzma_sdk' \ |
272 |
'third_party/markupsafe' \ |
273 |
'third_party/mesa' \ |
274 |
'third_party/modp_b64' \ |
275 |
'third_party/mt19937ar' \ |
276 |
'third_party/npapi' \ |
277 |
'third_party/opus' \ |
278 |
'third_party/ots' \ |
279 |
'third_party/pdfium' \ |
280 |
'third_party/polymer' \ |
281 |
'third_party/ply' \ |
282 |
'third_party/protobuf' \ |
283 |
'third_party/pywebsocket' \ |
284 |
'third_party/qcms' \ |
285 |
'third_party/readability' \ |
286 |
'third_party/sfntly' \ |
287 |
'third_party/skia' \ |
288 |
'third_party/smhasher' \ |
289 |
'third_party/sqlite' \ |
290 |
'third_party/tcmalloc' \ |
291 |
'third_party/tlslite' \ |
292 |
'third_party/trace-viewer' \ |
293 |
'third_party/undoview' \ |
294 |
'third_party/usrsctp' \ |
295 |
'third_party/webdriver' \ |
296 |
'third_party/webrtc' \ |
297 |
'third_party/widevine' \ |
298 |
'third_party/x86inc' \ |
299 |
'third_party/zlib/google' \ |
300 |
'url/third_party/mozilla' \ |
301 |
'v8/src/third_party/valgrind' \ |
302 |
--do-remove || die |
303 |
} |
304 |
|
305 |
src_configure() { |
306 |
local myconf="" |
307 |
|
308 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
309 |
# additions, bug #336871. |
310 |
myconf+=" -Ddisable_sse2=1" |
311 |
|
312 |
# Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
313 |
myconf+=" -Ddisable_nacl=1" |
314 |
|
315 |
# Disable glibc Native Client toolchain, we don't need it (bug #417019). |
316 |
# myconf+=" -Ddisable_glibc=1" |
317 |
|
318 |
# TODO: also build with pnacl |
319 |
# myconf+=" -Ddisable_pnacl=1" |
320 |
|
321 |
# It would be awkward for us to tar the toolchain and get it untarred again |
322 |
# during the build. |
323 |
# myconf+=" -Ddisable_newlib_untar=1" |
324 |
|
325 |
# Make it possible to remove third_party/adobe. |
326 |
echo > "${T}/flapper_version.h" || die |
327 |
myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" |
328 |
|
329 |
# Use system-provided libraries. |
330 |
# TODO: use_system_hunspell (upstream changes needed). |
331 |
# TODO: use_system_libsrtp (bug #459932). |
332 |
# TODO: use_system_libvpx (http://crbug.com/347823). |
333 |
# TODO: use_system_libusb (http://crbug.com/266149). |
334 |
# TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077). |
335 |
# TODO: use_system_protobuf (bug #503084). |
336 |
# TODO: use_system_ssl (http://crbug.com/58087). |
337 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
338 |
myconf+=" |
339 |
-Duse_system_bzip2=1 |
340 |
-Duse_system_flac=1 |
341 |
-Duse_system_harfbuzz=1 |
342 |
-Duse_system_icu=1 |
343 |
-Duse_system_jsoncpp=1 |
344 |
-Duse_system_libevent=1 |
345 |
-Duse_system_libjpeg=1 |
346 |
-Duse_system_libpng=1 |
347 |
-Duse_system_libwebp=1 |
348 |
-Duse_system_libxml=1 |
349 |
-Duse_system_libxslt=1 |
350 |
-Duse_system_minizip=1 |
351 |
-Duse_system_nspr=1 |
352 |
-Duse_system_openssl=1 |
353 |
-Duse_system_re2=1 |
354 |
-Duse_system_snappy=1 |
355 |
-Duse_system_speex=1 |
356 |
-Duse_system_xdg_utils=1 |
357 |
-Duse_system_zlib=1" |
358 |
|
359 |
# Needed for system icu - we don't need additional data files. |
360 |
myconf+=" -Dicu_use_data_file_flag=0" |
361 |
|
362 |
# TODO: patch gyp so that this arm conditional is not needed. |
363 |
if ! use arm; then |
364 |
myconf+=" |
365 |
-Duse_system_yasm=1" |
366 |
fi |
367 |
|
368 |
# Optional dependencies. |
369 |
# TODO: linux_link_kerberos, bug #381289. |
370 |
myconf+=" |
371 |
$(gyp_use cups) |
372 |
$(gyp_use gnome use_gconf) |
373 |
$(gyp_use gnome-keyring use_gnome_keyring) |
374 |
$(gyp_use gnome-keyring linux_link_gnome_keyring) |
375 |
$(gyp_use kerberos) |
376 |
$(gyp_use pulseaudio) |
377 |
$(gyp_use tcmalloc use_allocator tcmalloc none)" |
378 |
|
379 |
# Use explicit library dependencies instead of dlopen. |
380 |
# This makes breakages easier to detect by revdep-rebuild. |
381 |
myconf+=" |
382 |
-Dlinux_link_gsettings=1 |
383 |
-Dlinux_link_libpci=1 |
384 |
-Dlinux_link_libspeechd=1 |
385 |
-Dlibspeechd_h_prefix=speech-dispatcher/" |
386 |
|
387 |
# TODO: use the file at run time instead of effectively compiling it in. |
388 |
myconf+=" |
389 |
-Dusb_ids_path=/usr/share/misc/usb.ids" |
390 |
|
391 |
# Save space by removing DLOG and DCHECK messages (about 6% reduction). |
392 |
myconf+=" |
393 |
-Dlogging_like_official_build=1" |
394 |
|
395 |
# Never use bundled gold binary. Disable gold linker flags for now. |
396 |
myconf+=" |
397 |
-Dlinux_use_bundled_binutils=0 |
398 |
-Dlinux_use_bundled_gold=0 |
399 |
-Dlinux_use_gold_flags=0" |
400 |
|
401 |
# Always support proprietary codecs. |
402 |
myconf+=" -Dproprietary_codecs=1" |
403 |
|
404 |
# Set python version and libdir so that python_arch.sh can find libpython. |
405 |
# Bug 492864. |
406 |
myconf+=" |
407 |
-Dpython_ver=${EPYTHON#python} |
408 |
-Dsystem_libdir=$(get_libdir)" |
409 |
|
410 |
if ! use bindist; then |
411 |
# Enable H.264 support in bundled ffmpeg. |
412 |
myconf+=" -Dffmpeg_branding=Chrome" |
413 |
fi |
414 |
|
415 |
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
416 |
# Note: these are for Gentoo use ONLY. For your own distribution, |
417 |
# please get your own set of keys. Feel free to contact chromium@g.o |
418 |
# for more info. |
419 |
myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
420 |
-Dgoogle_default_client_id=329227923882.apps.googleusercontent.com |
421 |
-Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" |
422 |
|
423 |
local myarch="$(tc-arch)" |
424 |
if [[ $myarch = amd64 ]] ; then |
425 |
target_arch=x64 |
426 |
ffmpeg_target_arch=x64 |
427 |
elif [[ $myarch = x86 ]] ; then |
428 |
target_arch=ia32 |
429 |
ffmpeg_target_arch=ia32 |
430 |
elif [[ $myarch = arm ]] ; then |
431 |
target_arch=arm |
432 |
ffmpeg_target_arch=$(usex neon arm-neon arm) |
433 |
# TODO: re-enable NaCl (NativeClient). |
434 |
local CTARGET=${CTARGET:-${CHOST}} |
435 |
if [[ $(tc-is-softfloat) == "no" ]]; then |
436 |
|
437 |
myconf+=" -Darm_float_abi=hard" |
438 |
fi |
439 |
filter-flags "-mfpu=*" |
440 |
use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}" |
441 |
|
442 |
if [[ ${CTARGET} == armv[78]* ]]; then |
443 |
myconf+=" -Darmv7=1" |
444 |
else |
445 |
myconf+=" -Darmv7=0" |
446 |
fi |
447 |
myconf+=" -Dsysroot= |
448 |
$(gyp_use neon arm_neon) |
449 |
-Ddisable_nacl=1" |
450 |
else |
451 |
die "Failed to determine target arch, got '$myarch'." |
452 |
fi |
453 |
|
454 |
myconf+=" -Dtarget_arch=${target_arch}" |
455 |
|
456 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
457 |
# Depending on GCC version the warnings are different and we don't want |
458 |
# the build to fail because of that. |
459 |
myconf+=" -Dwerror=" |
460 |
|
461 |
# Disable fatal linker warnings, bug 506268. |
462 |
myconf+=" -Ddisable_fatal_linker_warnings=1" |
463 |
|
464 |
# Avoid CFLAGS problems, bug #352457, bug #390147. |
465 |
if ! use custom-cflags; then |
466 |
replace-flags "-Os" "-O2" |
467 |
strip-flags |
468 |
|
469 |
# Prevent linker from running out of address space, bug #471810 . |
470 |
if use x86; then |
471 |
filter-flags "-g*" |
472 |
fi |
473 |
fi |
474 |
|
475 |
# Make sure the build system will use the right tools, bug #340795. |
476 |
tc-export AR CC CXX RANLIB |
477 |
|
478 |
# Tools for building programs to be executed on the build system, bug #410883. |
479 |
export AR_host=$(tc-getBUILD_AR) |
480 |
export CC_host=$(tc-getBUILD_CC) |
481 |
export CXX_host=$(tc-getBUILD_CXX) |
482 |
export LD_host=${CXX_host} |
483 |
|
484 |
# Bug 491582. |
485 |
export TMPDIR="${WORKDIR}/temp" |
486 |
mkdir -m 755 "${TMPDIR}" || die |
487 |
|
488 |
local build_ffmpeg_args="" |
489 |
if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
490 |
build_ffmpeg_args+=" --disable-asm" |
491 |
fi |
492 |
|
493 |
# Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
494 |
einfo "Configuring bundled ffmpeg..." |
495 |
pushd third_party/ffmpeg > /dev/null || die |
496 |
chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} -- ${build_ffmpeg_args} || die |
497 |
chromium/scripts/copy_config.sh || die |
498 |
chromium/scripts/generate_gyp.py || die |
499 |
popd > /dev/null || die |
500 |
|
501 |
third_party/libaddressinput/chromium/tools/update-strings.py || die |
502 |
|
503 |
einfo "Configuring Chromium..." |
504 |
build/linux/unbundle/replace_gyp_files.py ${myconf} || die |
505 |
egyp_chromium ${myconf} || die |
506 |
} |
507 |
|
508 |
eninja() { |
509 |
if [[ -z ${NINJAOPTS+set} ]]; then |
510 |
local jobs=$(makeopts_jobs) |
511 |
local loadavg=$(makeopts_loadavg) |
512 |
|
513 |
if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then |
514 |
NINJAOPTS+=" -j ${jobs}" |
515 |
fi |
516 |
if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then |
517 |
NINJAOPTS+=" -l ${loadavg}" |
518 |
fi |
519 |
fi |
520 |
set -- ninja -v ${NINJAOPTS} "$@" |
521 |
echo "$@" |
522 |
"$@" |
523 |
} |
524 |
|
525 |
src_compile() { |
526 |
local ninja_targets="chrome chrome_sandbox chromedriver" |
527 |
|
528 |
# Build mksnapshot and pax-mark it. |
529 |
eninja -C out/Release mksnapshot || die |
530 |
pax-mark m out/Release/mksnapshot |
531 |
|
532 |
# Even though ninja autodetects number of CPUs, we respect |
533 |
# user's options, for debugging with -j 1 or any other reason. |
534 |
eninja -C out/Release ${ninja_targets} || die |
535 |
|
536 |
pax-mark m out/Release/chrome |
537 |
} |
538 |
|
539 |
src_install() { |
540 |
exeinto "${CHROMIUM_HOME}" |
541 |
doexe out/Release/chrome || die |
542 |
|
543 |
newexe out/Release/chrome_sandbox chrome-sandbox || die |
544 |
fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
545 |
|
546 |
doexe out/Release/chromedriver || die |
547 |
|
548 |
# if ! use arm; then |
549 |
# doexe out/Release/nacl_helper{,_bootstrap} || die |
550 |
# insinto "${CHROMIUM_HOME}" |
551 |
# doins out/Release/nacl_irt_*.nexe || die |
552 |
# doins out/Release/libppGoogleNaClPluginChrome.so || die |
553 |
# fi |
554 |
|
555 |
local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) |
556 |
if [[ -n ${CHROMIUM_SUFFIX} ]]; then |
557 |
sedargs+=( |
558 |
-e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" |
559 |
-e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" |
560 |
-e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" |
561 |
) |
562 |
fi |
563 |
sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die |
564 |
doexe chromium-launcher.sh |
565 |
|
566 |
# It is important that we name the target "chromium-browser", |
567 |
# xdg-utils expect it; bug #355517. |
568 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die |
569 |
# keep the old symlink around for consistency |
570 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die |
571 |
|
572 |
dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die |
573 |
|
574 |
# Allow users to override command-line options, bug #357629. |
575 |
dodir /etc/chromium || die |
576 |
insinto /etc/chromium |
577 |
newins "${FILESDIR}/chromium.default" "default" || die |
578 |
|
579 |
pushd out/Release/locales > /dev/null || die |
580 |
chromium_remove_language_paks |
581 |
popd |
582 |
|
583 |
insinto "${CHROMIUM_HOME}" |
584 |
doins out/Release/*.pak || die |
585 |
|
586 |
doins -r out/Release/locales || die |
587 |
doins -r out/Release/resources || die |
588 |
|
589 |
newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die |
590 |
newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die |
591 |
|
592 |
doexe out/Release/libffmpegsumo.so || die |
593 |
doexe out/Release/libpdf.so || die |
594 |
|
595 |
# Install icons and desktop entry. |
596 |
local branding size |
597 |
for size in 16 22 24 32 48 64 128 256 ; do |
598 |
case ${size} in |
599 |
16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
600 |
*) branding="chrome/app/theme/chromium" ;; |
601 |
esac |
602 |
newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
603 |
chromium-browser${CHROMIUM_SUFFIX}.png |
604 |
done |
605 |
|
606 |
local mime_types="text/html;text/xml;application/xhtml+xml;" |
607 |
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
608 |
mime_types+="x-scheme-handler/ftp;" # bug #412185 |
609 |
mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 |
610 |
make_desktop_entry \ |
611 |
chromium-browser${CHROMIUM_SUFFIX} \ |
612 |
"Chromium${CHROMIUM_SUFFIX}" \ |
613 |
chromium-browser${CHROMIUM_SUFFIX} \ |
614 |
"Network;WebBrowser" \ |
615 |
"MimeType=${mime_types}\nStartupWMClass=chromium-browser" |
616 |
sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die |
617 |
|
618 |
# Install GNOME default application entry (bug #303100). |
619 |
if use gnome; then |
620 |
dodir /usr/share/gnome-control-center/default-apps || die |
621 |
insinto /usr/share/gnome-control-center/default-apps |
622 |
newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die |
623 |
if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
624 |
sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ |
625 |
"${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml |
626 |
fi |
627 |
fi |
628 |
|
629 |
readme.gentoo_create_doc |
630 |
} |
631 |
|
632 |
pkg_postinst() { |
633 |
fdo-mime_desktop_database_update |
634 |
gnome2_icon_cache_update |
635 |
readme.gentoo_print_elog |
636 |
} |