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