Gentoo Archives: gentoo-commits

From: Agostino Sarubbo <ago@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/
Date: Fri, 11 Dec 2015 09:54:46
Message-Id: 1449827671.d735b9af79833cf236b6e83346f0bc8e45972763.ago@gentoo
1 commit: d735b9af79833cf236b6e83346f0bc8e45972763
2 Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 11 09:54:31 2015 +0000
4 Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 11 09:54:31 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d735b9af
7
8 www-client/chromium: Remove old
9
10 Package-Manager: portage-2.2.20.1
11 Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
12
13 www-client/chromium/Manifest | 1 -
14 www-client/chromium/chromium-47.0.2526.73.ebuild | 655 -----------------------
15 2 files changed, 656 deletions(-)
16
17 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
18 index a25aec2..c7eb1a3 100644
19 --- a/www-client/chromium/Manifest
20 +++ b/www-client/chromium/Manifest
21 @@ -1,4 +1,3 @@
22 -DIST chromium-47.0.2526.73-lite.tar.xz 317476384 SHA256 f1b79a5c8dffc4606076fa6c1797aac0da2f3d0c41457eb271769413820987b0 SHA512 3a7d27d258c7b15a26f5a009c58d1d8a1b0ff181b427d63e01d610846eda94bf16c90bbbab5939dbdef187b90cbfb4b1ba1663d7b32804a6414399f96c274bc8 WHIRLPOOL 87b450ab5849baeb98738d47d43cf478db58072a0dcf7f54b9ffd0f2f479cb4aeff1bd3fb857383f9c4be80196589cd355186576c2d60d4f81f65f28ac9df1ea
23 DIST chromium-47.0.2526.80-lite.tar.xz 376352828 SHA256 680165441f909f5bac6cbbefeaf7050f76d815d8a1de7f02d89892127274cd86 SHA512 c62639d46867d4db440f8e1a17be295245c1ae74ffbac31285b95e113112de4f4a1441364941a027c2acdbc5a001e1667fa7653caa1e15d08f279e729e6ead86 WHIRLPOOL 20fdb9d97e4fc03cbe4d44d84296c2ab4c11d210da82699f640b00443920c361b3238294b603b99ba53fab541637bf50d4789aacc356f0ac0fd294875c881dc1
24 DIST chromium-48.0.2564.10.tar.xz 432060420 SHA256 1902d75d49d46c32a8c33f6de53c9253a63a364b85eb4ada1e8a9ba7c0f523d0 SHA512 7753dc19a50c862211c10975b3ad64a0408e3645df7b0ea548f8437c4c5380ad0bb350920eb8c6791e0685ae7ec921c6be720e337a17dffe4b73c56b74a2bc9a WHIRLPOOL a9ccb2872ad639886288581e1c7d9244f16965ef924395531701289cc69c5a9dfdc4a25175151d27b150acc8e4398c8d91ca5f8f3e623c3c85c8b99d913c4f00
25 DIST chromium-48.0.2564.23.tar.xz 1099898120 SHA256 e9a5eeaedb1975a93d37bc865d3122cf28b7e3a246c06ba19204edaefbce1266 SHA512 72b253f39b561e53c0ef2220402ae15e8d2cdd1af8eab4d5fa8480316919df9059dddf4f4c0d027f78fd0db924b7cbd23d29d406808d18fa047ccddffb6701b3 WHIRLPOOL c133e8e389b560efcc239e2f24bb3befd3fe8731bb2529aeee3f2ae04bf09e5d815ef805750c48dd549fb0b94c1ab77d94b03a0b8245cd537bdb204c79393761
26
27 diff --git a/www-client/chromium/chromium-47.0.2526.73.ebuild b/www-client/chromium/chromium-47.0.2526.73.ebuild
28 deleted file mode 100644
29 index 4232528..0000000
30 --- a/www-client/chromium/chromium-47.0.2526.73.ebuild
31 +++ /dev/null
32 @@ -1,655 +0,0 @@
33 -# Copyright 1999-2015 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -# $Id$
36 -
37 -EAPI="5"
38 -PYTHON_COMPAT=( python2_7 )
39 -
40 -CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
41 - 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
42 - sv sw ta te th tr uk vi zh_CN zh_TW"
43 -
44 -inherit check-reqs chromium eutils flag-o-matic multilib multiprocessing pax-utils \
45 - portability python-any-r1 readme.gentoo toolchain-funcs versionator virtualx
46 -
47 -DESCRIPTION="Open-source version of Google Chrome web browser"
48 -HOMEPAGE="http://chromium.org/"
49 -SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.xz"
50 -
51 -LICENSE="BSD hotwording? ( no-source-code )"
52 -SLOT="0"
53 -KEYWORDS="amd64 ~arm x86"
54 -IUSE="cups gnome gnome-keyring gtk3 +hangouts hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc widevine"
55 -RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
56 -
57 -# Native Client binaries are compiled with different set of flags, bug #452066.
58 -QA_FLAGS_IGNORED=".*\.nexe"
59 -
60 -# Native Client binaries may be stripped by the build system, which uses the
61 -# right tools for it, bug #469144 .
62 -QA_PRESTRIPPED=".*\.nexe"
63 -
64 -RDEPEND=">=app-accessibility/speech-dispatcher-0.8:=
65 - app-arch/bzip2:=
66 - app-arch/snappy:=
67 - cups? ( >=net-print/cups-1.3.11:= )
68 - >=dev-libs/elfutils-0.149
69 - dev-libs/expat:=
70 - dev-libs/glib:=
71 - >=dev-libs/icu-55.1:=
72 - >=dev-libs/jsoncpp-0.5.0-r1:=
73 - >=dev-libs/libevent-1.4.13:=
74 - dev-libs/libxml2:=[icu]
75 - dev-libs/libxslt:=
76 - dev-libs/nspr:=
77 - >=dev-libs/nss-3.14.3:=
78 - dev-libs/re2:=
79 - gnome? ( >=gnome-base/gconf-2.24.0:= )
80 - gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
81 - >=media-libs/alsa-lib-1.0.19:=
82 - media-libs/flac:=
83 - media-libs/fontconfig:=
84 - media-libs/freetype:=
85 - media-libs/harfbuzz:=[icu(+)]
86 - media-libs/libexif:=
87 - >=media-libs/libjpeg-turbo-1.2.0-r1:=
88 - media-libs/libpng:0=
89 - >=media-libs/libwebp-0.4.0:=
90 - media-libs/speex:=
91 - pulseaudio? ( media-sound/pulseaudio:= )
92 - system-ffmpeg? ( >=media-video/ffmpeg-2.7.2:=[opus,vorbis,vpx] )
93 - sys-apps/dbus:=
94 - sys-apps/pciutils:=
95 - >=sys-libs/libcap-2.22:=
96 - sys-libs/zlib:=[minizip]
97 - virtual/udev
98 - x11-libs/cairo:=
99 - x11-libs/gdk-pixbuf:=
100 - gtk3? ( x11-libs/gtk+:3= )
101 - !gtk3? ( x11-libs/gtk+:2= )
102 - x11-libs/libdrm
103 - x11-libs/libX11:=
104 - x11-libs/libXcomposite:=
105 - x11-libs/libXcursor:=
106 - x11-libs/libXdamage:=
107 - x11-libs/libXext:=
108 - x11-libs/libXfixes:=
109 - >=x11-libs/libXi-1.6.0:=
110 - x11-libs/libXinerama:=
111 - x11-libs/libXrandr:=
112 - x11-libs/libXrender:=
113 - x11-libs/libXScrnSaver:=
114 - x11-libs/libXtst:=
115 - x11-libs/pango:=
116 - kerberos? ( virtual/krb5 )"
117 -DEPEND="${RDEPEND}
118 - !arm? (
119 - dev-lang/yasm
120 - )
121 - dev-lang/perl
122 - dev-perl/JSON
123 - >=dev-util/gperf-3.0.3
124 - dev-util/ninja
125 - sys-apps/hwids[usb(+)]
126 - >=sys-devel/bison-2.4.3
127 - sys-devel/flex
128 - virtual/pkgconfig"
129 -
130 -# For nvidia-drivers blocker, see bug #413637 .
131 -RDEPEND+="
132 - !=www-client/chromium-9999
133 - !<www-plugins/chrome-binary-plugins-37
134 - x11-misc/xdg-utils
135 - virtual/opengl
136 - virtual/ttf-fonts
137 - selinux? ( sec-policy/selinux-chromium )
138 - tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )
139 - widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] )"
140 -
141 -# Python dependencies. The DEPEND part needs to be kept in sync
142 -# with python_check_deps.
143 -DEPEND+=" $(python_gen_any_dep '
144 - dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
145 - dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
146 - dev-python/html5lib[${PYTHON_USEDEP}]
147 - dev-python/jinja[${PYTHON_USEDEP}]
148 - dev-python/ply[${PYTHON_USEDEP}]
149 - dev-python/simplejson[${PYTHON_USEDEP}]
150 -')"
151 -python_check_deps() {
152 - has_version "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" && \
153 - has_version "dev-python/beautifulsoup:4[${PYTHON_USEDEP}]" && \
154 - has_version "dev-python/html5lib[${PYTHON_USEDEP}]" && \
155 - has_version "dev-python/jinja[${PYTHON_USEDEP}]" && \
156 - has_version "dev-python/ply[${PYTHON_USEDEP}]" && \
157 - has_version "dev-python/simplejson[${PYTHON_USEDEP}]"
158 -}
159 -
160 -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
161 - EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
162 -fi
163 -
164 -DISABLE_AUTOFORMATTING="yes"
165 -DOC_CONTENTS="
166 -Some web pages may require additional fonts to display properly.
167 -Try installing some of the following packages if some characters
168 -are not displayed properly:
169 -- media-fonts/arphicfonts
170 -- media-fonts/bitstream-cyberbit
171 -- media-fonts/droid
172 -- media-fonts/ipamonafont
173 -- media-fonts/ja-ipafonts
174 -- media-fonts/takao-fonts
175 -- media-fonts/wqy-microhei
176 -- media-fonts/wqy-zenhei
177 -
178 -Depending on your desktop environment, you may need
179 -to install additional packages to get icons on the Downloads page.
180 -
181 -For KDE, the required package is kde-frameworks/oxygen-icons.
182 -
183 -For other desktop environments, try one of the following:
184 -- x11-themes/gnome-icon-theme
185 -- x11-themes/tango-icon-theme
186 -"
187 -
188 -pkg_pretend() {
189 - if [[ $(tc-getCC)$ == *gcc* ]] && \
190 - [[ $(gcc-major-version)$(gcc-minor-version) -lt 48 ]]; then
191 - die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
192 - fi
193 -
194 - # Check build requirements, bug #541816 and bug #471810 .
195 - CHECKREQS_MEMORY="3G"
196 - CHECKREQS_DISK_BUILD="5G"
197 - eshopts_push -s extglob
198 - if is-flagq '-g?(gdb)?([1-9])'; then
199 - CHECKREQS_DISK_BUILD="25G"
200 - fi
201 - eshopts_pop
202 - check-reqs_pkg_pretend
203 -}
204 -
205 -pkg_setup() {
206 - if [[ "${SLOT}" == "0" ]]; then
207 - CHROMIUM_SUFFIX=""
208 - else
209 - CHROMIUM_SUFFIX="-${SLOT}"
210 - fi
211 - CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}"
212 -
213 - # Make sure the build system will use the right python, bug #344367.
214 - python-any-r1_pkg_setup
215 -
216 - chromium_suid_sandbox_check_kernel_config
217 -}
218 -
219 -src_prepare() {
220 - # if ! use arm; then
221 - # mkdir -p out/Release/gen/sdk/toolchain || die
222 - # # Do not preserve SELinux context, bug #460892 .
223 - # cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \
224 - # out/Release/gen/sdk/toolchain/linux_x86_newlib || die
225 - # touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die
226 - # fi
227 -
228 - epatch "${FILESDIR}/${PN}-system-ffmpeg-r0.patch"
229 - epatch "${FILESDIR}/${PN}-system-jinja-r7.patch"
230 - epatch "${FILESDIR}/chromium-widevine-r1.patch"
231 -
232 - epatch_user
233 -
234 - local conditional_bundled_libraries=""
235 - if ! use system-ffmpeg; then
236 - conditional_bundled_libraries+=" third_party/ffmpeg"
237 - fi
238 -
239 - # Remove most bundled libraries. Some are still needed.
240 - build/linux/unbundle/remove_bundled_libraries.py \
241 - ${conditional_bundled_libraries} \
242 - 'base/third_party/dmg_fp' \
243 - 'base/third_party/dynamic_annotations' \
244 - 'base/third_party/icu' \
245 - 'base/third_party/nspr' \
246 - 'base/third_party/superfasthash' \
247 - 'base/third_party/symbolize' \
248 - 'base/third_party/valgrind' \
249 - 'base/third_party/xdg_mime' \
250 - 'base/third_party/xdg_user_dirs' \
251 - 'breakpad/src/third_party/curl' \
252 - 'chrome/third_party/mozilla_security_manager' \
253 - 'courgette/third_party' \
254 - 'crypto/third_party/nss' \
255 - 'net/third_party/mozilla_security_manager' \
256 - 'net/third_party/nss' \
257 - 'third_party/WebKit' \
258 - 'third_party/analytics' \
259 - 'third_party/angle' \
260 - 'third_party/angle/src/third_party/compiler' \
261 - 'third_party/boringssl' \
262 - 'third_party/brotli' \
263 - 'third_party/cacheinvalidation' \
264 - 'third_party/catapult' \
265 - 'third_party/catapult/tracing/third_party/components/polymer' \
266 - 'third_party/catapult/tracing/third_party/d3' \
267 - 'third_party/catapult/tracing/third_party/gl-matrix' \
268 - 'third_party/catapult/tracing/third_party/jszip' \
269 - 'third_party/catapult/tracing/third_party/tvcm' \
270 - 'third_party/catapult/tracing/third_party/tvcm/third_party/rcssmin' \
271 - 'third_party/catapult/tracing/third_party/tvcm/third_party/rjsmin' \
272 - 'third_party/cld_2' \
273 - 'third_party/cros_system_api' \
274 - 'third_party/cython/python_flags.py' \
275 - 'third_party/devscripts' \
276 - 'third_party/dom_distiller_js' \
277 - 'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \
278 - 'third_party/fips181' \
279 - 'third_party/flot' \
280 - 'third_party/google_input_tools' \
281 - 'third_party/google_input_tools/third_party/closure_library' \
282 - 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
283 - 'third_party/hunspell' \
284 - 'third_party/iccjpeg' \
285 - 'third_party/jstemplate' \
286 - 'third_party/khronos' \
287 - 'third_party/leveldatabase' \
288 - 'third_party/libXNVCtrl' \
289 - 'third_party/libaddressinput' \
290 - 'third_party/libjingle' \
291 - 'third_party/libphonenumber' \
292 - 'third_party/libsecret' \
293 - 'third_party/libsrtp' \
294 - 'third_party/libudev' \
295 - 'third_party/libusb' \
296 - 'third_party/libvpx_new' \
297 - 'third_party/libvpx_new/source/libvpx/third_party/x86inc' \
298 - 'third_party/libxml/chromium' \
299 - 'third_party/libwebm' \
300 - 'third_party/libyuv' \
301 - 'third_party/lss' \
302 - 'third_party/lzma_sdk' \
303 - 'third_party/mesa' \
304 - 'third_party/modp_b64' \
305 - 'third_party/mojo' \
306 - 'third_party/mt19937ar' \
307 - 'third_party/npapi' \
308 - 'third_party/openmax_dl' \
309 - 'third_party/opus' \
310 - 'third_party/ots' \
311 - 'third_party/pdfium' \
312 - 'third_party/pdfium/third_party/agg23' \
313 - 'third_party/pdfium/third_party/base' \
314 - 'third_party/pdfium/third_party/bigint' \
315 - 'third_party/pdfium/third_party/freetype' \
316 - 'third_party/pdfium/third_party/lcms2-2.6' \
317 - 'third_party/pdfium/third_party/libjpeg' \
318 - 'third_party/pdfium/third_party/libopenjpeg20' \
319 - 'third_party/pdfium/third_party/zlib_v128' \
320 - 'third_party/polymer' \
321 - 'third_party/protobuf' \
322 - 'third_party/qcms' \
323 - 'third_party/readability' \
324 - 'third_party/sfntly' \
325 - 'third_party/skia' \
326 - 'third_party/smhasher' \
327 - 'third_party/sqlite' \
328 - 'third_party/tcmalloc' \
329 - 'third_party/usrsctp' \
330 - 'third_party/web-animations-js' \
331 - 'third_party/webdriver' \
332 - 'third_party/webrtc' \
333 - 'third_party/widevine' \
334 - 'third_party/x86inc' \
335 - 'third_party/zlib/google' \
336 - 'url/third_party/mozilla' \
337 - 'v8/src/third_party/fdlibm' \
338 - 'v8/src/third_party/valgrind' \
339 - --do-remove || die
340 -}
341 -
342 -src_configure() {
343 - local myconf=""
344 -
345 - # Never tell the build system to "enable" SSE2, it has a few unexpected
346 - # additions, bug #336871.
347 - myconf+=" -Ddisable_sse2=1"
348 -
349 - # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
350 - myconf+=" -Ddisable_nacl=1"
351 -
352 - # Disable glibc Native Client toolchain, we don't need it (bug #417019).
353 - # myconf+=" -Ddisable_glibc=1"
354 -
355 - # TODO: also build with pnacl
356 - # myconf+=" -Ddisable_pnacl=1"
357 -
358 - # It would be awkward for us to tar the toolchain and get it untarred again
359 - # during the build.
360 - # myconf+=" -Ddisable_newlib_untar=1"
361 -
362 - # Make it possible to remove third_party/adobe.
363 - echo > "${T}/flapper_version.h" || die
364 - myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
365 -
366 - # Use system-provided libraries.
367 - # TODO: use_system_hunspell (upstream changes needed).
368 - # TODO: use_system_libsrtp (bug #459932).
369 - # TODO: use_system_libusb (http://crbug.com/266149).
370 - # TODO: use_system_libvpx (http://crbug.com/494939).
371 - # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
372 - # TODO: use_system_protobuf (bug #525560).
373 - # TODO: use_system_ssl (http://crbug.com/58087).
374 - # TODO: use_system_sqlite (http://crbug.com/22208).
375 - myconf+="
376 - -Duse_system_bzip2=1
377 - -Duse_system_ffmpeg=$(usex system-ffmpeg 1 0)
378 - -Duse_system_flac=1
379 - -Duse_system_harfbuzz=1
380 - -Duse_system_icu=1
381 - -Duse_system_jsoncpp=1
382 - -Duse_system_libevent=1
383 - -Duse_system_libjpeg=1
384 - -Duse_system_libpng=1
385 - -Duse_system_libwebp=1
386 - -Duse_system_libxml=1
387 - -Duse_system_libxslt=1
388 - -Duse_system_minizip=1
389 - -Duse_system_nspr=1
390 - -Duse_system_re2=1
391 - -Duse_system_snappy=1
392 - -Duse_system_speex=1
393 - -Duse_system_xdg_utils=1
394 - -Duse_system_zlib=1"
395 -
396 - # Needed for system icu - we don't need additional data files.
397 - myconf+=" -Dicu_use_data_file_flag=0"
398 -
399 - # TODO: patch gyp so that this arm conditional is not needed.
400 - if ! use arm; then
401 - myconf+="
402 - -Duse_system_yasm=1"
403 - fi
404 -
405 - # Optional dependencies.
406 - # TODO: linux_link_kerberos, bug #381289.
407 - myconf+="
408 - $(gyp_use cups)
409 - $(gyp_use gnome use_gconf)
410 - $(gyp_use gnome-keyring use_gnome_keyring)
411 - $(gyp_use gnome-keyring linux_link_gnome_keyring)
412 - $(gyp_use gtk3)
413 - $(gyp_use hangouts enable_hangout_services_extension)
414 - $(gyp_use hidpi enable_hidpi)
415 - $(gyp_use hotwording enable_hotwording)
416 - $(gyp_use kerberos)
417 - $(gyp_use pulseaudio)
418 - $(gyp_use tcmalloc use_allocator tcmalloc none)
419 - $(gyp_use widevine enable_widevine)"
420 -
421 - # Use explicit library dependencies instead of dlopen.
422 - # This makes breakages easier to detect by revdep-rebuild.
423 - myconf+="
424 - -Dlinux_link_gsettings=1
425 - -Dlinux_link_libpci=1
426 - -Dlinux_link_libspeechd=1
427 - -Dlibspeechd_h_prefix=speech-dispatcher/"
428 -
429 - # TODO: use the file at run time instead of effectively compiling it in.
430 - myconf+="
431 - -Dusb_ids_path=/usr/share/misc/usb.ids"
432 -
433 - # Save space by removing DLOG and DCHECK messages (about 6% reduction).
434 - myconf+="
435 - -Dlogging_like_official_build=1"
436 -
437 - if [[ $(tc-getCC) == *clang* ]]; then
438 - myconf+=" -Dclang=1"
439 - else
440 - myconf+=" -Dclang=0"
441 - fi
442 -
443 - # Never use bundled gold binary. Disable gold linker flags for now.
444 - # Do not use bundled clang.
445 - myconf+="
446 - -Dclang_use_chrome_plugins=0
447 - -Dhost_clang=0
448 - -Dlinux_use_bundled_binutils=0
449 - -Dlinux_use_bundled_gold=0
450 - -Dlinux_use_gold_flags=0"
451 -
452 - ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
453 - myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=${ffmpeg_branding}"
454 -
455 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
456 - # Note: these are for Gentoo use ONLY. For your own distribution,
457 - # please get your own set of keys. Feel free to contact chromium@g.o
458 - # for more info.
459 - myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
460 - -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
461 - -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
462 -
463 - local myarch="$(tc-arch)"
464 - if [[ $myarch = amd64 ]] ; then
465 - target_arch=x64
466 - ffmpeg_target_arch=x64
467 - elif [[ $myarch = x86 ]] ; then
468 - target_arch=ia32
469 - ffmpeg_target_arch=ia32
470 - elif [[ $myarch = arm ]] ; then
471 - target_arch=arm
472 - ffmpeg_target_arch=$(usex neon arm-neon arm)
473 - # TODO: re-enable NaCl (NativeClient).
474 - local CTARGET=${CTARGET:-${CHOST}}
475 - if [[ $(tc-is-softfloat) == "no" ]]; then
476 -
477 - myconf+=" -Darm_float_abi=hard"
478 - fi
479 - filter-flags "-mfpu=*"
480 - use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
481 -
482 - if [[ ${CTARGET} == armv[78]* ]]; then
483 - myconf+=" -Darmv7=1"
484 - else
485 - myconf+=" -Darmv7=0"
486 - fi
487 - myconf+=" -Dsysroot=
488 - $(gyp_use neon arm_neon)
489 - -Ddisable_nacl=1"
490 - else
491 - die "Failed to determine target arch, got '$myarch'."
492 - fi
493 -
494 - myconf+=" -Dtarget_arch=${target_arch}"
495 -
496 - # Make sure that -Werror doesn't get added to CFLAGS by the build system.
497 - # Depending on GCC version the warnings are different and we don't want
498 - # the build to fail because of that.
499 - myconf+=" -Dwerror="
500 -
501 - # Disable fatal linker warnings, bug 506268.
502 - myconf+=" -Ddisable_fatal_linker_warnings=1"
503 -
504 - # Avoid CFLAGS problems, bug #352457, bug #390147.
505 - if ! use custom-cflags; then
506 - replace-flags "-Os" "-O2"
507 - strip-flags
508 -
509 - # Prevent linker from running out of address space, bug #471810 .
510 - if use x86; then
511 - filter-flags "-g*"
512 - fi
513 -
514 - # Prevent libvpx build failures. Bug 530248, 544702, 546984.
515 - if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
516 - filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2
517 - fi
518 - fi
519 -
520 - # Make sure the build system will use the right tools, bug #340795.
521 - tc-export AR CC CXX NM
522 -
523 - # Tools for building programs to be executed on the build system, bug #410883.
524 - if tc-is-cross-compiler; then
525 - export AR_host=$(tc-getBUILD_AR)
526 - export CC_host=$(tc-getBUILD_CC)
527 - export CXX_host=$(tc-getBUILD_CXX)
528 - export NM_host=$(tc-getBUILD_NM)
529 - fi
530 -
531 - # Bug 491582.
532 - export TMPDIR="${WORKDIR}/temp"
533 - mkdir -p -m 755 "${TMPDIR}" || die
534 -
535 - if ! use system-ffmpeg; then
536 - local build_ffmpeg_args=""
537 - if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
538 - build_ffmpeg_args+=" --disable-asm"
539 - fi
540 -
541 - # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
542 - einfo "Configuring bundled ffmpeg..."
543 - pushd third_party/ffmpeg > /dev/null || die
544 - chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
545 - --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
546 - chromium/scripts/copy_config.sh || die
547 - chromium/scripts/generate_gyp.py || die
548 - popd > /dev/null || die
549 - fi
550 -
551 - third_party/libaddressinput/chromium/tools/update-strings.py || die
552 -
553 - touch chrome/test/data/webui/i18n_process_css_test.html || die
554 -
555 - einfo "Configuring Chromium..."
556 - build/linux/unbundle/replace_gyp_files.py ${myconf} || die
557 - egyp_chromium ${myconf} || die
558 -}
559 -
560 -eninja() {
561 - if [[ -z ${NINJAOPTS+set} ]]; then
562 - local jobs=$(makeopts_jobs)
563 - local loadavg=$(makeopts_loadavg)
564 -
565 - if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
566 - NINJAOPTS+=" -j ${jobs}"
567 - fi
568 - if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
569 - NINJAOPTS+=" -l ${loadavg}"
570 - fi
571 - fi
572 - set -- ninja -v ${NINJAOPTS} "$@"
573 - echo "$@"
574 - "$@"
575 -}
576 -
577 -src_compile() {
578 - local ninja_targets="chrome chrome_sandbox chromedriver"
579 -
580 - # Build mksnapshot and pax-mark it.
581 - eninja -C out/Release mksnapshot || die
582 - pax-mark m out/Release/mksnapshot
583 -
584 - # Even though ninja autodetects number of CPUs, we respect
585 - # user's options, for debugging with -j 1 or any other reason.
586 - eninja -C out/Release ${ninja_targets} || die
587 -
588 - pax-mark m out/Release/chrome
589 -}
590 -
591 -src_install() {
592 - exeinto "${CHROMIUM_HOME}"
593 - doexe out/Release/chrome || die
594 -
595 - newexe out/Release/chrome_sandbox chrome-sandbox || die
596 - fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
597 -
598 - doexe out/Release/chromedriver || die
599 - use widevine && doexe out/Release/libwidevinecdmadapter.so
600 -
601 - # if ! use arm; then
602 - # doexe out/Release/nacl_helper{,_bootstrap} || die
603 - # insinto "${CHROMIUM_HOME}"
604 - # doins out/Release/nacl_irt_*.nexe || die
605 - # doins out/Release/libppGoogleNaClPluginChrome.so || die
606 - # fi
607 -
608 - local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
609 - if [[ -n ${CHROMIUM_SUFFIX} ]]; then
610 - sedargs+=(
611 - -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g"
612 - -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g"
613 - -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:"
614 - )
615 - fi
616 - sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
617 - doexe chromium-launcher.sh
618 -
619 - # It is important that we name the target "chromium-browser",
620 - # xdg-utils expect it; bug #355517.
621 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser${CHROMIUM_SUFFIX} || die
622 - # keep the old symlink around for consistency
623 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die
624 -
625 - dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die
626 -
627 - # Allow users to override command-line options, bug #357629.
628 - dodir /etc/chromium || die
629 - insinto /etc/chromium
630 - newins "${FILESDIR}/chromium.default" "default" || die
631 -
632 - pushd out/Release/locales > /dev/null || die
633 - chromium_remove_language_paks
634 - popd
635 -
636 - insinto "${CHROMIUM_HOME}"
637 - doins out/Release/*.bin || die
638 - doins out/Release/*.pak || die
639 -
640 - doins -r out/Release/locales || die
641 - doins -r out/Release/resources || die
642 -
643 - newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die
644 - newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die
645 -
646 - # Install icons and desktop entry.
647 - local branding size
648 - for size in 16 22 24 32 48 64 128 256 ; do
649 - case ${size} in
650 - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
651 - *) branding="chrome/app/theme/chromium" ;;
652 - esac
653 - newicon -s ${size} "${branding}/product_logo_${size}.png" \
654 - chromium-browser${CHROMIUM_SUFFIX}.png
655 - done
656 -
657 - local mime_types="text/html;text/xml;application/xhtml+xml;"
658 - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
659 - mime_types+="x-scheme-handler/ftp;" # bug #412185
660 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
661 - make_desktop_entry \
662 - chromium-browser${CHROMIUM_SUFFIX} \
663 - "Chromium${CHROMIUM_SUFFIX}" \
664 - chromium-browser${CHROMIUM_SUFFIX} \
665 - "Network;WebBrowser" \
666 - "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
667 - sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
668 -
669 - # Install GNOME default application entry (bug #303100).
670 - if use gnome; then
671 - dodir /usr/share/gnome-control-center/default-apps || die
672 - insinto /usr/share/gnome-control-center/default-apps
673 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die
674 - if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then
675 - sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \
676 - "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml
677 - fi
678 - fi
679 -
680 - readme.gentoo_create_doc
681 -}
682 -
683 -pkg_postinst() {
684 - fdo-mime_desktop_database_update
685 - gnome2_icon_cache_update
686 - readme.gentoo_print_elog
687 -}