Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/
Date: Mon, 03 Apr 2017 00:57:58
Message-Id: 1491181053.05eae7f18f2a61e63d2250e02cc497b425c7d77f.floppym@gentoo
1 commit: 05eae7f18f2a61e63d2250e02cc497b425c7d77f
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 3 00:57:33 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 3 00:57:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05eae7f1
7
8 www-client/chromium: remove old
9
10 Package-Manager: Portage-2.3.5_p19, Repoman-2.3.2_p49
11
12 www-client/chromium/Manifest | 1 -
13 www-client/chromium/chromium-57.0.2987.98.ebuild | 645 -----------------------
14 2 files changed, 646 deletions(-)
15
16 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
17 index eb4915cca8f..7c54b5d3a98 100644
18 --- a/www-client/chromium/Manifest
19 +++ b/www-client/chromium/Manifest
20 @@ -1,5 +1,4 @@
21 DIST chromium-57.0.2987.133.tar.xz 525240460 SHA256 70011770a7e522c92826a3af48d3fd28a46bf8042897d072d20c748cbf828cf7 SHA512 b53fb357d3f11b45a46b3fe52a10b0d20cf8f3fedc8454ceca6b8d1ea9c526493cfeeb4472766e3f23ceba5cd53b089a2639d6a166fbfa91db05153571b59039 WHIRLPOOL 25854c4c1c9b9fde2c0bd9af7c374fe3fe78a19a34703cf54cb157a257c7408bf1bf58c199afbc16009e99bc4a3cdc578e907e78fc45bc781e59ab39b877c374
22 -DIST chromium-57.0.2987.98.tar.xz 525286840 SHA256 16b5ecf70fcab8476231636ec20f5415897781b01ed21640283cb358322f792d SHA512 10b832e1cb3693899499080d62f7b9162dd807308b9228b1aeebf0f3481db85d301fcce16cbc089909f4cd08f77205805c7215127415ab2679d15e5dcb87a912 WHIRLPOOL 372dae1469374a156be7343042d48fa27fafcd1007bc64954f88dbb021a793c4ef90ec69b83965ca0b10aa85b0b39d490cd9d106251796184a779ce559ff087d
23 DIST chromium-58.0.3029.14.tar.xz 509043400 SHA256 b7a02ec45d61516552f7377bd066ee1d77a4ededc03c4c53c18373797dc8d8c4 SHA512 b84c422965c694eee4159bd4f8c102fda5e7d8012adf195c2882f9ef3030a0433fac666de85bfcdd4e635d82a57dfa9f3d4e8000dfb8ada2e068348190a4524c WHIRLPOOL dc47733b3344f58fa1a3bc3f1dcac5088d9bbfcffa1c395547ff42367d2164f51cced3f9ad4afc7157834339dbe3fbe6790c835345533c917013770fe11ebec7
24 DIST chromium-58.0.3029.19.tar.xz 509050504 SHA256 ffe5b52faf219bee7675460ac56b3d62a3ee9fd2001f4a854224a1445b8af5e6 SHA512 b1780d4920d14e4861b5e5895accf49d7b65d49345ec243d7d1042ca1d0246cb3b4fcfa383ea3a6ef9a2145bc526be71286af156051a058f4f699b64cce772cb WHIRLPOOL e5e57370aa06ef8ef7b1e923f684148a1035dc3c4282e6a327cbe4f6e7a472ed724e5c4edb3e5ea91ed3620ea6a9d9f23c5ddb52246ff840b7997e3b00bebc8a
25 DIST chromium-59.0.3047.0.tar.xz 517288828 SHA256 721fab5df661df892880c63b6b3b8a89978f6874afe3de4506e3e762d7cf3ba3 SHA512 0259aeecd25e734d5d8fcbc51bf976b71ef1a9332852a836c233a413856f319746d7181e3b8315729f08ca7a0959a2a67966ea6ac14442697ab73f27af0067c7 WHIRLPOOL 6a93d595ec023b2d4d008e163fec660a54d9d1013d36b2a466f5a35b81e37f6313e961bac49780f0a90eb3f6173da99a2acb09a6976e0ba3c43a9a8bd4937aa4
26
27 diff --git a/www-client/chromium/chromium-57.0.2987.98.ebuild b/www-client/chromium/chromium-57.0.2987.98.ebuild
28 deleted file mode 100644
29 index 85185e08bc8..00000000000
30 --- a/www-client/chromium/chromium-57.0.2987.98.ebuild
31 +++ /dev/null
32 @@ -1,645 +0,0 @@
33 -# Copyright 1999-2017 Gentoo Foundation
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI="6"
37 -PYTHON_COMPAT=( python2_7 )
38 -
39 -CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
40 - 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
41 - sv sw ta te th tr uk vi zh-CN zh-TW"
42 -
43 -inherit check-reqs chromium-2 eutils gnome2-utils flag-o-matic multilib multiprocessing pax-utils portability python-any-r1 readme.gentoo-r1 toolchain-funcs versionator virtualx xdg-utils
44 -
45 -DESCRIPTION="Open-source version of Google Chrome web browser"
46 -HOMEPAGE="http://chromium.org/"
47 -SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz"
48 -
49 -LICENSE="BSD"
50 -SLOT="0"
51 -KEYWORDS="amd64 ~arm ~arm64 x86"
52 -IUSE="component-build cups gconf gnome-keyring gtk3 +hangouts kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-libvpx +tcmalloc widevine"
53 -RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
54 -
55 -# Native Client binaries are compiled with different set of flags, bug #452066.
56 -QA_FLAGS_IGNORED=".*\.nexe"
57 -
58 -# Native Client binaries may be stripped by the build system, which uses the
59 -# right tools for it, bug #469144 .
60 -QA_PRESTRIPPED=".*\.nexe"
61 -
62 -COMMON_DEPEND="
63 - app-arch/bzip2:=
64 - cups? ( >=net-print/cups-1.3.11:= )
65 - >=dev-libs/elfutils-0.149
66 - dev-libs/expat:=
67 - dev-libs/glib:2
68 - dev-libs/icu:=
69 - >=dev-libs/jsoncpp-0.5.0-r1:=
70 - dev-libs/libxml2:=[icu]
71 - dev-libs/libxslt:=
72 - dev-libs/nspr:=
73 - >=dev-libs/nss-3.14.3:=
74 - >=dev-libs/re2-0.2016.05.01:=
75 - gconf? ( >=gnome-base/gconf-2.24.0:= )
76 - gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
77 - >=media-libs/alsa-lib-1.0.19:=
78 - media-libs/fontconfig:=
79 - media-libs/freetype:=
80 - >=media-libs/harfbuzz-1.3.1:=[icu(+)]
81 - media-libs/libexif:=
82 - media-libs/libjpeg-turbo:=
83 - media-libs/libpng:=
84 - system-libvpx? ( media-libs/libvpx:=[postproc,svc] )
85 - media-libs/speex:=
86 - pulseaudio? ( media-sound/pulseaudio:= )
87 - system-ffmpeg? ( >=media-video/ffmpeg-3:= )
88 - sys-apps/dbus:=
89 - sys-apps/pciutils:=
90 - >=sys-libs/libcap-2.22:=
91 - virtual/udev
92 - x11-libs/cairo:=
93 - x11-libs/gdk-pixbuf:2
94 - x11-libs/libdrm
95 - x11-libs/libX11:=
96 - x11-libs/libXcomposite:=
97 - x11-libs/libXcursor:=
98 - x11-libs/libXdamage:=
99 - x11-libs/libXext:=
100 - x11-libs/libXfixes:=
101 - >=x11-libs/libXi-1.6.0:=
102 - x11-libs/libXinerama:=
103 - x11-libs/libXrandr:=
104 - x11-libs/libXrender:=
105 - x11-libs/libXScrnSaver:=
106 - x11-libs/libXtst:=
107 - x11-libs/pango:=
108 - app-arch/snappy:=
109 - media-libs/flac:=
110 - >=media-libs/libwebp-0.4.0:=
111 - sys-libs/zlib:=[minizip]
112 - kerberos? ( virtual/krb5 )
113 -"
114 -# For nvidia-drivers blocker, see bug #413637 .
115 -RDEPEND="${COMMON_DEPEND}
116 - !=www-client/chromium-9999
117 - !<www-plugins/chrome-binary-plugins-57
118 - x11-misc/xdg-utils
119 - virtual/opengl
120 - virtual/ttf-fonts
121 - !gtk3? ( x11-libs/gtk+:2 )
122 - gtk3? ( x11-libs/gtk+:3 )
123 - selinux? ( sec-policy/selinux-chromium )
124 - tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )
125 - widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] )
126 -"
127 -# dev-vcs/git - https://bugs.gentoo.org/593476
128 -DEPEND="${COMMON_DEPEND}
129 - >=app-arch/gzip-1.7
130 - !arm? (
131 - dev-lang/yasm
132 - )
133 - dev-lang/perl
134 - dev-perl/JSON
135 - >=dev-util/gperf-3.0.3
136 - dev-util/ninja
137 - sys-apps/hwids[usb(+)]
138 - >=sys-devel/bison-2.4.3
139 - sys-devel/flex
140 - virtual/pkgconfig
141 - dev-vcs/git
142 - x11-libs/gtk+:2
143 - x11-libs/gtk+:3
144 - $(python_gen_any_dep '
145 - dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
146 - >=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]
147 - dev-python/html5lib[${PYTHON_USEDEP}]
148 - dev-python/simplejson[${PYTHON_USEDEP}]
149 - ')
150 -"
151 -
152 -# Keep this in sync with the python_gen_any_dep call.
153 -python_check_deps() {
154 - has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" &&
155 - has_version --host-root ">=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]" &&
156 - has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" &&
157 - has_version --host-root "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/noto
174 -- media-fonts/ja-ipafonts
175 -- media-fonts/takao-fonts
176 -- media-fonts/wqy-microhei
177 -- media-fonts/wqy-zenhei
178 -
179 -Depending on your desktop environment, you may need
180 -to install additional packages to get icons on the Downloads page.
181 -
182 -For KDE, the required package is kde-frameworks/oxygen-icons.
183 -
184 -For other desktop environments, try one of the following:
185 -- x11-themes/gnome-icon-theme
186 -- x11-themes/tango-icon-theme
187 -"
188 -
189 -pre_build_checks() {
190 - if [[ ${MERGE_TYPE} != binary ]]; then
191 - local -x CPP="$(tc-getCXX) -E"
192 - if tc-is-clang && ! version_is_at_least "3.9.1" "$(clang-fullversion)"; then
193 - # bugs: #601654
194 - die "At least clang 3.9.1 is required"
195 - fi
196 - if tc-is-gcc && ! version_is_at_least 4.9 "$(gcc-version)"; then
197 - # bugs: #535730, #525374, #518668, #600288
198 - die "At least gcc 4.9 is required"
199 - fi
200 - fi
201 -
202 - # Check build requirements, bug #541816 and bug #471810 .
203 - CHECKREQS_MEMORY="3G"
204 - CHECKREQS_DISK_BUILD="5G"
205 - eshopts_push -s extglob
206 - if is-flagq '-g?(gdb)?([1-9])'; then
207 - CHECKREQS_DISK_BUILD="25G"
208 - if ! use component-build; then
209 - CHECKREQS_MEMORY="16G"
210 - fi
211 - fi
212 - eshopts_pop
213 - check-reqs_pkg_setup
214 -}
215 -
216 -pkg_pretend() {
217 - pre_build_checks
218 -}
219 -
220 -pkg_setup() {
221 - pre_build_checks
222 -
223 - # Make sure the build system will use the right python, bug #344367.
224 - python-any-r1_pkg_setup
225 -
226 - chromium_suid_sandbox_check_kernel_config
227 -}
228 -
229 -src_prepare() {
230 - local PATCHES=(
231 - "${FILESDIR}/${PN}-widevine-r1.patch"
232 - "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch"
233 - "${FILESDIR}/chromium-57-gcc4.patch"
234 - )
235 -
236 - use system-ffmpeg && PATCHES+=( "${FILESDIR}/${PN}-system-ffmpeg-r4.patch" )
237 -
238 - default
239 -
240 - local keeplibs=(
241 - base/third_party/dmg_fp
242 - base/third_party/dynamic_annotations
243 - base/third_party/icu
244 - base/third_party/nspr
245 - base/third_party/superfasthash
246 - base/third_party/symbolize
247 - base/third_party/valgrind
248 - base/third_party/xdg_mime
249 - base/third_party/xdg_user_dirs
250 - breakpad/src/third_party/curl
251 - chrome/third_party/mozilla_security_manager
252 - courgette/third_party
253 - net/third_party/mozilla_security_manager
254 - net/third_party/nss
255 - third_party/WebKit
256 - third_party/analytics
257 - third_party/angle
258 - third_party/angle/src/common/third_party/numerics
259 - third_party/angle/src/third_party/compiler
260 - third_party/angle/src/third_party/libXNVCtrl
261 - third_party/angle/src/third_party/murmurhash
262 - third_party/angle/src/third_party/trace_event
263 - third_party/boringssl
264 - third_party/brotli
265 - third_party/cacheinvalidation
266 - third_party/catapult
267 - third_party/catapult/third_party/polymer
268 - third_party/catapult/third_party/py_vulcanize
269 - third_party/catapult/third_party/py_vulcanize/third_party/rcssmin
270 - third_party/catapult/third_party/py_vulcanize/third_party/rjsmin
271 - third_party/catapult/tracing/third_party/d3
272 - third_party/catapult/tracing/third_party/gl-matrix
273 - third_party/catapult/tracing/third_party/jszip
274 - third_party/catapult/tracing/third_party/mannwhitneyu
275 - third_party/ced
276 - third_party/cld_2
277 - third_party/cld_3
278 - third_party/cros_system_api
279 - third_party/devscripts
280 - third_party/dom_distiller_js
281 - third_party/fips181
282 - third_party/flatbuffers
283 - third_party/flot
284 - third_party/google_input_tools
285 - third_party/google_input_tools/third_party/closure_library
286 - third_party/google_input_tools/third_party/closure_library/third_party/closure
287 - third_party/hunspell
288 - third_party/iccjpeg
289 - third_party/inspector_protocol
290 - third_party/jinja2
291 - third_party/jstemplate
292 - third_party/khronos
293 - third_party/leveldatabase
294 - third_party/libXNVCtrl
295 - third_party/libaddressinput
296 - third_party/libjingle
297 - third_party/libphonenumber
298 - third_party/libsecret
299 - third_party/libsrtp
300 - third_party/libudev
301 - third_party/libusb
302 - third_party/libwebm
303 - third_party/libxml/chromium
304 - third_party/libyuv
305 - third_party/lss
306 - third_party/lzma_sdk
307 - third_party/markupsafe
308 - third_party/mesa
309 - third_party/modp_b64
310 - third_party/mt19937ar
311 - third_party/openh264
312 - third_party/openmax_dl
313 - third_party/opus
314 - third_party/ots
315 - third_party/pdfium
316 - third_party/pdfium/third_party/agg23
317 - third_party/pdfium/third_party/base
318 - third_party/pdfium/third_party/bigint
319 - third_party/pdfium/third_party/freetype
320 - third_party/pdfium/third_party/lcms2-2.6
321 - third_party/pdfium/third_party/libjpeg
322 - third_party/pdfium/third_party/libopenjpeg20
323 - third_party/pdfium/third_party/libpng16
324 - third_party/pdfium/third_party/libtiff
325 - third_party/pdfium/third_party/zlib_v128
326 - third_party/ply
327 - third_party/polymer
328 - third_party/protobuf
329 - third_party/protobuf/third_party/six
330 - third_party/qcms
331 - third_party/sfntly
332 - third_party/skia
333 - third_party/smhasher
334 - third_party/sqlite
335 - third_party/tcmalloc
336 - third_party/usrsctp
337 - third_party/web-animations-js
338 - third_party/webdriver
339 - third_party/webrtc
340 - third_party/widevine
341 - third_party/woff2
342 - third_party/x86inc
343 - third_party/zlib/google
344 - url/third_party/mozilla
345 - v8/src/third_party/valgrind
346 - v8/third_party/inspector_protocol
347 -
348 - # gyp -> gn leftovers
349 - base/third_party/libevent
350 - third_party/adobe
351 - third_party/speech-dispatcher
352 - third_party/usb_ids
353 - third_party/xdg-utils
354 - third_party/yasm/run_yasm.py
355 - )
356 - if ! use system-ffmpeg; then
357 - keeplibs+=( third_party/ffmpeg )
358 - fi
359 - if ! use system-libvpx; then
360 - keeplibs+=( third_party/libvpx )
361 - keeplibs+=( third_party/libvpx/source/libvpx/third_party/x86inc )
362 - fi
363 -
364 - # Remove most bundled libraries. Some are still needed.
365 - build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die
366 -}
367 -
368 -src_configure() {
369 - local myconf_gn=""
370 -
371 - # GN needs explicit config for Debug/Release as opposed to inferring it from build directory.
372 - myconf_gn+=" is_debug=false"
373 -
374 - # Component build isn't generally intended for use by end users. It's mostly useful
375 - # for development and debugging.
376 - myconf_gn+=" is_component_build=$(usex component-build true false)"
377 -
378 - # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
379 - myconf_gn+=" enable_nacl=false"
380 -
381 - # Use system-provided libraries.
382 - # TODO: use_system_hunspell (upstream changes needed).
383 - # TODO: use_system_libsrtp (bug #459932).
384 - # TODO: use_system_libusb (http://crbug.com/266149).
385 - # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
386 - # TODO: use_system_protobuf (bug #525560).
387 - # TODO: use_system_ssl (http://crbug.com/58087).
388 - # TODO: use_system_sqlite (http://crbug.com/22208).
389 -
390 - # libevent: https://bugs.gentoo.org/593458
391 - local gn_system_libraries=(
392 - flac
393 - harfbuzz-ng
394 - icu
395 - libjpeg
396 - libpng
397 - libwebp
398 - libxml
399 - libxslt
400 - re2
401 - snappy
402 - yasm
403 - zlib
404 - )
405 - if use system-ffmpeg; then
406 - gn_system_libraries+=( ffmpeg )
407 - fi
408 - if use system-libvpx; then
409 - gn_system_libraries+=( libvpx )
410 - fi
411 - build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die
412 -
413 - # Optional dependencies.
414 - myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)"
415 - myconf_gn+=" enable_widevine=$(usex widevine true false)"
416 - myconf_gn+=" use_cups=$(usex cups true false)"
417 - myconf_gn+=" use_gconf=$(usex gconf true false)"
418 - myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)"
419 - myconf_gn+=" use_gtk3=$(usex gtk3 true false)"
420 - myconf_gn+=" use_kerberos=$(usex kerberos true false)"
421 - myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)"
422 -
423 - # TODO: link_pulseaudio=true for GN.
424 -
425 - myconf_gn+=" fieldtrial_testing_like_official_build=true"
426 -
427 - if tc-is-clang; then
428 - myconf_gn+=" is_clang=true clang_base_path=\"/usr\" clang_use_chrome_plugins=false"
429 - else
430 - myconf_gn+=" is_clang=false"
431 - fi
432 -
433 - # Never use bundled gold binary. Disable gold linker flags for now.
434 - # Do not use bundled clang.
435 - # Trying to use gold results in linker crash.
436 - myconf_gn+=" use_gold=false use_sysroot=false linux_use_bundled_binutils=false"
437 -
438 - ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
439 - myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)"
440 - myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\""
441 -
442 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
443 - # Note: these are for Gentoo use ONLY. For your own distribution,
444 - # please get your own set of keys. Feel free to contact chromium@g.o
445 - # for more info.
446 - local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc"
447 - local google_default_client_id="329227923882.apps.googleusercontent.com"
448 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
449 - myconf_gn+=" google_api_key=\"${google_api_key}\""
450 - myconf_gn+=" google_default_client_id=\"${google_default_client_id}\""
451 - myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\""
452 -
453 - local myarch="$(tc-arch)"
454 - if [[ $myarch = amd64 ]] ; then
455 - target_arch=x64
456 - ffmpeg_target_arch=x64
457 - elif [[ $myarch = x86 ]] ; then
458 - target_arch=ia32
459 - ffmpeg_target_arch=ia32
460 - elif [[ $myarch = arm64 ]] ; then
461 - target_arch=arm64
462 - ffmpeg_target_arch=arm64
463 - elif [[ $myarch = arm ]] ; then
464 - target_arch=arm
465 - ffmpeg_target_arch=$(usex neon arm-neon arm)
466 - else
467 - die "Failed to determine target arch, got '$myarch'."
468 - fi
469 -
470 - # Make sure that -Werror doesn't get added to CFLAGS by the build system.
471 - # Depending on GCC version the warnings are different and we don't want
472 - # the build to fail because of that.
473 - myconf_gn+=" treat_warnings_as_errors=false"
474 -
475 - # Disable fatal linker warnings, bug 506268.
476 - myconf_gn+=" fatal_linker_warnings=false"
477 -
478 - # Avoid CFLAGS problems, bug #352457, bug #390147.
479 - if ! use custom-cflags; then
480 - replace-flags "-Os" "-O2"
481 - strip-flags
482 -
483 - # Prevent linker from running out of address space, bug #471810 .
484 - if use x86; then
485 - filter-flags "-g*"
486 - fi
487 -
488 - # Prevent libvpx build failures. Bug 530248, 544702, 546984.
489 - if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
490 - filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2
491 - fi
492 - fi
493 -
494 - # Make sure the build system will use the right tools, bug #340795.
495 - tc-export AR CC CXX NM
496 -
497 - # https://bugs.gentoo.org/588596
498 - append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks)
499 -
500 - # Define a custom toolchain for GN
501 - myconf_gn+=" custom_toolchain=\"${FILESDIR}/toolchain:default\""
502 -
503 - # Tools for building programs to be executed on the build system, bug #410883.
504 - if tc-is-cross-compiler; then
505 - export AR_host=$(tc-getBUILD_AR)
506 - export CC_host=$(tc-getBUILD_CC)
507 - export CXX_host=$(tc-getBUILD_CXX)
508 - export NM_host=$(tc-getBUILD_NM)
509 - fi
510 -
511 - # Bug 491582.
512 - export TMPDIR="${WORKDIR}/temp"
513 - mkdir -p -m 755 "${TMPDIR}" || die
514 -
515 - if ! use system-ffmpeg; then
516 - local build_ffmpeg_args=""
517 - if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
518 - build_ffmpeg_args+=" --disable-asm"
519 - fi
520 -
521 - # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
522 - einfo "Configuring bundled ffmpeg..."
523 - pushd third_party/ffmpeg > /dev/null || die
524 - chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
525 - --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
526 - chromium/scripts/copy_config.sh || die
527 - chromium/scripts/generate_gn.py || die
528 - popd > /dev/null || die
529 - fi
530 -
531 - third_party/libaddressinput/chromium/tools/update-strings.py || die
532 -
533 - touch chrome/test/data/webui/i18n_process_css_test.html || die
534 -
535 - einfo "Configuring Chromium..."
536 - # TODO: bootstrapped gn binary hangs when using tcmalloc with portage's sandbox.
537 - tools/gn/bootstrap/bootstrap.py -v --gn-gen-args "${myconf_gn} use_allocator=\"none\"" || die
538 - myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")"
539 - out/Release/gn gen --args="${myconf_gn}" out/Release || die
540 -}
541 -
542 -eninja() {
543 - if [[ -z ${NINJAOPTS+set} ]]; then
544 - local jobs=$(makeopts_jobs)
545 - local loadavg=$(makeopts_loadavg)
546 -
547 - if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
548 - NINJAOPTS+=" -j ${jobs}"
549 - fi
550 - if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
551 - NINJAOPTS+=" -l ${loadavg}"
552 - fi
553 - fi
554 - set -- ninja -v ${NINJAOPTS} "$@"
555 - echo "$@"
556 - "$@"
557 -}
558 -
559 -src_compile() {
560 - local ninja_targets="chrome chromedriver"
561 - if use suid; then
562 - ninja_targets+=" chrome_sandbox"
563 - fi
564 -
565 - # Build mksnapshot and pax-mark it.
566 - eninja -C out/Release mksnapshot || die
567 - pax-mark m out/Release/mksnapshot
568 -
569 - # Even though ninja autodetects number of CPUs, we respect
570 - # user's options, for debugging with -j 1 or any other reason.
571 - eninja -C out/Release ${ninja_targets} || die
572 -
573 - pax-mark m out/Release/chrome
574 -}
575 -
576 -src_install() {
577 - local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
578 - exeinto "${CHROMIUM_HOME}"
579 - doexe out/Release/chrome
580 -
581 - if use suid; then
582 - newexe out/Release/chrome_sandbox chrome-sandbox
583 - fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
584 - fi
585 -
586 - doexe out/Release/chromedriver
587 -
588 - # if ! use arm; then
589 - # doexe out/Release/nacl_helper{,_bootstrap} || die
590 - # insinto "${CHROMIUM_HOME}"
591 - # doins out/Release/nacl_irt_*.nexe || die
592 - # doins out/Release/libppGoogleNaClPluginChrome.so || die
593 - # fi
594 -
595 - local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
596 - sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
597 - doexe chromium-launcher.sh
598 -
599 - # It is important that we name the target "chromium-browser",
600 - # xdg-utils expect it; bug #355517.
601 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser
602 - # keep the old symlink around for consistency
603 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium
604 -
605 - dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver
606 -
607 - # Allow users to override command-line options, bug #357629.
608 - insinto /etc/chromium
609 - newins "${FILESDIR}/chromium.default" "default"
610 -
611 - pushd out/Release/locales > /dev/null || die
612 - chromium_remove_language_paks
613 - popd
614 -
615 - if use widevine; then
616 - # These will be provided by chrome-binary-plugins
617 - rm out/Release/libwidevinecdm*.so || die
618 - fi
619 -
620 - insinto "${CHROMIUM_HOME}"
621 - doins out/Release/*.bin
622 - doins out/Release/*.pak
623 - doins out/Release/*.so
624 -
625 - # Needed by bundled icu
626 - # doins out/Release/icudtl.dat
627 -
628 - doins -r out/Release/locales
629 - doins -r out/Release/resources
630 -
631 - newman out/Release/chrome.1 chromium.1
632 - newman out/Release/chrome.1 chromium-browser.1
633 -
634 - # Install icons and desktop entry.
635 - local branding size
636 - for size in 16 22 24 32 48 64 128 256 ; do
637 - case ${size} in
638 - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
639 - *) branding="chrome/app/theme/chromium" ;;
640 - esac
641 - newicon -s ${size} "${branding}/product_logo_${size}.png" \
642 - chromium-browser.png
643 - done
644 -
645 - local mime_types="text/html;text/xml;application/xhtml+xml;"
646 - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
647 - mime_types+="x-scheme-handler/ftp;" # bug #412185
648 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
649 - make_desktop_entry \
650 - chromium-browser \
651 - "Chromium" \
652 - chromium-browser \
653 - "Network;WebBrowser" \
654 - "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
655 - sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
656 -
657 - # Install GNOME default application entry (bug #303100).
658 - insinto /usr/share/gnome-control-center/default-apps
659 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml
660 -
661 - readme.gentoo_create_doc
662 -}
663 -
664 -pkg_preinst() {
665 - gnome2_icon_savelist
666 -}
667 -
668 -pkg_postrm() {
669 - gnome2_icon_cache_update
670 - xdg_desktop_database_update
671 -}
672 -
673 -pkg_postinst() {
674 - gnome2_icon_cache_update
675 - xdg_desktop_database_update
676 - readme.gentoo_print_elog
677 -}