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