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: Tue, 20 Jun 2017 17:31:38
Message-Id: 1497979887.f9883d0944334e46abbc0a0821f201a6e0e6a4ca.floppym@gentoo
1 commit: f9883d0944334e46abbc0a0821f201a6e0e6a4ca
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 20 17:31:27 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 20 17:31:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9883d09
7
8 www-client/chromium: remove old
9
10 Package-Manager: Portage-2.3.6_p7, Repoman-2.3.2_p75
11
12 www-client/chromium/Manifest | 1 -
13 www-client/chromium/chromium-59.0.3071.86.ebuild | 629 -----------------------
14 2 files changed, 630 deletions(-)
15
16 diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
17 index 7796895992a..13d421824d6 100644
18 --- a/www-client/chromium/Manifest
19 +++ b/www-client/chromium/Manifest
20 @@ -1,5 +1,4 @@
21 DIST chromium-59.0.3071.104.tar.xz 531895868 SHA256 a949fa166cdcdbd8419fbdb4583804613d9845130f0c851e4c647d79a4c300d0 SHA512 419cf5bafa80f190cd301c2933502351929c1ef1d5cfedc720ce6762674a0e6af3b4246a8f92e0c29743420338b056061d4e7f9f4a4066a5bdd4d2ee8db3ddbf WHIRLPOOL ab2fbd1beeb485a5c07743a5a84c850b5ad8178a1f97421a0aa0573817b474e633a6ac65ad43f7db67d35d257183ea4eceacd12b4cad63f88cd9777cfa498e68
22 -DIST chromium-59.0.3071.86.tar.xz 531842404 SHA256 c31431aa9f4ae521d784bee89792e7fa05793cb822bfb8d3fbacaf414b29ace7 SHA512 1b92956435dcc422f3edf0ccd031007a19d291620d5af284ac2c1d2578b8524691713927b47130d2fd7c9acb7d9cd0376e9f5e3821b5feece7529b8b7bddf193 WHIRLPOOL 59454903b5a79f04a47e368fd9d18a22ceedc9e90650278e58523e8bedf6aecd3ef64d795a83524c514d7adc2aab847585971ae213af38c651a9c9924f56c601
23 DIST chromium-60.0.3112.24.tar.xz 537341808 SHA256 26a4ef3e94399d23c077197ea47d5aab5d9165a6aa7eb8d4d66167fc043f2a94 SHA512 3abb8bd78f9235c69ae1372d939c215d582da00125ad26aa28e1c4dc2aef0b40e5cf593b6b0438bddcf9ef5928df0e44bed5e7b1a8752706704f4d71fae9353d WHIRLPOOL 467e3b8c4ea95c7bb432c1a1e6557e570141d7503b98e6a9bd8d2bded1e83779747c5f01358c877378a438f198d0db104ccb2ad044dcc22ad3d39d99ad183769
24 DIST chromium-60.0.3112.32.tar.xz 537426032 SHA256 d972469bfc26a3d135a1863c22b88e23a9f00096841f6392dbb83b75ad0d17f1 SHA512 625bac567f0717d1077ac77023c87bdd2ad1244d63c50ce6935bcb41b85aab4c06b05fda7e0f48cc7305c331080a350a16592adb37583c13736c97a55404d6ab WHIRLPOOL 78af7bbf83466c044428f294209512c27ed649e746829df083edf8e8fc4eddb23618606ec8571bc4eb433a7d67e921236c562c2c175f3685017ef2576b3f7802
25 DIST chromium-61.0.3124.4.tar.xz 542178452 SHA256 8976732d3fbbbfe188d79cb64169a5ceafe8e23351b8fb650cfd02fdfd74a83c SHA512 6d690824376382774957c6eb0a35cb3bd443d3c501d7d5988d912dccd17da44e8e2bd5f9ac8b59d9381d7fbf67216e001dcf081591bd95c732018155f7b212f2 WHIRLPOOL 9a3720bb615a4f66cc77b5250dad50afb2301e076b1e0e334c0db770f420862051acac0bc68907ea1cc3f4b6a6edb108ea44f392b520c8ba916612f7eb7e54fa
26
27 diff --git a/www-client/chromium/chromium-59.0.3071.86.ebuild b/www-client/chromium/chromium-59.0.3071.86.ebuild
28 deleted file mode 100644
29 index 5e2ae01959e..00000000000
30 --- a/www-client/chromium/chromium-59.0.3071.86.ebuild
31 +++ /dev/null
32 @@ -1,629 +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 ninja-utils 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/expat:=
66 - dev-libs/glib:2
67 - dev-libs/icu:=
68 - dev-libs/libxslt:=
69 - dev-libs/nspr:=
70 - >=dev-libs/nss-3.14.3:=
71 - >=dev-libs/re2-0.2016.05.01:=
72 - gconf? ( >=gnome-base/gconf-2.24.0:= )
73 - gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
74 - >=media-libs/alsa-lib-1.0.19:=
75 - media-libs/fontconfig:=
76 - media-libs/freetype:=
77 - >=media-libs/harfbuzz-1.4.2:=[icu(-)]
78 - media-libs/libjpeg-turbo:=
79 - media-libs/libpng:=
80 - system-libvpx? ( media-libs/libvpx:=[postproc,svc] )
81 - pulseaudio? ( media-sound/pulseaudio:= )
82 - system-ffmpeg? ( >=media-video/ffmpeg-3:= )
83 - sys-apps/dbus:=
84 - sys-apps/pciutils:=
85 - virtual/udev
86 - x11-libs/cairo:=
87 - x11-libs/gdk-pixbuf:2
88 - x11-libs/libX11:=
89 - x11-libs/libXcomposite:=
90 - x11-libs/libXcursor:=
91 - x11-libs/libXdamage:=
92 - x11-libs/libXext:=
93 - x11-libs/libXfixes:=
94 - >=x11-libs/libXi-1.6.0:=
95 - x11-libs/libXrandr:=
96 - x11-libs/libXrender:=
97 - x11-libs/libXScrnSaver:=
98 - x11-libs/libXtst:=
99 - x11-libs/pango:=
100 - app-arch/snappy:=
101 - media-libs/flac:=
102 - >=media-libs/libwebp-0.4.0:=
103 - sys-libs/zlib:=[minizip]
104 - kerberos? ( virtual/krb5 )
105 -"
106 -# For nvidia-drivers blocker, see bug #413637 .
107 -RDEPEND="${COMMON_DEPEND}
108 - !=www-client/chromium-9999
109 - !<www-plugins/chrome-binary-plugins-57
110 - x11-misc/xdg-utils
111 - virtual/opengl
112 - virtual/ttf-fonts
113 - !gtk3? ( x11-libs/gtk+:2 )
114 - gtk3? ( x11-libs/gtk+:3 )
115 - selinux? ( sec-policy/selinux-chromium )
116 - tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )
117 - widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] )
118 -"
119 -# dev-vcs/git - https://bugs.gentoo.org/593476
120 -# sys-apps/sandbox - https://crbug.com/586444
121 -DEPEND="${COMMON_DEPEND}
122 - >=app-arch/gzip-1.7
123 - !arm? (
124 - dev-lang/yasm
125 - )
126 - dev-lang/perl
127 - >=dev-util/gperf-3.0.3
128 - dev-util/ninja
129 - net-libs/nodejs
130 - sys-apps/hwids[usb(+)]
131 - tcmalloc? ( !<sys-apps/sandbox-2.11 )
132 - >=sys-devel/bison-2.4.3
133 - sys-devel/flex
134 - virtual/pkgconfig
135 - dev-vcs/git
136 - $(python_gen_any_dep '
137 - dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
138 - >=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]
139 - dev-python/html5lib[${PYTHON_USEDEP}]
140 - dev-python/simplejson[${PYTHON_USEDEP}]
141 - ')
142 -"
143 -
144 -# Keep this in sync with the python_gen_any_dep call.
145 -python_check_deps() {
146 - has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" &&
147 - has_version --host-root ">=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]" &&
148 - has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" &&
149 - has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]"
150 -}
151 -
152 -if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
153 - EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
154 -fi
155 -
156 -DISABLE_AUTOFORMATTING="yes"
157 -DOC_CONTENTS="
158 -Some web pages may require additional fonts to display properly.
159 -Try installing some of the following packages if some characters
160 -are not displayed properly:
161 -- media-fonts/arphicfonts
162 -- media-fonts/bitstream-cyberbit
163 -- media-fonts/droid
164 -- media-fonts/ipamonafont
165 -- media-fonts/noto
166 -- media-fonts/ja-ipafonts
167 -- media-fonts/takao-fonts
168 -- media-fonts/wqy-microhei
169 -- media-fonts/wqy-zenhei
170 -
171 -To fix broken icons on the Downloads page, you should install an icon
172 -theme that covers the appropriate MIME types, and configure this as your
173 -GTK+ icon theme.
174 -"
175 -
176 -pre_build_checks() {
177 - if [[ ${MERGE_TYPE} != binary ]]; then
178 - local -x CPP="$(tc-getCXX) -E"
179 - if tc-is-clang && ! version_is_at_least "3.9.1" "$(clang-fullversion)"; then
180 - # bugs: #601654
181 - die "At least clang 3.9.1 is required"
182 - fi
183 - if tc-is-gcc && ! version_is_at_least 4.8 "$(gcc-version)"; then
184 - # bugs: #535730, #525374, #518668, #600288
185 - die "At least gcc 4.8 is required"
186 - fi
187 - fi
188 -
189 - # Check build requirements, bug #541816 and bug #471810 .
190 - CHECKREQS_MEMORY="3G"
191 - CHECKREQS_DISK_BUILD="5G"
192 - eshopts_push -s extglob
193 - if is-flagq '-g?(gdb)?([1-9])'; then
194 - CHECKREQS_DISK_BUILD="25G"
195 - if ! use component-build; then
196 - CHECKREQS_MEMORY="16G"
197 - fi
198 - fi
199 - eshopts_pop
200 - check-reqs_pkg_setup
201 -}
202 -
203 -pkg_pretend() {
204 - pre_build_checks
205 -}
206 -
207 -pkg_setup() {
208 - pre_build_checks
209 -
210 - # Make sure the build system will use the right python, bug #344367.
211 - python-any-r1_pkg_setup
212 -
213 - chromium_suid_sandbox_check_kernel_config
214 -}
215 -
216 -src_prepare() {
217 - local PATCHES=(
218 - "${FILESDIR}/${PN}-widevine-r1.patch"
219 - "${FILESDIR}/${PN}-FORTIFY_SOURCE.patch"
220 - "${FILESDIR}/skia-avx2.patch"
221 - "${FILESDIR}/${PN}-dma-buf-r1.patch"
222 - "${FILESDIR}/${PN}-system-ffmpeg-r6.patch"
223 - "${FILESDIR}/${PN}-system-icu-r1.patch"
224 - )
225 -
226 - default
227 -
228 - mkdir -p third_party/node/linux/node-linux-x64/bin || die
229 - ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die
230 -
231 - local keeplibs=(
232 - base/third_party/dmg_fp
233 - base/third_party/dynamic_annotations
234 - base/third_party/icu
235 - base/third_party/nspr
236 - base/third_party/superfasthash
237 - base/third_party/symbolize
238 - base/third_party/valgrind
239 - base/third_party/xdg_mime
240 - base/third_party/xdg_user_dirs
241 - breakpad/src/third_party/curl
242 - chrome/third_party/mozilla_security_manager
243 - courgette/third_party
244 - net/third_party/mozilla_security_manager
245 - net/third_party/nss
246 - third_party/WebKit
247 - third_party/analytics
248 - third_party/angle
249 - third_party/angle/src/common/third_party/numerics
250 - third_party/angle/src/third_party/compiler
251 - third_party/angle/src/third_party/libXNVCtrl
252 - third_party/angle/src/third_party/murmurhash
253 - third_party/angle/src/third_party/trace_event
254 - third_party/boringssl
255 - third_party/brotli
256 - third_party/cacheinvalidation
257 - third_party/catapult
258 - third_party/catapult/third_party/polymer
259 - third_party/catapult/third_party/py_vulcanize
260 - third_party/catapult/third_party/py_vulcanize/third_party/rcssmin
261 - third_party/catapult/third_party/py_vulcanize/third_party/rjsmin
262 - third_party/catapult/tracing/third_party/d3
263 - third_party/catapult/tracing/third_party/gl-matrix
264 - third_party/catapult/tracing/third_party/jszip
265 - third_party/catapult/tracing/third_party/mannwhitneyu
266 - third_party/ced
267 - third_party/cld_2
268 - third_party/cld_3
269 - third_party/cros_system_api
270 - third_party/devscripts
271 - third_party/dom_distiller_js
272 - third_party/fips181
273 - third_party/flatbuffers
274 - third_party/flot
275 - third_party/freetype
276 - third_party/google_input_tools
277 - third_party/google_input_tools/third_party/closure_library
278 - third_party/google_input_tools/third_party/closure_library/third_party/closure
279 - third_party/hunspell
280 - third_party/iccjpeg
281 - third_party/inspector_protocol
282 - third_party/jinja2
283 - third_party/jstemplate
284 - third_party/khronos
285 - third_party/leveldatabase
286 - third_party/libXNVCtrl
287 - third_party/libaddressinput
288 - third_party/libjingle
289 - third_party/libphonenumber
290 - third_party/libsecret
291 - third_party/libsrtp
292 - third_party/libudev
293 - third_party/libusb
294 - third_party/libwebm
295 - third_party/libxml
296 - third_party/libyuv
297 - third_party/lss
298 - third_party/lzma_sdk
299 - third_party/markupsafe
300 - third_party/mesa
301 - third_party/modp_b64
302 - third_party/mt19937ar
303 - third_party/node
304 - third_party/node/node_modules/vulcanize/third_party/UglifyJS2
305 - third_party/openh264
306 - third_party/openmax_dl
307 - third_party/opus
308 - third_party/ots
309 - third_party/pdfium
310 - third_party/pdfium/third_party/agg23
311 - third_party/pdfium/third_party/base
312 - third_party/pdfium/third_party/build
313 - third_party/pdfium/third_party/bigint
314 - third_party/pdfium/third_party/freetype
315 - third_party/pdfium/third_party/lcms2-2.6
316 - third_party/pdfium/third_party/libopenjpeg20
317 - third_party/pdfium/third_party/libpng16
318 - third_party/pdfium/third_party/libtiff
319 - third_party/ply
320 - third_party/polymer
321 - third_party/protobuf
322 - third_party/protobuf/third_party/six
323 - third_party/qcms
324 - third_party/sfntly
325 - third_party/skia
326 - third_party/smhasher
327 - third_party/sqlite
328 - third_party/swiftshader
329 - third_party/swiftshader/third_party/llvm-subzero
330 - third_party/swiftshader/third_party/pnacl-subzero
331 - third_party/swiftshader/third_party/subzero
332 - third_party/tcmalloc
333 - third_party/usrsctp
334 - third_party/web-animations-js
335 - third_party/webdriver
336 - third_party/webrtc
337 - third_party/widevine
338 - third_party/woff2
339 - third_party/x86inc
340 - third_party/zlib/google
341 - url/third_party/mozilla
342 - v8/src/third_party/valgrind
343 - v8/third_party/inspector_protocol
344 -
345 - # gyp -> gn leftovers
346 - base/third_party/libevent
347 - third_party/adobe
348 - third_party/speech-dispatcher
349 - third_party/usb_ids
350 - third_party/xdg-utils
351 - third_party/yasm/run_yasm.py
352 - )
353 - if ! use system-ffmpeg; then
354 - keeplibs+=( third_party/ffmpeg )
355 - fi
356 - if ! use system-libvpx; then
357 - keeplibs+=( third_party/libvpx )
358 - keeplibs+=( third_party/libvpx/source/libvpx/third_party/x86inc )
359 - fi
360 -
361 - # Remove most bundled libraries. Some are still needed.
362 - build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die
363 -}
364 -
365 -src_configure() {
366 - local myconf_gn=""
367 -
368 - # GN needs explicit config for Debug/Release as opposed to inferring it from build directory.
369 - myconf_gn+=" is_debug=false"
370 -
371 - # Component build isn't generally intended for use by end users. It's mostly useful
372 - # for development and debugging.
373 - myconf_gn+=" is_component_build=$(usex component-build true false)"
374 -
375 - myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")"
376 -
377 - # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
378 - myconf_gn+=" enable_nacl=false"
379 -
380 - # Use system-provided libraries.
381 - # TODO: use_system_hunspell (upstream changes needed).
382 - # TODO: use_system_libsrtp (bug #459932).
383 - # TODO: use_system_libusb (http://crbug.com/266149).
384 - # TODO: xml (bug #616818).
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 - libdrm
396 - libjpeg
397 - libpng
398 - libwebp
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 - tools/gn/bootstrap/bootstrap.py -v --no-clean --gn-gen-args "${myconf_gn}" || die
537 - out/Release/gn gen --args="${myconf_gn}" out/Release || die
538 -}
539 -
540 -src_compile() {
541 - local ninja_targets="chrome chromedriver"
542 - if use suid; then
543 - ninja_targets+=" chrome_sandbox"
544 - fi
545 -
546 - # Build mksnapshot and pax-mark it.
547 - eninja -C out/Release mksnapshot || die
548 - pax-mark m out/Release/mksnapshot
549 -
550 - # Even though ninja autodetects number of CPUs, we respect
551 - # user's options, for debugging with -j 1 or any other reason.
552 - eninja -C out/Release ${ninja_targets} || die
553 -
554 - pax-mark m out/Release/chrome
555 -}
556 -
557 -src_install() {
558 - local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser"
559 - exeinto "${CHROMIUM_HOME}"
560 - doexe out/Release/chrome
561 -
562 - if use suid; then
563 - newexe out/Release/chrome_sandbox chrome-sandbox
564 - fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox"
565 - fi
566 -
567 - doexe out/Release/chromedriver
568 -
569 - # if ! use arm; then
570 - # doexe out/Release/nacl_helper{,_bootstrap} || die
571 - # insinto "${CHROMIUM_HOME}"
572 - # doins out/Release/nacl_irt_*.nexe || die
573 - # doins out/Release/libppGoogleNaClPluginChrome.so || die
574 - # fi
575 -
576 - local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" )
577 - sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die
578 - doexe chromium-launcher.sh
579 -
580 - # It is important that we name the target "chromium-browser",
581 - # xdg-utils expect it; bug #355517.
582 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser
583 - # keep the old symlink around for consistency
584 - dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium
585 -
586 - dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver
587 -
588 - # Allow users to override command-line options, bug #357629.
589 - insinto /etc/chromium
590 - newins "${FILESDIR}/chromium.default" "default"
591 -
592 - pushd out/Release/locales > /dev/null || die
593 - chromium_remove_language_paks
594 - popd
595 -
596 - if use widevine; then
597 - # These will be provided by chrome-binary-plugins
598 - rm out/Release/libwidevinecdm*.so || die
599 - fi
600 -
601 - insinto "${CHROMIUM_HOME}"
602 - doins out/Release/*.bin
603 - doins out/Release/*.pak
604 - doins out/Release/*.so
605 -
606 - # Needed by bundled icu
607 - # doins out/Release/icudtl.dat
608 -
609 - doins -r out/Release/locales
610 - doins -r out/Release/resources
611 -
612 - insinto "${CHROMIUM_HOME}/swiftshader"
613 - doins out/Release/swiftshader/*.so
614 -
615 - newman out/Release/chrome.1 chromium.1
616 - newman out/Release/chrome.1 chromium-browser.1
617 -
618 - # Install icons and desktop entry.
619 - local branding size
620 - for size in 16 22 24 32 48 64 128 256 ; do
621 - case ${size} in
622 - 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;;
623 - *) branding="chrome/app/theme/chromium" ;;
624 - esac
625 - newicon -s ${size} "${branding}/product_logo_${size}.png" \
626 - chromium-browser.png
627 - done
628 -
629 - local mime_types="text/html;text/xml;application/xhtml+xml;"
630 - mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797
631 - mime_types+="x-scheme-handler/ftp;" # bug #412185
632 - mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393
633 - make_desktop_entry \
634 - chromium-browser \
635 - "Chromium" \
636 - chromium-browser \
637 - "Network;WebBrowser" \
638 - "MimeType=${mime_types}\nStartupWMClass=chromium-browser"
639 - sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die
640 -
641 - # Install GNOME default application entry (bug #303100).
642 - insinto /usr/share/gnome-control-center/default-apps
643 - newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml
644 -
645 - readme.gentoo_create_doc
646 -}
647 -
648 -pkg_preinst() {
649 - gnome2_icon_savelist
650 -}
651 -
652 -pkg_postrm() {
653 - gnome2_icon_cache_update
654 - xdg_desktop_database_update
655 -}
656 -
657 -pkg_postinst() {
658 - gnome2_icon_cache_update
659 - xdg_desktop_database_update
660 - readme.gentoo_print_elog
661 -}