1 |
commit: c4252bcc71a5954cc73e71521b71cb87146f9429 |
2 |
Author: Stephan Hartmann <stha09 <AT> googlemail <DOT> com> |
3 |
AuthorDate: Fri Feb 14 19:34:55 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 14 20:14:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4252bcc |
7 |
|
8 |
www-client/chromium: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.16 |
11 |
Signed-off-by: Stephan Hartmann <stha09 <AT> googlemail.com> |
12 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
13 |
|
14 |
www-client/chromium/Manifest | 1 - |
15 |
www-client/chromium/chromium-80.0.3987.87.ebuild | 740 ----------------------- |
16 |
2 files changed, 741 deletions(-) |
17 |
|
18 |
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest |
19 |
index c9a9c178c40..361221e3e7c 100644 |
20 |
--- a/www-client/chromium/Manifest |
21 |
+++ b/www-client/chromium/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
DIST chromium-80.0.3987.100.tar.xz 801377116 BLAKE2B 0c99b78794a0c04bcc45fd423d0fabb7db4c9e37ae446b46c33a7b4a98ecc1af9302680e84118809f01dd3bee50b68a301ff0bdd72c5704c028c7984bac812f3 SHA512 b8612693158f9a497723391ed80dd06b152ed71b29e2722a751f94b297e184f09f786405d2c5b460aff6f62c9c6292c673b36019ff72f1fb662cc418cc26127d |
24 |
-DIST chromium-80.0.3987.87.tar.xz 801310184 BLAKE2B d051f77b0e6f167632e383e23983531ee1f44f1fce1629f482cf42882c294816bd98c51ad043b5258aa9652a8da14edf278f70fc63f6978c9dfececa547a1fca SHA512 69aebd760d9b8f2c5f4d15a3a144cd4292ffb11b1536af3596f907e730ac64e909d739bb6e9d322a8f56fac75e4f0b2b5c4c36c4fe4bb52147276b5b0dd03620 |
25 |
DIST chromium-81.0.4044.17.tar.xz 791446724 BLAKE2B 08d8fc6c6c8788fde868270ca874571a4fff42154e340155d5f1eba3ef615202dabaec4d19250cccc5f7f9c665a0acb0df4f44fda6f1417289a84988e501e60a SHA512 bbcfddd5d44dfa940d40846dc66daaf394f079cd3d238ec57889c0b4cf137f7d4245873fba3e4fb9797f145084ca92d75b594f5d9653103b554d34154a1d3e61 |
26 |
|
27 |
diff --git a/www-client/chromium/chromium-80.0.3987.87.ebuild b/www-client/chromium/chromium-80.0.3987.87.ebuild |
28 |
deleted file mode 100644 |
29 |
index 04dadc95af7..00000000000 |
30 |
--- a/www-client/chromium/chromium-80.0.3987.87.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,740 +0,0 @@ |
33 |
-# Copyright 2009-2020 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
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 desktop flag-o-matic multilib ninja-utils pax-utils portability python-any-r1 readme.gentoo-r1 toolchain-funcs 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 ~arm64 ~x86" |
52 |
-IUSE="+closure-compile component-build cups cpu_flags_arm_neon gnome-keyring +hangouts kerberos pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine" |
53 |
-RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" |
54 |
-REQUIRED_USE="component-build? ( !suid )" |
55 |
- |
56 |
-COMMON_DEPEND=" |
57 |
- >=app-accessibility/at-spi2-atk-2.26:2 |
58 |
- app-arch/bzip2:= |
59 |
- cups? ( >=net-print/cups-1.3.11:= ) |
60 |
- >=dev-libs/atk-2.26 |
61 |
- dev-libs/expat:= |
62 |
- dev-libs/glib:2 |
63 |
- system-icu? ( >=dev-libs/icu-65:= ) |
64 |
- >=dev-libs/libxml2-2.9.4-r3:=[icu] |
65 |
- dev-libs/libxslt:= |
66 |
- dev-libs/nspr:= |
67 |
- >=dev-libs/nss-3.26:= |
68 |
- >=dev-libs/re2-0.2019.08.01:= |
69 |
- gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= ) |
70 |
- >=media-libs/alsa-lib-1.0.19:= |
71 |
- media-libs/fontconfig:= |
72 |
- media-libs/freetype:= |
73 |
- >=media-libs/harfbuzz-2.4.0:0=[icu(-)] |
74 |
- media-libs/libjpeg-turbo:= |
75 |
- media-libs/libpng:= |
76 |
- system-libvpx? ( media-libs/libvpx:=[postproc,svc] ) |
77 |
- >=media-libs/openh264-1.6.0:= |
78 |
- pulseaudio? ( media-sound/pulseaudio:= ) |
79 |
- system-ffmpeg? ( |
80 |
- >=media-video/ffmpeg-4:= |
81 |
- || ( |
82 |
- media-video/ffmpeg[-samba] |
83 |
- >=net-fs/samba-4.5.10-r1[-debug(-)] |
84 |
- ) |
85 |
- !=net-fs/samba-4.5.12-r0 |
86 |
- >=media-libs/opus-1.3.1:= |
87 |
- ) |
88 |
- sys-apps/dbus:= |
89 |
- sys-apps/pciutils:= |
90 |
- virtual/udev |
91 |
- x11-libs/cairo:= |
92 |
- x11-libs/gdk-pixbuf:2 |
93 |
- x11-libs/gtk+:3[X] |
94 |
- x11-libs/libX11:= |
95 |
- x11-libs/libXcomposite:= |
96 |
- x11-libs/libXcursor:= |
97 |
- x11-libs/libXdamage:= |
98 |
- x11-libs/libXext:= |
99 |
- x11-libs/libXfixes:= |
100 |
- >=x11-libs/libXi-1.6.0:= |
101 |
- x11-libs/libXrandr:= |
102 |
- x11-libs/libXrender:= |
103 |
- x11-libs/libXScrnSaver:= |
104 |
- x11-libs/libXtst:= |
105 |
- x11-libs/pango:= |
106 |
- app-arch/snappy:= |
107 |
- media-libs/flac:= |
108 |
- >=media-libs/libwebp-0.4.0:= |
109 |
- sys-libs/zlib:=[minizip] |
110 |
- kerberos? ( virtual/krb5 ) |
111 |
-" |
112 |
-# For nvidia-drivers blocker, see bug #413637 . |
113 |
-RDEPEND="${COMMON_DEPEND} |
114 |
- !<www-plugins/chrome-binary-plugins-57 |
115 |
- x11-misc/xdg-utils |
116 |
- virtual/opengl |
117 |
- virtual/ttf-fonts |
118 |
- selinux? ( sec-policy/selinux-chromium ) |
119 |
- tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 ) |
120 |
-" |
121 |
-DEPEND="${COMMON_DEPEND} |
122 |
-" |
123 |
-# dev-vcs/git - https://bugs.gentoo.org/593476 |
124 |
-BDEPEND=" |
125 |
- ${PYTHON_DEPS} |
126 |
- >=app-arch/gzip-1.7 |
127 |
- !arm? ( |
128 |
- dev-lang/yasm |
129 |
- ) |
130 |
- dev-lang/perl |
131 |
- dev-util/gn |
132 |
- dev-vcs/git |
133 |
- >=dev-util/gperf-3.0.3 |
134 |
- >=dev-util/ninja-1.7.2 |
135 |
- >=net-libs/nodejs-7.6.0[inspector] |
136 |
- sys-apps/hwids[usb(+)] |
137 |
- >=sys-devel/bison-2.4.3 |
138 |
- sys-devel/flex |
139 |
- closure-compile? ( virtual/jre ) |
140 |
- virtual/pkgconfig |
141 |
-" |
142 |
- |
143 |
-: ${CHROMIUM_FORCE_CLANG=no} |
144 |
- |
145 |
-if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then |
146 |
- BDEPEND+=" >=sys-devel/clang-7" |
147 |
-fi |
148 |
- |
149 |
-if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
150 |
- EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
151 |
-fi |
152 |
- |
153 |
-DISABLE_AUTOFORMATTING="yes" |
154 |
-DOC_CONTENTS=" |
155 |
-Some web pages may require additional fonts to display properly. |
156 |
-Try installing some of the following packages if some characters |
157 |
-are not displayed properly: |
158 |
-- media-fonts/arphicfonts |
159 |
-- media-fonts/droid |
160 |
-- media-fonts/ipamonafont |
161 |
-- media-fonts/noto |
162 |
-- media-fonts/ja-ipafonts |
163 |
-- media-fonts/takao-fonts |
164 |
-- media-fonts/wqy-microhei |
165 |
-- media-fonts/wqy-zenhei |
166 |
- |
167 |
-To fix broken icons on the Downloads page, you should install an icon |
168 |
-theme that covers the appropriate MIME types, and configure this as your |
169 |
-GTK+ icon theme. |
170 |
- |
171 |
-For native file dialogs in KDE, install kde-apps/kdialog. |
172 |
-" |
173 |
- |
174 |
-PATCHES=( |
175 |
- "${FILESDIR}/chromium-compiler-r10.patch" |
176 |
- "${FILESDIR}/chromium-fix-char_traits.patch" |
177 |
- "${FILESDIR}/chromium-unbundle-zlib-r1.patch" |
178 |
- "${FILESDIR}/chromium-77-system-icu.patch" |
179 |
- "${FILESDIR}/chromium-78-protobuf-export.patch" |
180 |
- "${FILESDIR}/chromium-79-gcc-alignas.patch" |
181 |
- "${FILESDIR}/chromium-80-unbundle-libxml.patch" |
182 |
- "${FILESDIR}/chromium-80-include.patch" |
183 |
- "${FILESDIR}/chromium-80-gcc-quiche.patch" |
184 |
- "${FILESDIR}/chromium-80-gcc-permissive.patch" |
185 |
- "${FILESDIR}/chromium-80-gcc-blink.patch" |
186 |
- "${FILESDIR}/chromium-80-gcc-abstract.patch" |
187 |
- "${FILESDIR}/chromium-80-gcc-incomplete-type.patch" |
188 |
-) |
189 |
- |
190 |
-pre_build_checks() { |
191 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
192 |
- local -x CPP="$(tc-getCXX) -E" |
193 |
- if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 8.0; then |
194 |
- die "At least gcc 8.0 is required" |
195 |
- fi |
196 |
- # component build hangs with tcmalloc enabled due to sandbox issue, bug #695976. |
197 |
- if has usersandbox ${FEATURES} && use tcmalloc && use component-build; then |
198 |
- die "Component build with tcmalloc requires FEATURES=-usersandbox." |
199 |
- fi |
200 |
- if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || tc-is-clang; then |
201 |
- if use component-build; then |
202 |
- die "Component build with clang requires fuzzer headers." |
203 |
- fi |
204 |
- fi |
205 |
- fi |
206 |
- |
207 |
- # Check build requirements, bug #541816 and bug #471810 . |
208 |
- CHECKREQS_MEMORY="3G" |
209 |
- CHECKREQS_DISK_BUILD="7G" |
210 |
- if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then |
211 |
- CHECKREQS_DISK_BUILD="25G" |
212 |
- if ! use component-build; then |
213 |
- CHECKREQS_MEMORY="16G" |
214 |
- fi |
215 |
- fi |
216 |
- check-reqs_pkg_setup |
217 |
-} |
218 |
- |
219 |
-pkg_pretend() { |
220 |
- pre_build_checks |
221 |
-} |
222 |
- |
223 |
-pkg_setup() { |
224 |
- pre_build_checks |
225 |
- |
226 |
- chromium_suid_sandbox_check_kernel_config |
227 |
-} |
228 |
- |
229 |
-src_prepare() { |
230 |
- # Calling this here supports resumption via FEATURES=keepwork |
231 |
- python_setup |
232 |
- |
233 |
- default |
234 |
- |
235 |
- mkdir -p third_party/node/linux/node-linux-x64/bin || die |
236 |
- ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die |
237 |
- |
238 |
- local keeplibs=( |
239 |
- base/third_party/cityhash |
240 |
- base/third_party/double_conversion |
241 |
- base/third_party/dynamic_annotations |
242 |
- base/third_party/icu |
243 |
- base/third_party/nspr |
244 |
- base/third_party/superfasthash |
245 |
- base/third_party/symbolize |
246 |
- base/third_party/valgrind |
247 |
- base/third_party/xdg_mime |
248 |
- base/third_party/xdg_user_dirs |
249 |
- buildtools/third_party/libc++ |
250 |
- buildtools/third_party/libc++abi |
251 |
- chrome/third_party/mozilla_security_manager |
252 |
- courgette/third_party |
253 |
- net/third_party/mozilla_security_manager |
254 |
- net/third_party/nss |
255 |
- net/third_party/quic |
256 |
- net/third_party/uri_template |
257 |
- third_party/abseil-cpp |
258 |
- third_party/angle |
259 |
- third_party/angle/src/common/third_party/base |
260 |
- third_party/angle/src/common/third_party/smhasher |
261 |
- third_party/angle/src/common/third_party/xxhash |
262 |
- third_party/angle/src/third_party/compiler |
263 |
- third_party/angle/src/third_party/libXNVCtrl |
264 |
- third_party/angle/src/third_party/trace_event |
265 |
- third_party/angle/third_party/glslang |
266 |
- third_party/angle/third_party/spirv-headers |
267 |
- third_party/angle/third_party/spirv-tools |
268 |
- third_party/angle/third_party/vulkan-headers |
269 |
- third_party/angle/third_party/vulkan-loader |
270 |
- third_party/angle/third_party/vulkan-tools |
271 |
- third_party/angle/third_party/vulkan-validation-layers |
272 |
- third_party/apple_apsl |
273 |
- third_party/axe-core |
274 |
- third_party/blink |
275 |
- third_party/boringssl |
276 |
- third_party/boringssl/src/third_party/fiat |
277 |
- third_party/breakpad |
278 |
- third_party/breakpad/breakpad/src/third_party/curl |
279 |
- third_party/brotli |
280 |
- third_party/cacheinvalidation |
281 |
- third_party/catapult |
282 |
- third_party/catapult/common/py_vulcanize/third_party/rcssmin |
283 |
- third_party/catapult/common/py_vulcanize/third_party/rjsmin |
284 |
- third_party/catapult/third_party/beautifulsoup4 |
285 |
- third_party/catapult/third_party/html5lib-python |
286 |
- third_party/catapult/third_party/polymer |
287 |
- third_party/catapult/third_party/six |
288 |
- third_party/catapult/tracing/third_party/d3 |
289 |
- third_party/catapult/tracing/third_party/gl-matrix |
290 |
- third_party/catapult/tracing/third_party/jpeg-js |
291 |
- third_party/catapult/tracing/third_party/jszip |
292 |
- third_party/catapult/tracing/third_party/mannwhitneyu |
293 |
- third_party/catapult/tracing/third_party/oboe |
294 |
- third_party/catapult/tracing/third_party/pako |
295 |
- third_party/ced |
296 |
- third_party/cld_3 |
297 |
- third_party/closure_compiler |
298 |
- third_party/crashpad |
299 |
- third_party/crashpad/crashpad/third_party/lss |
300 |
- third_party/crashpad/crashpad/third_party/zlib |
301 |
- third_party/crc32c |
302 |
- third_party/cros_system_api |
303 |
- third_party/dav1d |
304 |
- third_party/dawn |
305 |
- third_party/depot_tools |
306 |
- third_party/devscripts |
307 |
- third_party/devtools-frontend |
308 |
- third_party/devtools-frontend/src/third_party |
309 |
- third_party/dom_distiller_js |
310 |
- third_party/emoji-segmenter |
311 |
- third_party/flatbuffers |
312 |
- third_party/freetype |
313 |
- third_party/libgifcodec |
314 |
- third_party/glslang |
315 |
- third_party/google_input_tools |
316 |
- third_party/google_input_tools/third_party/closure_library |
317 |
- third_party/google_input_tools/third_party/closure_library/third_party/closure |
318 |
- third_party/googletest |
319 |
- third_party/hunspell |
320 |
- third_party/iccjpeg |
321 |
- third_party/inspector_protocol |
322 |
- third_party/jinja2 |
323 |
- third_party/jsoncpp |
324 |
- third_party/jstemplate |
325 |
- third_party/khronos |
326 |
- third_party/leveldatabase |
327 |
- third_party/libXNVCtrl |
328 |
- third_party/libaddressinput |
329 |
- third_party/libaom |
330 |
- third_party/libaom/source/libaom/third_party/vector |
331 |
- third_party/libaom/source/libaom/third_party/x86inc |
332 |
- third_party/libjingle |
333 |
- third_party/libphonenumber |
334 |
- third_party/libsecret |
335 |
- third_party/libsrtp |
336 |
- third_party/libsync |
337 |
- third_party/libudev |
338 |
- third_party/libwebm |
339 |
- third_party/libxml/chromium |
340 |
- third_party/libyuv |
341 |
- third_party/llvm |
342 |
- third_party/lss |
343 |
- third_party/lzma_sdk |
344 |
- third_party/markupsafe |
345 |
- third_party/mesa |
346 |
- third_party/metrics_proto |
347 |
- third_party/modp_b64 |
348 |
- third_party/nasm |
349 |
- third_party/node |
350 |
- third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 |
351 |
- third_party/one_euro_filter |
352 |
- third_party/openscreen |
353 |
- third_party/openscreen/src/third_party/tinycbor/src/src |
354 |
- third_party/ots |
355 |
- third_party/pdfium |
356 |
- third_party/pdfium/third_party/agg23 |
357 |
- third_party/pdfium/third_party/base |
358 |
- third_party/pdfium/third_party/bigint |
359 |
- third_party/pdfium/third_party/freetype |
360 |
- third_party/pdfium/third_party/lcms |
361 |
- third_party/pdfium/third_party/libopenjpeg20 |
362 |
- third_party/pdfium/third_party/libpng16 |
363 |
- third_party/pdfium/third_party/libtiff |
364 |
- third_party/pdfium/third_party/skia_shared |
365 |
- third_party/perfetto |
366 |
- third_party/pffft |
367 |
- third_party/ply |
368 |
- third_party/polymer |
369 |
- third_party/private-join-and-compute |
370 |
- third_party/protobuf |
371 |
- third_party/protobuf/third_party/six |
372 |
- third_party/pyjson5 |
373 |
- third_party/qcms |
374 |
- third_party/rnnoise |
375 |
- third_party/s2cellid |
376 |
- third_party/sfntly |
377 |
- third_party/simplejson |
378 |
- third_party/skia |
379 |
- third_party/skia/include/third_party/skcms |
380 |
- third_party/skia/include/third_party/vulkan |
381 |
- third_party/skia/third_party/skcms |
382 |
- third_party/skia/third_party/vulkan |
383 |
- third_party/smhasher |
384 |
- third_party/spirv-headers |
385 |
- third_party/SPIRV-Tools |
386 |
- third_party/sqlite |
387 |
- third_party/swiftshader |
388 |
- third_party/swiftshader/third_party/llvm-7.0 |
389 |
- third_party/swiftshader/third_party/llvm-subzero |
390 |
- third_party/swiftshader/third_party/marl |
391 |
- third_party/swiftshader/third_party/subzero |
392 |
- third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1 |
393 |
- third_party/unrar |
394 |
- third_party/usrsctp |
395 |
- third_party/vulkan |
396 |
- third_party/web-animations-js |
397 |
- third_party/webdriver |
398 |
- third_party/webrtc |
399 |
- third_party/webrtc/common_audio/third_party/fft4g |
400 |
- third_party/webrtc/common_audio/third_party/spl_sqrt_floor |
401 |
- third_party/webrtc/modules/third_party/fft |
402 |
- third_party/webrtc/modules/third_party/g711 |
403 |
- third_party/webrtc/modules/third_party/g722 |
404 |
- third_party/webrtc/rtc_base/third_party/base64 |
405 |
- third_party/webrtc/rtc_base/third_party/sigslot |
406 |
- third_party/widevine |
407 |
- third_party/woff2 |
408 |
- third_party/wuffs |
409 |
- third_party/zlib/google |
410 |
- tools/grit/third_party/six |
411 |
- url/third_party/mozilla |
412 |
- v8/src/third_party/siphash |
413 |
- v8/src/third_party/valgrind |
414 |
- v8/src/third_party/utf8-decoder |
415 |
- v8/third_party/inspector_protocol |
416 |
- v8/third_party/v8 |
417 |
- |
418 |
- # gyp -> gn leftovers |
419 |
- base/third_party/libevent |
420 |
- third_party/adobe |
421 |
- third_party/speech-dispatcher |
422 |
- third_party/usb_ids |
423 |
- third_party/xdg-utils |
424 |
- third_party/yasm/run_yasm.py |
425 |
- ) |
426 |
- if ! use system-ffmpeg; then |
427 |
- keeplibs+=( third_party/ffmpeg third_party/opus ) |
428 |
- fi |
429 |
- if ! use system-icu; then |
430 |
- keeplibs+=( third_party/icu ) |
431 |
- fi |
432 |
- if ! use system-libvpx; then |
433 |
- keeplibs+=( third_party/libvpx ) |
434 |
- keeplibs+=( third_party/libvpx/source/libvpx/third_party/x86inc ) |
435 |
- fi |
436 |
- if use tcmalloc; then |
437 |
- keeplibs+=( third_party/tcmalloc ) |
438 |
- fi |
439 |
- |
440 |
- # Remove most bundled libraries. Some are still needed. |
441 |
- build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die |
442 |
-} |
443 |
- |
444 |
-src_configure() { |
445 |
- # Calling this here supports resumption via FEATURES=keepwork |
446 |
- python_setup |
447 |
- |
448 |
- local myconf_gn="" |
449 |
- |
450 |
- # Make sure the build system will use the right tools, bug #340795. |
451 |
- tc-export AR CC CXX NM |
452 |
- |
453 |
- if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then |
454 |
- # Force clang since gcc is pretty broken at the moment. |
455 |
- CC=${CHOST}-clang |
456 |
- CXX=${CHOST}-clang++ |
457 |
- strip-unsupported-flags |
458 |
- fi |
459 |
- |
460 |
- if tc-is-clang; then |
461 |
- myconf_gn+=" is_clang=true clang_use_chrome_plugins=false" |
462 |
- else |
463 |
- myconf_gn+=" is_clang=false" |
464 |
- fi |
465 |
- |
466 |
- # Define a custom toolchain for GN |
467 |
- myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
468 |
- |
469 |
- if tc-is-cross-compiler; then |
470 |
- tc-export BUILD_{AR,CC,CXX,NM} |
471 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
472 |
- myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
473 |
- else |
474 |
- myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
475 |
- fi |
476 |
- |
477 |
- # GN needs explicit config for Debug/Release as opposed to inferring it from build directory. |
478 |
- myconf_gn+=" is_debug=false" |
479 |
- |
480 |
- # Component build isn't generally intended for use by end users. It's mostly useful |
481 |
- # for development and debugging. |
482 |
- myconf_gn+=" is_component_build=$(usex component-build true false)" |
483 |
- |
484 |
- myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")" |
485 |
- |
486 |
- # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
487 |
- myconf_gn+=" enable_nacl=false" |
488 |
- |
489 |
- # Use system-provided libraries. |
490 |
- # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). |
491 |
- # TODO: use_system_hunspell (upstream changes needed). |
492 |
- # TODO: use_system_libsrtp (bug #459932). |
493 |
- # TODO: use_system_protobuf (bug #525560). |
494 |
- # TODO: use_system_ssl (http://crbug.com/58087). |
495 |
- # TODO: use_system_sqlite (http://crbug.com/22208). |
496 |
- |
497 |
- # libevent: https://bugs.gentoo.org/593458 |
498 |
- local gn_system_libraries=( |
499 |
- flac |
500 |
- fontconfig |
501 |
- freetype |
502 |
- # Need harfbuzz_from_pkgconfig target |
503 |
- #harfbuzz-ng |
504 |
- libdrm |
505 |
- libjpeg |
506 |
- libpng |
507 |
- libwebp |
508 |
- libxml |
509 |
- libxslt |
510 |
- openh264 |
511 |
- re2 |
512 |
- snappy |
513 |
- yasm |
514 |
- zlib |
515 |
- ) |
516 |
- if use system-ffmpeg; then |
517 |
- gn_system_libraries+=( ffmpeg opus ) |
518 |
- fi |
519 |
- if use system-icu; then |
520 |
- gn_system_libraries+=( icu ) |
521 |
- fi |
522 |
- if use system-libvpx; then |
523 |
- gn_system_libraries+=( libvpx ) |
524 |
- fi |
525 |
- build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die |
526 |
- |
527 |
- # See dependency logic in third_party/BUILD.gn |
528 |
- myconf_gn+=" use_system_harfbuzz=true" |
529 |
- |
530 |
- # Optional dependencies. |
531 |
- myconf_gn+=" closure_compile=$(usex closure-compile true false)" |
532 |
- myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)" |
533 |
- myconf_gn+=" enable_widevine=$(usex widevine true false)" |
534 |
- myconf_gn+=" use_cups=$(usex cups true false)" |
535 |
- myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)" |
536 |
- myconf_gn+=" use_kerberos=$(usex kerberos true false)" |
537 |
- myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)" |
538 |
- |
539 |
- # TODO: link_pulseaudio=true for GN. |
540 |
- |
541 |
- myconf_gn+=" fieldtrial_testing_like_official_build=true" |
542 |
- |
543 |
- # Never use bundled gold binary. Disable gold linker flags for now. |
544 |
- # Do not use bundled clang. |
545 |
- # Trying to use gold results in linker crash. |
546 |
- myconf_gn+=" use_gold=false use_sysroot=false linux_use_bundled_binutils=false use_custom_libcxx=false" |
547 |
- |
548 |
- # Disable forced lld, bug 641556 |
549 |
- myconf_gn+=" use_lld=false" |
550 |
- |
551 |
- ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)" |
552 |
- myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)" |
553 |
- myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\"" |
554 |
- |
555 |
- # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
556 |
- # Note: these are for Gentoo use ONLY. For your own distribution, |
557 |
- # please get your own set of keys. Feel free to contact chromium@g.o |
558 |
- # for more info. |
559 |
- local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" |
560 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
561 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
562 |
- myconf_gn+=" google_api_key=\"${google_api_key}\"" |
563 |
- myconf_gn+=" google_default_client_id=\"${google_default_client_id}\"" |
564 |
- myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\"" |
565 |
- local myarch="$(tc-arch)" |
566 |
- |
567 |
- # Avoid CFLAGS problems, bug #352457, bug #390147. |
568 |
- if ! use custom-cflags; then |
569 |
- replace-flags "-Os" "-O2" |
570 |
- strip-flags |
571 |
- |
572 |
- # Prevent linker from running out of address space, bug #471810 . |
573 |
- if use x86; then |
574 |
- filter-flags "-g*" |
575 |
- fi |
576 |
- |
577 |
- # Prevent libvpx build failures. Bug 530248, 544702, 546984. |
578 |
- if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then |
579 |
- filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 |
580 |
- fi |
581 |
- fi |
582 |
- |
583 |
- if [[ $myarch = amd64 ]] ; then |
584 |
- myconf_gn+=" target_cpu=\"x64\"" |
585 |
- ffmpeg_target_arch=x64 |
586 |
- elif [[ $myarch = x86 ]] ; then |
587 |
- myconf_gn+=" target_cpu=\"x86\"" |
588 |
- ffmpeg_target_arch=ia32 |
589 |
- |
590 |
- # This is normally defined by compiler_cpu_abi in |
591 |
- # build/config/compiler/BUILD.gn, but we patch that part out. |
592 |
- append-flags -msse2 -mfpmath=sse -mmmx |
593 |
- elif [[ $myarch = arm64 ]] ; then |
594 |
- myconf_gn+=" target_cpu=\"arm64\"" |
595 |
- ffmpeg_target_arch=arm64 |
596 |
- elif [[ $myarch = arm ]] ; then |
597 |
- myconf_gn+=" target_cpu=\"arm\"" |
598 |
- ffmpeg_target_arch=$(usex cpu_flags_arm_neon arm-neon arm) |
599 |
- else |
600 |
- die "Failed to determine target arch, got '$myarch'." |
601 |
- fi |
602 |
- |
603 |
- # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
604 |
- # Depending on GCC version the warnings are different and we don't want |
605 |
- # the build to fail because of that. |
606 |
- myconf_gn+=" treat_warnings_as_errors=false" |
607 |
- |
608 |
- # Disable fatal linker warnings, bug 506268. |
609 |
- myconf_gn+=" fatal_linker_warnings=false" |
610 |
- |
611 |
- # Bug 491582. |
612 |
- export TMPDIR="${WORKDIR}/temp" |
613 |
- mkdir -p -m 755 "${TMPDIR}" || die |
614 |
- |
615 |
- # https://bugs.gentoo.org/654216 |
616 |
- addpredict /dev/dri/ #nowarn |
617 |
- |
618 |
- #if ! use system-ffmpeg; then |
619 |
- if false; then |
620 |
- local build_ffmpeg_args="" |
621 |
- if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
622 |
- build_ffmpeg_args+=" --disable-asm" |
623 |
- fi |
624 |
- |
625 |
- # Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
626 |
- einfo "Configuring bundled ffmpeg..." |
627 |
- pushd third_party/ffmpeg > /dev/null || die |
628 |
- chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ |
629 |
- --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die |
630 |
- chromium/scripts/copy_config.sh || die |
631 |
- chromium/scripts/generate_gn.py || die |
632 |
- popd > /dev/null || die |
633 |
- fi |
634 |
- |
635 |
- # Explicitly disable ICU data file support for system-icu builds. |
636 |
- if use system-icu; then |
637 |
- myconf_gn+=" icu_use_data_file=false" |
638 |
- fi |
639 |
- |
640 |
- einfo "Configuring Chromium..." |
641 |
- set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release |
642 |
- echo "$@" |
643 |
- "$@" || die |
644 |
-} |
645 |
- |
646 |
-src_compile() { |
647 |
- # Final link uses lots of file descriptors. |
648 |
- ulimit -n 2048 |
649 |
- |
650 |
- # Calling this here supports resumption via FEATURES=keepwork |
651 |
- python_setup |
652 |
- |
653 |
- #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die |
654 |
- |
655 |
- # Build mksnapshot and pax-mark it. |
656 |
- local x |
657 |
- for x in mksnapshot v8_context_snapshot_generator; do |
658 |
- if tc-is-cross-compiler; then |
659 |
- eninja -C out/Release "host/${x}" |
660 |
- pax-mark m "out/Release/host/${x}" |
661 |
- else |
662 |
- eninja -C out/Release "${x}" |
663 |
- pax-mark m "out/Release/${x}" |
664 |
- fi |
665 |
- done |
666 |
- |
667 |
- # Even though ninja autodetects number of CPUs, we respect |
668 |
- # user's options, for debugging with -j 1 or any other reason. |
669 |
- eninja -C out/Release chrome chromedriver |
670 |
- use suid && eninja -C out/Release chrome_sandbox |
671 |
- |
672 |
- pax-mark m out/Release/chrome |
673 |
- |
674 |
- # Build manpage; bug #684550 |
675 |
- sed -e 's|@@PACKAGE@@|chromium-browser|g; |
676 |
- s|@@MENUNAME@@|Chromium|g;' \ |
677 |
- chrome/app/resources/manpage.1.in > \ |
678 |
- out/Release/chromium-browser.1 || die |
679 |
- |
680 |
- # Build desktop file; bug #706786 |
681 |
- sed -e 's|@@MENUNAME@@|Chromium|g; |
682 |
- s|@@USR_BIN_SYMLINK_NAME@@|chromium-browser|g; |
683 |
- s|@@PACKAGE@@|chromium-browser|g; |
684 |
- s|\(^Exec=\)/usr/bin/|\1|g;' \ |
685 |
- chrome/installer/linux/common/desktop.template > \ |
686 |
- out/Release/chromium-browser-chromium.desktop || die |
687 |
-} |
688 |
- |
689 |
-src_install() { |
690 |
- local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
691 |
- exeinto "${CHROMIUM_HOME}" |
692 |
- doexe out/Release/chrome |
693 |
- |
694 |
- if use suid; then |
695 |
- newexe out/Release/chrome_sandbox chrome-sandbox |
696 |
- fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
697 |
- fi |
698 |
- |
699 |
- doexe out/Release/chromedriver |
700 |
- |
701 |
- local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) |
702 |
- sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r3.sh" > chromium-launcher.sh || die |
703 |
- doexe chromium-launcher.sh |
704 |
- |
705 |
- # It is important that we name the target "chromium-browser", |
706 |
- # xdg-utils expect it; bug #355517. |
707 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser |
708 |
- # keep the old symlink around for consistency |
709 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium |
710 |
- |
711 |
- dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver |
712 |
- |
713 |
- # Allow users to override command-line options, bug #357629. |
714 |
- insinto /etc/chromium |
715 |
- newins "${FILESDIR}/chromium.default" "default" |
716 |
- |
717 |
- pushd out/Release/locales > /dev/null || die |
718 |
- chromium_remove_language_paks |
719 |
- popd |
720 |
- |
721 |
- insinto "${CHROMIUM_HOME}" |
722 |
- doins out/Release/*.bin |
723 |
- doins out/Release/*.pak |
724 |
- doins out/Release/*.so |
725 |
- |
726 |
- if ! use system-icu; then |
727 |
- doins out/Release/icudtl.dat |
728 |
- fi |
729 |
- |
730 |
- doins -r out/Release/locales |
731 |
- doins -r out/Release/resources |
732 |
- |
733 |
- if [[ -d out/Release/swiftshader ]]; then |
734 |
- insinto "${CHROMIUM_HOME}/swiftshader" |
735 |
- doins out/Release/swiftshader/*.so |
736 |
- fi |
737 |
- |
738 |
- # Install icons |
739 |
- local branding size |
740 |
- for size in 16 24 32 48 64 128 256 ; do |
741 |
- case ${size} in |
742 |
- 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
743 |
- *) branding="chrome/app/theme/chromium" ;; |
744 |
- esac |
745 |
- newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
746 |
- chromium-browser.png |
747 |
- done |
748 |
- |
749 |
- # Install desktop entry |
750 |
- domenu out/Release/chromium-browser-chromium.desktop |
751 |
- |
752 |
- # Install GNOME default application entry (bug #303100). |
753 |
- insinto /usr/share/gnome-control-center/default-apps |
754 |
- newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml |
755 |
- |
756 |
- # Install manpage; bug #684550 |
757 |
- doman out/Release/chromium-browser.1 |
758 |
- dosym chromium-browser.1 /usr/share/man/man1/chromium.1 |
759 |
- |
760 |
- readme.gentoo_create_doc |
761 |
-} |
762 |
- |
763 |
-pkg_postrm() { |
764 |
- xdg_icon_cache_update |
765 |
- xdg_desktop_database_update |
766 |
-} |
767 |
- |
768 |
-pkg_postinst() { |
769 |
- xdg_icon_cache_update |
770 |
- xdg_desktop_database_update |
771 |
- readme.gentoo_print_elog |
772 |
-} |