1 |
commit: 4bfc9081cebcedf2dcab72559072cdba86f1773a |
2 |
Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 1 11:39:04 2021 +0000 |
4 |
Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 1 11:39:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bfc9081 |
7 |
|
8 |
www-client/chromium: stable channel bump to 89.0.4389.114 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/779493 |
11 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
12 |
Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> |
13 |
|
14 |
www-client/chromium/Manifest | 1 + |
15 |
www-client/chromium/chromium-89.0.4389.114.ebuild | 899 ++++++++++++++++++++++ |
16 |
2 files changed, 900 insertions(+) |
17 |
|
18 |
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest |
19 |
index 11cd8052cbb..4c80f3278b1 100644 |
20 |
--- a/www-client/chromium/Manifest |
21 |
+++ b/www-client/chromium/Manifest |
22 |
@@ -1,4 +1,5 @@ |
23 |
DIST chromium-89-patchset-7.tar.xz 4640 BLAKE2B 6150f92a4cb83025b7521c573e9a14bfcb26f7a5ff4ebe79cfc819b214ae05d0e986b9db561a99b4f9c7b4a8e4adf1c8ee966011bb0791ef11fc2be89b03b216 SHA512 6ef5be9e56b82c70d3d1a0596e74af3bab97ea82a8247b6d0ba736411779be10b17c7cd9ccd9eae5fac27af3907fd3b56e301e73011f58b2c4052bbc03390b1c |
24 |
+DIST chromium-89.0.4389.114.tar.xz 890898912 BLAKE2B b9590f83eb54fc1b524a7893f8ce0317cb5648aae84853b8958f2a0f65ae2f8331e65732322f4956fb5bc58ef3691755ae66ed901567e2b5a9749a99fc6096c4 SHA512 5b8d92ecde3ab35847dc4981caa12434334f81fc576e8809c5832a18989b6d1465ae8c43f0ad0ea8a3da7a5876c52679c57ec8323109de2b81ac467419fa1a4c |
25 |
DIST chromium-89.0.4389.90.tar.xz 890844888 BLAKE2B 7e599e17f6ffae422d0eb268f2847d5611424971508656abe50d5a89475382ec10bb348441648fbdb939b8acc01fb64a70467595d6649b9e2f3309e59e27a875 SHA512 d95ea0cc42a792b68cb5ba9bd455c6e964ce06c15ac849a2d317cc1cb07940578ff5f7b73be775915fff2decf7dc8e230935e6b545743959ba1cdfc9ab904b4b |
26 |
DIST chromium-90-patchset-6.tar.xz 3828 BLAKE2B bbd1378868cf4d699ff097ea41226ff694d58468f8f93860f2d6cc60924f35fb1f0b17fcf5a916f04545171d1219b699072222f138240fd483c704874cfce178 SHA512 70321eb4e9fe27818d5e6ae3109d3871a870a7fb6886328dcc9fc8291ac72fc003d678aec7f9925afe0c5667c70ce9bca8f61434b11a331fc1a29d61ad7b59e3 |
27 |
DIST chromium-90.0.4430.40.tar.xz 917453824 BLAKE2B 736fb023244e06ca95c481eca762f59f302cccf5835bc3dda88c1d3780de9632db6fe3b84cc92257a2f02d68aca346c4f984a588f0449e7955250b56c7363a8b SHA512 a439275ac5f4e44cbf8fb4e070209ea018bed05f432fa5cc87f94206f790a98e73f2ddd46fcd7ffdd757535c7f702241a8332f5f1d2072e2fc7d2284c1995c0a |
28 |
|
29 |
diff --git a/www-client/chromium/chromium-89.0.4389.114.ebuild b/www-client/chromium/chromium-89.0.4389.114.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..b0fc7ed7d1d |
32 |
--- /dev/null |
33 |
+++ b/www-client/chromium/chromium-89.0.4389.114.ebuild |
34 |
@@ -0,0 +1,899 @@ |
35 |
+# Copyright 2009-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+PYTHON_REQ_USE="xml" |
41 |
+ |
42 |
+CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he |
43 |
+ 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 |
44 |
+ sv sw ta te th tr uk vi zh-CN zh-TW" |
45 |
+ |
46 |
+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 |
47 |
+ |
48 |
+DESCRIPTION="Open-source version of Google Chrome web browser" |
49 |
+HOMEPAGE="https://chromium.org/" |
50 |
+PATCHSET="7" |
51 |
+PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}" |
52 |
+SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz |
53 |
+ https://files.pythonhosted.org/packages/ed/7b/bbf89ca71e722b7f9464ebffe4b5ee20a9e5c9a555a56e2d3914bb9119a6/setuptools-44.1.0.zip |
54 |
+ https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz" |
55 |
+ |
56 |
+LICENSE="BSD" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
59 |
+IUSE="component-build cups cpu_flags_arm_neon +hangouts headless +js-type-check kerberos official pic +proprietary-codecs pulseaudio screencast selinux +suid +system-ffmpeg +system-icu +tcmalloc vaapi wayland widevine" |
60 |
+REQUIRED_USE=" |
61 |
+ component-build? ( !suid ) |
62 |
+ screencast? ( wayland ) |
63 |
+" |
64 |
+ |
65 |
+COMMON_X_DEPEND=" |
66 |
+ media-libs/mesa:=[gbm] |
67 |
+ x11-libs/libX11:= |
68 |
+ x11-libs/libXcomposite:= |
69 |
+ x11-libs/libXcursor:= |
70 |
+ x11-libs/libXdamage:= |
71 |
+ x11-libs/libXext:= |
72 |
+ x11-libs/libXfixes:= |
73 |
+ >=x11-libs/libXi-1.6.0:= |
74 |
+ x11-libs/libXrandr:= |
75 |
+ x11-libs/libXrender:= |
76 |
+ x11-libs/libXtst:= |
77 |
+ x11-libs/libXScrnSaver:= |
78 |
+ x11-libs/libxcb:= |
79 |
+ vaapi? ( >=x11-libs/libva-2.7:=[X,drm] ) |
80 |
+" |
81 |
+ |
82 |
+COMMON_DEPEND=" |
83 |
+ app-arch/bzip2:= |
84 |
+ cups? ( >=net-print/cups-1.3.11:= ) |
85 |
+ dev-libs/expat:= |
86 |
+ dev-libs/glib:2 |
87 |
+ >=dev-libs/libxml2-2.9.4-r3:=[icu] |
88 |
+ dev-libs/nspr:= |
89 |
+ >=dev-libs/nss-3.26:= |
90 |
+ >=media-libs/alsa-lib-1.0.19:= |
91 |
+ media-libs/fontconfig:= |
92 |
+ media-libs/freetype:= |
93 |
+ >=media-libs/harfbuzz-2.4.0:0=[icu(-)] |
94 |
+ media-libs/libjpeg-turbo:= |
95 |
+ media-libs/libpng:= |
96 |
+ pulseaudio? ( media-sound/pulseaudio:= ) |
97 |
+ system-ffmpeg? ( |
98 |
+ >=media-video/ffmpeg-4.3:= |
99 |
+ || ( |
100 |
+ media-video/ffmpeg[-samba] |
101 |
+ >=net-fs/samba-4.5.10-r1[-debug(-)] |
102 |
+ ) |
103 |
+ >=media-libs/opus-1.3.1:= |
104 |
+ ) |
105 |
+ sys-apps/dbus:= |
106 |
+ sys-apps/pciutils:= |
107 |
+ virtual/udev |
108 |
+ x11-libs/cairo:= |
109 |
+ x11-libs/gdk-pixbuf:2 |
110 |
+ x11-libs/pango:= |
111 |
+ media-libs/flac:= |
112 |
+ >=media-libs/libwebp-0.4.0:= |
113 |
+ sys-libs/zlib:=[minizip] |
114 |
+ kerberos? ( virtual/krb5 ) |
115 |
+ !headless? ( |
116 |
+ ${COMMON_X_DEPEND} |
117 |
+ >=app-accessibility/at-spi2-atk-2.26:2 |
118 |
+ >=app-accessibility/at-spi2-core-2.26:2 |
119 |
+ >=dev-libs/atk-2.26 |
120 |
+ x11-libs/gtk+:3[X] |
121 |
+ wayland? ( |
122 |
+ dev-libs/wayland:= |
123 |
+ dev-libs/libffi:= |
124 |
+ screencast? ( media-video/pipewire:0/0.3 ) |
125 |
+ x11-libs/gtk+:3[wayland,X] |
126 |
+ x11-libs/libdrm:= |
127 |
+ x11-libs/libxkbcommon:= |
128 |
+ ) |
129 |
+ ) |
130 |
+" |
131 |
+# For nvidia-drivers blocker, see bug #413637 . |
132 |
+RDEPEND="${COMMON_DEPEND} |
133 |
+ x11-misc/xdg-utils |
134 |
+ virtual/opengl |
135 |
+ virtual/ttf-fonts |
136 |
+ selinux? ( sec-policy/selinux-chromium ) |
137 |
+ tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 ) |
138 |
+" |
139 |
+DEPEND="${COMMON_DEPEND} |
140 |
+" |
141 |
+# dev-vcs/git - https://bugs.gentoo.org/593476 |
142 |
+BDEPEND=" |
143 |
+ ${PYTHON_DEPS} |
144 |
+ >=app-arch/gzip-1.7 |
145 |
+ app-arch/unzip |
146 |
+ dev-lang/perl |
147 |
+ >=dev-util/gn-0.1807 |
148 |
+ dev-vcs/git |
149 |
+ >=dev-util/gperf-3.0.3 |
150 |
+ >=dev-util/ninja-1.7.2 |
151 |
+ >=net-libs/nodejs-7.6.0[inspector] |
152 |
+ sys-apps/hwids[usb(+)] |
153 |
+ >=sys-devel/bison-2.4.3 |
154 |
+ sys-devel/flex |
155 |
+ virtual/pkgconfig |
156 |
+ js-type-check? ( virtual/jre ) |
157 |
+" |
158 |
+ |
159 |
+# These are intended for ebuild maintainer use to force clang if GCC is broken. |
160 |
+: ${CHROMIUM_FORCE_CLANG=no} |
161 |
+: ${CHROMIUM_FORCE_LIBCXX=no} |
162 |
+ |
163 |
+if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then |
164 |
+ BDEPEND+=" >=sys-devel/clang-10" |
165 |
+fi |
166 |
+ |
167 |
+if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
168 |
+ RDEPEND+=" >=sys-libs/libcxx-10" |
169 |
+ DEPEND+=" >=sys-libs/libcxx-10" |
170 |
+else |
171 |
+ COMMON_DEPEND=" |
172 |
+ app-arch/snappy:= |
173 |
+ dev-libs/libxslt:= |
174 |
+ >=dev-libs/re2-0.2019.08.01:= |
175 |
+ >=media-libs/openh264-1.6.0:= |
176 |
+ system-icu? ( >=dev-libs/icu-68.1:= ) |
177 |
+ " |
178 |
+ RDEPEND+="${COMMON_DEPEND}" |
179 |
+ DEPEND+="${COMMON_DEPEND}" |
180 |
+fi |
181 |
+ |
182 |
+if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
183 |
+ EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
184 |
+fi |
185 |
+ |
186 |
+DISABLE_AUTOFORMATTING="yes" |
187 |
+DOC_CONTENTS=" |
188 |
+Some web pages may require additional fonts to display properly. |
189 |
+Try installing some of the following packages if some characters |
190 |
+are not displayed properly: |
191 |
+- media-fonts/arphicfonts |
192 |
+- media-fonts/droid |
193 |
+- media-fonts/ipamonafont |
194 |
+- media-fonts/noto |
195 |
+- media-fonts/ja-ipafonts |
196 |
+- media-fonts/takao-fonts |
197 |
+- media-fonts/wqy-microhei |
198 |
+- media-fonts/wqy-zenhei |
199 |
+ |
200 |
+To fix broken icons on the Downloads page, you should install an icon |
201 |
+theme that covers the appropriate MIME types, and configure this as your |
202 |
+GTK+ icon theme. |
203 |
+ |
204 |
+For native file dialogs in KDE, install kde-apps/kdialog. |
205 |
+ |
206 |
+To make password storage work with your desktop environment you may |
207 |
+have install one of the supported credentials management applications: |
208 |
+- app-crypt/libsecret (GNOME) |
209 |
+- kde-frameworks/kwallet (KDE) |
210 |
+If you have one of above packages installed, but don't want to use |
211 |
+them in Chromium, then add --password-store=basic to CHROMIUM_FLAGS |
212 |
+in /etc/chromium/default. |
213 |
+" |
214 |
+ |
215 |
+pre_build_checks() { |
216 |
+ if [[ ${MERGE_TYPE} != binary ]]; then |
217 |
+ local -x CPP="$(tc-getCXX) -E" |
218 |
+ if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 9.2; then |
219 |
+ die "At least gcc 9.2 is required" |
220 |
+ fi |
221 |
+ # component build hangs with tcmalloc enabled due to sandbox issue, bug #695976. |
222 |
+ if has usersandbox ${FEATURES} && use tcmalloc && use component-build; then |
223 |
+ die "Component build with tcmalloc requires FEATURES=-usersandbox." |
224 |
+ fi |
225 |
+ if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] || tc-is-clang; then |
226 |
+ if use component-build; then |
227 |
+ die "Component build with clang requires fuzzer headers." |
228 |
+ fi |
229 |
+ fi |
230 |
+ fi |
231 |
+ |
232 |
+ # Check build requirements, bug #541816 and bug #471810 . |
233 |
+ CHECKREQS_MEMORY="3G" |
234 |
+ CHECKREQS_DISK_BUILD="7G" |
235 |
+ if ( shopt -s extglob; is-flagq '-g?(gdb)?([1-9])' ); then |
236 |
+ if use custom-cflags || use component-build; then |
237 |
+ CHECKREQS_DISK_BUILD="25G" |
238 |
+ fi |
239 |
+ if ! use component-build; then |
240 |
+ CHECKREQS_MEMORY="16G" |
241 |
+ fi |
242 |
+ fi |
243 |
+ check-reqs_pkg_setup |
244 |
+} |
245 |
+ |
246 |
+pkg_pretend() { |
247 |
+ pre_build_checks |
248 |
+} |
249 |
+ |
250 |
+pkg_setup() { |
251 |
+ pre_build_checks |
252 |
+ |
253 |
+ chromium_suid_sandbox_check_kernel_config |
254 |
+ |
255 |
+ # nvidia-drivers does not work correctly with Wayland due to unsupported EGLStreams |
256 |
+ if use wayland && ! use headless && has_version "x11-drivers/nvidia-drivers"; then |
257 |
+ ewarn "Proprietary nVidia driver does not work with Wayland. You can disable" |
258 |
+ ewarn "Wayland by setting DISABLE_OZONE_PLATFORM=true in /etc/chromium/default." |
259 |
+ fi |
260 |
+} |
261 |
+ |
262 |
+src_prepare() { |
263 |
+ # Calling this here supports resumption via FEATURES=keepwork |
264 |
+ python_setup |
265 |
+ |
266 |
+ local PATCHES=( |
267 |
+ "${WORKDIR}/patches" |
268 |
+ "${FILESDIR}/chromium-89-webcodecs-deps.patch" |
269 |
+ "${FILESDIR}/chromium-89-EnumTable-crash.patch" |
270 |
+ "${FILESDIR}/chromium-shim_headers.patch" |
271 |
+ ) |
272 |
+ |
273 |
+ default |
274 |
+ |
275 |
+ mkdir -p third_party/node/linux/node-linux-x64/bin || die |
276 |
+ ln -s "${EPREFIX}"/usr/bin/node third_party/node/linux/node-linux-x64/bin/node || die |
277 |
+ |
278 |
+ local keeplibs=( |
279 |
+ base/third_party/cityhash |
280 |
+ base/third_party/double_conversion |
281 |
+ base/third_party/dynamic_annotations |
282 |
+ base/third_party/icu |
283 |
+ base/third_party/nspr |
284 |
+ base/third_party/superfasthash |
285 |
+ base/third_party/symbolize |
286 |
+ base/third_party/valgrind |
287 |
+ base/third_party/xdg_mime |
288 |
+ base/third_party/xdg_user_dirs |
289 |
+ buildtools/third_party/libc++ |
290 |
+ buildtools/third_party/libc++abi |
291 |
+ chrome/third_party/mozilla_security_manager |
292 |
+ courgette/third_party |
293 |
+ net/third_party/mozilla_security_manager |
294 |
+ net/third_party/nss |
295 |
+ net/third_party/quic |
296 |
+ net/third_party/uri_template |
297 |
+ third_party/abseil-cpp |
298 |
+ third_party/angle |
299 |
+ third_party/angle/src/common/third_party/base |
300 |
+ third_party/angle/src/common/third_party/smhasher |
301 |
+ third_party/angle/src/common/third_party/xxhash |
302 |
+ third_party/angle/src/third_party/compiler |
303 |
+ third_party/angle/src/third_party/libXNVCtrl |
304 |
+ third_party/angle/src/third_party/trace_event |
305 |
+ third_party/angle/src/third_party/volk |
306 |
+ third_party/apple_apsl |
307 |
+ third_party/axe-core |
308 |
+ third_party/blink |
309 |
+ third_party/boringssl |
310 |
+ third_party/boringssl/src/third_party/fiat |
311 |
+ third_party/breakpad |
312 |
+ third_party/breakpad/breakpad/src/third_party/curl |
313 |
+ third_party/brotli |
314 |
+ third_party/catapult |
315 |
+ third_party/catapult/common/py_vulcanize/third_party/rcssmin |
316 |
+ third_party/catapult/common/py_vulcanize/third_party/rjsmin |
317 |
+ third_party/catapult/third_party/beautifulsoup4 |
318 |
+ third_party/catapult/third_party/html5lib-python |
319 |
+ third_party/catapult/third_party/polymer |
320 |
+ third_party/catapult/third_party/six |
321 |
+ third_party/catapult/tracing/third_party/d3 |
322 |
+ third_party/catapult/tracing/third_party/gl-matrix |
323 |
+ third_party/catapult/tracing/third_party/jpeg-js |
324 |
+ third_party/catapult/tracing/third_party/jszip |
325 |
+ third_party/catapult/tracing/third_party/mannwhitneyu |
326 |
+ third_party/catapult/tracing/third_party/oboe |
327 |
+ third_party/catapult/tracing/third_party/pako |
328 |
+ third_party/ced |
329 |
+ third_party/cld_3 |
330 |
+ third_party/closure_compiler |
331 |
+ third_party/crashpad |
332 |
+ third_party/crashpad/crashpad/third_party/lss |
333 |
+ third_party/crashpad/crashpad/third_party/zlib |
334 |
+ third_party/crc32c |
335 |
+ third_party/cros_system_api |
336 |
+ third_party/dav1d |
337 |
+ third_party/dawn |
338 |
+ third_party/dawn/third_party/khronos |
339 |
+ third_party/depot_tools |
340 |
+ third_party/devscripts |
341 |
+ third_party/devtools-frontend |
342 |
+ third_party/devtools-frontend/src/front_end/third_party/acorn |
343 |
+ third_party/devtools-frontend/src/front_end/third_party/axe-core |
344 |
+ third_party/devtools-frontend/src/front_end/third_party/chromium |
345 |
+ third_party/devtools-frontend/src/front_end/third_party/codemirror |
346 |
+ third_party/devtools-frontend/src/front_end/third_party/fabricjs |
347 |
+ third_party/devtools-frontend/src/front_end/third_party/i18n |
348 |
+ third_party/devtools-frontend/src/front_end/third_party/intl-messageformat |
349 |
+ third_party/devtools-frontend/src/front_end/third_party/lighthouse |
350 |
+ third_party/devtools-frontend/src/front_end/third_party/lit-html |
351 |
+ third_party/devtools-frontend/src/front_end/third_party/lodash-isequal |
352 |
+ third_party/devtools-frontend/src/front_end/third_party/marked |
353 |
+ third_party/devtools-frontend/src/front_end/third_party/puppeteer |
354 |
+ third_party/devtools-frontend/src/front_end/third_party/wasmparser |
355 |
+ third_party/devtools-frontend/src/third_party |
356 |
+ third_party/dom_distiller_js |
357 |
+ third_party/emoji-segmenter |
358 |
+ third_party/flatbuffers |
359 |
+ third_party/freetype |
360 |
+ third_party/fusejs |
361 |
+ third_party/libgifcodec |
362 |
+ third_party/liburlpattern |
363 |
+ third_party/google_input_tools |
364 |
+ third_party/google_input_tools/third_party/closure_library |
365 |
+ third_party/google_input_tools/third_party/closure_library/third_party/closure |
366 |
+ third_party/googletest |
367 |
+ third_party/harfbuzz-ng/utils |
368 |
+ third_party/hunspell |
369 |
+ third_party/iccjpeg |
370 |
+ third_party/inspector_protocol |
371 |
+ third_party/jinja2 |
372 |
+ third_party/jsoncpp |
373 |
+ third_party/jstemplate |
374 |
+ third_party/khronos |
375 |
+ third_party/leveldatabase |
376 |
+ third_party/libXNVCtrl |
377 |
+ third_party/libaddressinput |
378 |
+ third_party/libaom |
379 |
+ third_party/libaom/source/libaom/third_party/vector |
380 |
+ third_party/libaom/source/libaom/third_party/x86inc |
381 |
+ third_party/libavif |
382 |
+ third_party/libjingle |
383 |
+ third_party/libphonenumber |
384 |
+ third_party/libsecret |
385 |
+ third_party/libsrtp |
386 |
+ third_party/libsync |
387 |
+ third_party/libudev |
388 |
+ third_party/libva_protected_content |
389 |
+ third_party/libvpx |
390 |
+ third_party/libvpx/source/libvpx/third_party/x86inc |
391 |
+ third_party/libwebm |
392 |
+ third_party/libx11 |
393 |
+ third_party/libxcb-keysyms |
394 |
+ third_party/libxml/chromium |
395 |
+ third_party/libyuv |
396 |
+ third_party/llvm |
397 |
+ third_party/lottie |
398 |
+ third_party/lss |
399 |
+ third_party/lzma_sdk |
400 |
+ third_party/mako |
401 |
+ third_party/markupsafe |
402 |
+ third_party/mesa |
403 |
+ third_party/metrics_proto |
404 |
+ third_party/minigbm |
405 |
+ third_party/modp_b64 |
406 |
+ third_party/nasm |
407 |
+ third_party/nearby |
408 |
+ third_party/node |
409 |
+ third_party/node/node_modules/polymer-bundler/lib/third_party/UglifyJS2 |
410 |
+ third_party/one_euro_filter |
411 |
+ third_party/opencv |
412 |
+ third_party/openscreen |
413 |
+ third_party/openscreen/src/third_party/mozilla |
414 |
+ third_party/openscreen/src/third_party/tinycbor/src/src |
415 |
+ third_party/ots |
416 |
+ third_party/pdfium |
417 |
+ third_party/pdfium/third_party/agg23 |
418 |
+ third_party/pdfium/third_party/base |
419 |
+ third_party/pdfium/third_party/bigint |
420 |
+ third_party/pdfium/third_party/freetype |
421 |
+ third_party/pdfium/third_party/lcms |
422 |
+ third_party/pdfium/third_party/libopenjpeg20 |
423 |
+ third_party/pdfium/third_party/libpng16 |
424 |
+ third_party/pdfium/third_party/libtiff |
425 |
+ third_party/pdfium/third_party/skia_shared |
426 |
+ third_party/perfetto |
427 |
+ third_party/perfetto/protos/third_party/chromium |
428 |
+ third_party/pffft |
429 |
+ third_party/ply |
430 |
+ third_party/polymer |
431 |
+ third_party/private-join-and-compute |
432 |
+ third_party/private_membership |
433 |
+ third_party/protobuf |
434 |
+ third_party/protobuf/third_party/six |
435 |
+ third_party/pyjson5 |
436 |
+ third_party/qcms |
437 |
+ third_party/rnnoise |
438 |
+ third_party/s2cellid |
439 |
+ third_party/schema_org |
440 |
+ third_party/securemessage |
441 |
+ third_party/shell-encryption |
442 |
+ third_party/simplejson |
443 |
+ third_party/skia |
444 |
+ third_party/skia/include/third_party/skcms |
445 |
+ third_party/skia/include/third_party/vulkan |
446 |
+ third_party/skia/third_party/skcms |
447 |
+ third_party/skia/third_party/vulkan |
448 |
+ third_party/smhasher |
449 |
+ third_party/sqlite |
450 |
+ third_party/swiftshader |
451 |
+ third_party/swiftshader/third_party/astc-encoder |
452 |
+ third_party/swiftshader/third_party/llvm-subzero |
453 |
+ third_party/swiftshader/third_party/marl |
454 |
+ third_party/swiftshader/third_party/subzero |
455 |
+ third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1 |
456 |
+ third_party/tint |
457 |
+ third_party/ukey2 |
458 |
+ third_party/unrar |
459 |
+ third_party/usrsctp |
460 |
+ third_party/vulkan |
461 |
+ third_party/web-animations-js |
462 |
+ third_party/webdriver |
463 |
+ third_party/webrtc |
464 |
+ third_party/webrtc/common_audio/third_party/ooura |
465 |
+ third_party/webrtc/common_audio/third_party/spl_sqrt_floor |
466 |
+ third_party/webrtc/modules/third_party/fft |
467 |
+ third_party/webrtc/modules/third_party/g711 |
468 |
+ third_party/webrtc/modules/third_party/g722 |
469 |
+ third_party/webrtc/rtc_base/third_party/base64 |
470 |
+ third_party/webrtc/rtc_base/third_party/sigslot |
471 |
+ third_party/widevine |
472 |
+ third_party/woff2 |
473 |
+ third_party/wuffs |
474 |
+ third_party/x11proto |
475 |
+ third_party/xcbproto |
476 |
+ third_party/zxcvbn-cpp |
477 |
+ third_party/zlib/google |
478 |
+ tools/grit/third_party/six |
479 |
+ url/third_party/mozilla |
480 |
+ v8/src/third_party/siphash |
481 |
+ v8/src/third_party/valgrind |
482 |
+ v8/src/third_party/utf8-decoder |
483 |
+ v8/third_party/inspector_protocol |
484 |
+ v8/third_party/v8 |
485 |
+ |
486 |
+ # gyp -> gn leftovers |
487 |
+ base/third_party/libevent |
488 |
+ third_party/speech-dispatcher |
489 |
+ third_party/usb_ids |
490 |
+ third_party/xdg-utils |
491 |
+ ) |
492 |
+ if ! use system-ffmpeg; then |
493 |
+ keeplibs+=( third_party/ffmpeg third_party/opus ) |
494 |
+ fi |
495 |
+ if ! use system-icu; then |
496 |
+ keeplibs+=( third_party/icu ) |
497 |
+ fi |
498 |
+ if use tcmalloc; then |
499 |
+ keeplibs+=( third_party/tcmalloc ) |
500 |
+ fi |
501 |
+ if use wayland && ! use headless ; then |
502 |
+ keeplibs+=( third_party/wayland ) |
503 |
+ fi |
504 |
+ if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
505 |
+ keeplibs+=( third_party/libxml ) |
506 |
+ keeplibs+=( third_party/libxslt ) |
507 |
+ keeplibs+=( third_party/openh264 ) |
508 |
+ keeplibs+=( third_party/re2 ) |
509 |
+ keeplibs+=( third_party/snappy ) |
510 |
+ if use system-icu; then |
511 |
+ keeplibs+=( third_party/icu ) |
512 |
+ fi |
513 |
+ fi |
514 |
+ if use arm64 || use ppc64 ; then |
515 |
+ keeplibs+=( third_party/swiftshader/third_party/llvm-10.0 ) |
516 |
+ fi |
517 |
+ # we need to generate ppc64 stuff because upstream does not ship it yet |
518 |
+ # it has to be done before unbundling. |
519 |
+ if use ppc64; then |
520 |
+ pushd third_party/libvpx >/dev/null || die |
521 |
+ mkdir -p source/config/linux/ppc64 || die |
522 |
+ ./generate_gni.sh || die |
523 |
+ popd >/dev/null || die |
524 |
+ fi |
525 |
+ |
526 |
+ # Remove most bundled libraries. Some are still needed. |
527 |
+ build/linux/unbundle/remove_bundled_libraries.py "${keeplibs[@]}" --do-remove || die |
528 |
+} |
529 |
+ |
530 |
+src_configure() { |
531 |
+ # Calling this here supports resumption via FEATURES=keepwork |
532 |
+ python_setup |
533 |
+ |
534 |
+ local myconf_gn="" |
535 |
+ |
536 |
+ # Make sure the build system will use the right tools, bug #340795. |
537 |
+ tc-export AR CC CXX NM |
538 |
+ |
539 |
+ if [[ ${CHROMIUM_FORCE_CLANG} == yes ]] && ! tc-is-clang; then |
540 |
+ # Force clang since gcc is pretty broken at the moment. |
541 |
+ CC=${CHOST}-clang |
542 |
+ CXX=${CHOST}-clang++ |
543 |
+ strip-unsupported-flags |
544 |
+ fi |
545 |
+ |
546 |
+ if tc-is-clang; then |
547 |
+ myconf_gn+=" is_clang=true clang_use_chrome_plugins=false" |
548 |
+ else |
549 |
+ if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
550 |
+ die "Compiling with sys-libs/libcxx requires clang." |
551 |
+ fi |
552 |
+ myconf_gn+=" is_clang=false" |
553 |
+ fi |
554 |
+ |
555 |
+ # Define a custom toolchain for GN |
556 |
+ myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
557 |
+ |
558 |
+ if tc-is-cross-compiler; then |
559 |
+ tc-export BUILD_{AR,CC,CXX,NM} |
560 |
+ myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
561 |
+ myconf_gn+=" v8_snapshot_toolchain=\"//build/toolchain/linux/unbundle:host\"" |
562 |
+ else |
563 |
+ myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\"" |
564 |
+ fi |
565 |
+ |
566 |
+ # GN needs explicit config for Debug/Release as opposed to inferring it from build directory. |
567 |
+ myconf_gn+=" is_debug=false" |
568 |
+ |
569 |
+ # Component build isn't generally intended for use by end users. It's mostly useful |
570 |
+ # for development and debugging. |
571 |
+ myconf_gn+=" is_component_build=$(usex component-build true false)" |
572 |
+ |
573 |
+ myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")" |
574 |
+ |
575 |
+ # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
576 |
+ myconf_gn+=" enable_nacl=false" |
577 |
+ |
578 |
+ # Use system-provided libraries. |
579 |
+ # TODO: freetype -- remove sources (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). |
580 |
+ # TODO: use_system_hunspell (upstream changes needed). |
581 |
+ # TODO: use_system_libsrtp (bug #459932). |
582 |
+ # TODO: use_system_protobuf (bug #525560). |
583 |
+ # TODO: use_system_ssl (http://crbug.com/58087). |
584 |
+ # TODO: use_system_sqlite (http://crbug.com/22208). |
585 |
+ |
586 |
+ # libevent: https://bugs.gentoo.org/593458 |
587 |
+ local gn_system_libraries=( |
588 |
+ flac |
589 |
+ fontconfig |
590 |
+ freetype |
591 |
+ # Need harfbuzz_from_pkgconfig target |
592 |
+ #harfbuzz-ng |
593 |
+ libdrm |
594 |
+ libjpeg |
595 |
+ libpng |
596 |
+ libwebp |
597 |
+ zlib |
598 |
+ ) |
599 |
+ if use system-ffmpeg; then |
600 |
+ gn_system_libraries+=( ffmpeg opus ) |
601 |
+ fi |
602 |
+ if use system-icu; then |
603 |
+ gn_system_libraries+=( icu ) |
604 |
+ fi |
605 |
+ if [[ ${CHROMIUM_FORCE_LIBCXX} != yes ]]; then |
606 |
+ # unbundle only without libc++, because libc++ is not fully ABI compatible with libstdc++ |
607 |
+ gn_system_libraries+=( libxml ) |
608 |
+ gn_system_libraries+=( libxslt ) |
609 |
+ gn_system_libraries+=( openh264 ) |
610 |
+ gn_system_libraries+=( re2 ) |
611 |
+ gn_system_libraries+=( snappy ) |
612 |
+ fi |
613 |
+ build/linux/unbundle/replace_gn_files.py --system-libraries "${gn_system_libraries[@]}" || die |
614 |
+ |
615 |
+ # See dependency logic in third_party/BUILD.gn |
616 |
+ myconf_gn+=" use_system_harfbuzz=true" |
617 |
+ |
618 |
+ # Disable deprecated libgnome-keyring dependency, bug #713012 |
619 |
+ myconf_gn+=" use_gnome_keyring=false" |
620 |
+ |
621 |
+ # Optional dependencies. |
622 |
+ myconf_gn+=" enable_js_type_check=$(usex js-type-check true false)" |
623 |
+ myconf_gn+=" enable_hangout_services_extension=$(usex hangouts true false)" |
624 |
+ myconf_gn+=" enable_widevine=$(usex widevine true false)" |
625 |
+ myconf_gn+=" use_cups=$(usex cups true false)" |
626 |
+ myconf_gn+=" use_kerberos=$(usex kerberos true false)" |
627 |
+ myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)" |
628 |
+ myconf_gn+=" use_vaapi=$(usex vaapi true false)" |
629 |
+ myconf_gn+=" rtc_use_pipewire=$(usex screencast true false) rtc_pipewire_version=\"0.3\"" |
630 |
+ |
631 |
+ # TODO: link_pulseaudio=true for GN. |
632 |
+ |
633 |
+ myconf_gn+=" fieldtrial_testing_like_official_build=true" |
634 |
+ |
635 |
+ # Never use bundled gold binary. Disable gold linker flags for now. |
636 |
+ # Do not use bundled clang. |
637 |
+ # Trying to use gold results in linker crash. |
638 |
+ myconf_gn+=" use_gold=false use_sysroot=false use_custom_libcxx=false" |
639 |
+ |
640 |
+ # Disable forced lld, bug 641556 |
641 |
+ myconf_gn+=" use_lld=false" |
642 |
+ |
643 |
+ ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)" |
644 |
+ myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)" |
645 |
+ myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\"" |
646 |
+ |
647 |
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
648 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, |
649 |
+ # please get your own set of keys. Disable Client ID and secrets as requested by |
650 |
+ # Google. Feel free to contact chromium@g.o for more info. |
651 |
+ local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" |
652 |
+# local google_default_client_id="329227923882.apps.googleusercontent.com" |
653 |
+# local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
654 |
+ myconf_gn+=" google_api_key=\"${google_api_key}\"" |
655 |
+# myconf_gn+=" google_default_client_id=\"${google_default_client_id}\"" |
656 |
+# myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\"" |
657 |
+ local myarch="$(tc-arch)" |
658 |
+ |
659 |
+ # Avoid CFLAGS problems, bug #352457, bug #390147. |
660 |
+ if ! use custom-cflags; then |
661 |
+ replace-flags "-Os" "-O2" |
662 |
+ strip-flags |
663 |
+ |
664 |
+ # Debug info section overflows without component build |
665 |
+ # Prevent linker from running out of address space, bug #471810 . |
666 |
+ if ! use component-build || use x86; then |
667 |
+ filter-flags "-g*" |
668 |
+ fi |
669 |
+ |
670 |
+ # Prevent libvpx build failures. Bug 530248, 544702, 546984. |
671 |
+ if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then |
672 |
+ filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 -mno-fma -mno-fma4 |
673 |
+ fi |
674 |
+ fi |
675 |
+ |
676 |
+ if [[ ${CHROMIUM_FORCE_LIBCXX} == yes ]]; then |
677 |
+ append-flags -stdlib=libc++ |
678 |
+ append-ldflags -stdlib=libc++ |
679 |
+ fi |
680 |
+ |
681 |
+ if [[ $myarch = amd64 ]] ; then |
682 |
+ myconf_gn+=" target_cpu=\"x64\"" |
683 |
+ ffmpeg_target_arch=x64 |
684 |
+ elif [[ $myarch = x86 ]] ; then |
685 |
+ myconf_gn+=" target_cpu=\"x86\"" |
686 |
+ ffmpeg_target_arch=ia32 |
687 |
+ |
688 |
+ # This is normally defined by compiler_cpu_abi in |
689 |
+ # build/config/compiler/BUILD.gn, but we patch that part out. |
690 |
+ append-flags -msse2 -mfpmath=sse -mmmx |
691 |
+ elif [[ $myarch = arm64 ]] ; then |
692 |
+ myconf_gn+=" target_cpu=\"arm64\"" |
693 |
+ ffmpeg_target_arch=arm64 |
694 |
+ elif [[ $myarch = arm ]] ; then |
695 |
+ myconf_gn+=" target_cpu=\"arm\"" |
696 |
+ ffmpeg_target_arch=$(usex cpu_flags_arm_neon arm-neon arm) |
697 |
+ elif [[ $myarch = ppc64 ]] ; then |
698 |
+ myconf_gn+=" target_cpu=\"ppc64\"" |
699 |
+ ffmpeg_target_arch=ppc64 |
700 |
+ else |
701 |
+ die "Failed to determine target arch, got '$myarch'." |
702 |
+ fi |
703 |
+ |
704 |
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
705 |
+ # Depending on GCC version the warnings are different and we don't want |
706 |
+ # the build to fail because of that. |
707 |
+ myconf_gn+=" treat_warnings_as_errors=false" |
708 |
+ |
709 |
+ # Disable fatal linker warnings, bug 506268. |
710 |
+ myconf_gn+=" fatal_linker_warnings=false" |
711 |
+ |
712 |
+ # Bug 491582. |
713 |
+ export TMPDIR="${WORKDIR}/temp" |
714 |
+ mkdir -p -m 755 "${TMPDIR}" || die |
715 |
+ |
716 |
+ # https://bugs.gentoo.org/654216 |
717 |
+ addpredict /dev/dri/ #nowarn |
718 |
+ |
719 |
+ #if ! use system-ffmpeg; then |
720 |
+ if false; then |
721 |
+ local build_ffmpeg_args="" |
722 |
+ if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
723 |
+ build_ffmpeg_args+=" --disable-asm" |
724 |
+ fi |
725 |
+ |
726 |
+ # Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
727 |
+ einfo "Configuring bundled ffmpeg..." |
728 |
+ pushd third_party/ffmpeg > /dev/null || die |
729 |
+ chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ |
730 |
+ --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die |
731 |
+ chromium/scripts/copy_config.sh || die |
732 |
+ chromium/scripts/generate_gn.py || die |
733 |
+ popd > /dev/null || die |
734 |
+ fi |
735 |
+ |
736 |
+ # Chromium relies on this, but was disabled in >=clang-10, crbug.com/1042470 |
737 |
+ append-cxxflags $(test-flags-CXX -flax-vector-conversions=all) |
738 |
+ |
739 |
+ # Disable unknown warning message from clang. |
740 |
+ tc-is-clang && append-flags -Wno-unknown-warning-option |
741 |
+ |
742 |
+ # Explicitly disable ICU data file support for system-icu builds. |
743 |
+ if use system-icu; then |
744 |
+ myconf_gn+=" icu_use_data_file=false" |
745 |
+ fi |
746 |
+ |
747 |
+ # Enable ozone wayland and/or headless support |
748 |
+ if use wayland || use headless; then |
749 |
+ myconf_gn+=" use_ozone=true ozone_auto_platforms=false" |
750 |
+ myconf_gn+=" ozone_platform_headless=true" |
751 |
+ if use headless; then |
752 |
+ myconf_gn+=" ozone_platform=\"headless\"" |
753 |
+ myconf_gn+=" use_x11=false" |
754 |
+ else |
755 |
+ myconf_gn+=" ozone_platform_wayland=true" |
756 |
+ myconf_gn+=" use_system_libdrm=true" |
757 |
+ myconf_gn+=" use_system_minigbm=true" |
758 |
+ myconf_gn+=" use_xkbcommon=true" |
759 |
+ myconf_gn+=" ozone_platform=\"wayland\"" |
760 |
+ fi |
761 |
+ else |
762 |
+ myconf_gn+=" use_ozone=false" |
763 |
+ fi |
764 |
+ |
765 |
+ # Enable official builds |
766 |
+ myconf_gn+=" is_official_build=$(usex official true false)" |
767 |
+ if use official; then |
768 |
+ # Allow building against system libraries in official builds |
769 |
+ sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \ |
770 |
+ tools/generate_shim_headers/generate_shim_headers.py || die |
771 |
+ # Disable CFI: unsupported for GCC, requires clang+lto+lld |
772 |
+ myconf_gn+=" is_cfi=false" |
773 |
+ # Disable PGO, because profile data is only compatible with >=clang-11 |
774 |
+ myconf_gn+=" chrome_pgo_phase=0" |
775 |
+ fi |
776 |
+ |
777 |
+ einfo "Configuring Chromium..." |
778 |
+ set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release |
779 |
+ echo "$@" |
780 |
+ "$@" || die |
781 |
+} |
782 |
+ |
783 |
+src_compile() { |
784 |
+ # Final link uses lots of file descriptors. |
785 |
+ ulimit -n 2048 |
786 |
+ |
787 |
+ # Calling this here supports resumption via FEATURES=keepwork |
788 |
+ python_setup |
789 |
+ |
790 |
+ # https://bugs.gentoo.org/717456 |
791 |
+ local -x PYTHONPATH="${WORKDIR}/setuptools-44.1.0:${PYTHONPATH+:}${PYTHONPATH}" |
792 |
+ |
793 |
+ #"${EPYTHON}" tools/clang/scripts/update.py --force-local-build --gcc-toolchain /usr --skip-checkout --use-system-cmake --without-android || die |
794 |
+ |
795 |
+ # Build mksnapshot and pax-mark it. |
796 |
+ local x |
797 |
+ for x in mksnapshot v8_context_snapshot_generator; do |
798 |
+ if tc-is-cross-compiler; then |
799 |
+ eninja -C out/Release "host/${x}" |
800 |
+ pax-mark m "out/Release/host/${x}" |
801 |
+ else |
802 |
+ eninja -C out/Release "${x}" |
803 |
+ pax-mark m "out/Release/${x}" |
804 |
+ fi |
805 |
+ done |
806 |
+ |
807 |
+ # Even though ninja autodetects number of CPUs, we respect |
808 |
+ # user's options, for debugging with -j 1 or any other reason. |
809 |
+ eninja -C out/Release chrome chromedriver |
810 |
+ use suid && eninja -C out/Release chrome_sandbox |
811 |
+ |
812 |
+ pax-mark m out/Release/chrome |
813 |
+ |
814 |
+ # Build manpage; bug #684550 |
815 |
+ sed -e 's|@@PACKAGE@@|chromium-browser|g; |
816 |
+ s|@@MENUNAME@@|Chromium|g;' \ |
817 |
+ chrome/app/resources/manpage.1.in > \ |
818 |
+ out/Release/chromium-browser.1 || die |
819 |
+ |
820 |
+ # Build desktop file; bug #706786 |
821 |
+ sed -e 's|@@MENUNAME@@|Chromium|g; |
822 |
+ s|@@USR_BIN_SYMLINK_NAME@@|chromium-browser|g; |
823 |
+ s|@@PACKAGE@@|chromium-browser|g; |
824 |
+ s|\(^Exec=\)/usr/bin/|\1|g;' \ |
825 |
+ chrome/installer/linux/common/desktop.template > \ |
826 |
+ out/Release/chromium-browser-chromium.desktop || die |
827 |
+} |
828 |
+ |
829 |
+src_install() { |
830 |
+ local CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
831 |
+ exeinto "${CHROMIUM_HOME}" |
832 |
+ doexe out/Release/chrome |
833 |
+ |
834 |
+ if use suid; then |
835 |
+ newexe out/Release/chrome_sandbox chrome-sandbox |
836 |
+ fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
837 |
+ fi |
838 |
+ |
839 |
+ doexe out/Release/chromedriver |
840 |
+ |
841 |
+ local sedargs=( -e |
842 |
+ "s:/usr/lib/:/usr/$(get_libdir)/:g; |
843 |
+ s:@@OZONE_AUTO_SESSION@@:$(usex wayland true false):g; |
844 |
+ s:@@FORCE_OZONE_PLATFORM@@:$(usex headless true false):g" |
845 |
+ ) |
846 |
+ sed "${sedargs[@]}" "${FILESDIR}/chromium-launcher-r6.sh" > chromium-launcher.sh || die |
847 |
+ doexe chromium-launcher.sh |
848 |
+ |
849 |
+ # It is important that we name the target "chromium-browser", |
850 |
+ # xdg-utils expect it; bug #355517. |
851 |
+ dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser |
852 |
+ # keep the old symlink around for consistency |
853 |
+ dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium |
854 |
+ |
855 |
+ dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver |
856 |
+ |
857 |
+ # Allow users to override command-line options, bug #357629. |
858 |
+ insinto /etc/chromium |
859 |
+ newins "${FILESDIR}/chromium.default" "default" |
860 |
+ |
861 |
+ pushd out/Release/locales > /dev/null || die |
862 |
+ chromium_remove_language_paks |
863 |
+ popd |
864 |
+ |
865 |
+ insinto "${CHROMIUM_HOME}" |
866 |
+ doins out/Release/*.bin |
867 |
+ doins out/Release/*.pak |
868 |
+ ( |
869 |
+ shopt -s nullglob |
870 |
+ local files=(out/Release/*.so out/Release/*.so.[0-9]) |
871 |
+ [[ ${#files[@]} -gt 0 ]] && doins "${files[@]}" |
872 |
+ ) |
873 |
+ |
874 |
+ if ! use system-icu; then |
875 |
+ doins out/Release/icudtl.dat |
876 |
+ fi |
877 |
+ |
878 |
+ doins -r out/Release/locales |
879 |
+ doins -r out/Release/resources |
880 |
+ |
881 |
+ if [[ -d out/Release/swiftshader ]]; then |
882 |
+ insinto "${CHROMIUM_HOME}/swiftshader" |
883 |
+ doins out/Release/swiftshader/*.so |
884 |
+ fi |
885 |
+ |
886 |
+ # Install icons |
887 |
+ local branding size |
888 |
+ for size in 16 24 32 48 64 128 256 ; do |
889 |
+ case ${size} in |
890 |
+ 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
891 |
+ *) branding="chrome/app/theme/chromium" ;; |
892 |
+ esac |
893 |
+ newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
894 |
+ chromium-browser.png |
895 |
+ done |
896 |
+ |
897 |
+ # Install desktop entry |
898 |
+ domenu out/Release/chromium-browser-chromium.desktop |
899 |
+ |
900 |
+ # Install GNOME default application entry (bug #303100). |
901 |
+ insinto /usr/share/gnome-control-center/default-apps |
902 |
+ newins "${FILESDIR}"/chromium-browser.xml chromium-browser.xml |
903 |
+ |
904 |
+ # Install manpage; bug #684550 |
905 |
+ doman out/Release/chromium-browser.1 |
906 |
+ dosym chromium-browser.1 /usr/share/man/man1/chromium.1 |
907 |
+ |
908 |
+ readme.gentoo_create_doc |
909 |
+} |
910 |
+ |
911 |
+pkg_postrm() { |
912 |
+ xdg_icon_cache_update |
913 |
+ xdg_desktop_database_update |
914 |
+} |
915 |
+ |
916 |
+pkg_postinst() { |
917 |
+ xdg_icon_cache_update |
918 |
+ xdg_desktop_database_update |
919 |
+ readme.gentoo_print_elog |
920 |
+ |
921 |
+ if use vaapi; then |
922 |
+ elog "VA-API is disabled by default at runtime. Either enable it" |
923 |
+ elog "by navigating to chrome://flags/#enable-accelerated-video-decode" |
924 |
+ elog "inside Chromium or add --enable-accelerated-video-decode" |
925 |
+ elog "to CHROMIUM_FLAGS in /etc/chromium/default." |
926 |
+ fi |
927 |
+ if use screencast; then |
928 |
+ elog "Screencast is disabled by default at runtime. Either enable it" |
929 |
+ elog "by navigating to chrome://flags/#enable-webrtc-pipewire-capturer" |
930 |
+ elog "inside Chromium or add --enable-webrtc-pipewire-capturer" |
931 |
+ elog "to CHROMIUM_FLAGS in /etc/chromium/default." |
932 |
+ fi |
933 |
+} |