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