1 |
commit: 0a97fc36b8247cd55bb96e73f3dc053d4f0c8bd0 |
2 |
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 17 10:49:21 2015 +0000 |
4 |
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 17 10:49:21 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a97fc36 |
7 |
|
8 |
www-client/chromium: Remove old |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org> |
12 |
|
13 |
www-client/chromium/Manifest | 1 - |
14 |
www-client/chromium/chromium-47.0.2526.80.ebuild | 655 ----------------------- |
15 |
2 files changed, 656 deletions(-) |
16 |
|
17 |
diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest |
18 |
index 088eb99..d134ab0 100644 |
19 |
--- a/www-client/chromium/Manifest |
20 |
+++ b/www-client/chromium/Manifest |
21 |
@@ -1,5 +1,4 @@ |
22 |
DIST chromium-47.0.2526.106-lite.tar.xz 414871736 SHA256 e71bfbdb9293a79d5ab8096b03710e8362b235dd0f263731f4a2f2ce755dd8ab SHA512 dc3d5350459011705a31b8581cabe9764fb9909fe39638deabb65db284c29bd091e2e38f3993dae56521aeda5c79546e55a742ecb997f5654a2d297254d7be61 WHIRLPOOL 95b32e82687ced8654d5c041f3fbb63714a6385053208b0659ebe33700c2178e9b5ef4e02566f5398a2bdde4aaa819387c1694e8b1204fadfa4fa60c1fb53b0d |
23 |
-DIST chromium-47.0.2526.80-lite.tar.xz 376352828 SHA256 680165441f909f5bac6cbbefeaf7050f76d815d8a1de7f02d89892127274cd86 SHA512 c62639d46867d4db440f8e1a17be295245c1ae74ffbac31285b95e113112de4f4a1441364941a027c2acdbc5a001e1667fa7653caa1e15d08f279e729e6ead86 WHIRLPOOL 20fdb9d97e4fc03cbe4d44d84296c2ab4c11d210da82699f640b00443920c361b3238294b603b99ba53fab541637bf50d4789aacc356f0ac0fd294875c881dc1 |
24 |
DIST chromium-48.0.2564.10.tar.xz 432060420 SHA256 1902d75d49d46c32a8c33f6de53c9253a63a364b85eb4ada1e8a9ba7c0f523d0 SHA512 7753dc19a50c862211c10975b3ad64a0408e3645df7b0ea548f8437c4c5380ad0bb350920eb8c6791e0685ae7ec921c6be720e337a17dffe4b73c56b74a2bc9a WHIRLPOOL a9ccb2872ad639886288581e1c7d9244f16965ef924395531701289cc69c5a9dfdc4a25175151d27b150acc8e4398c8d91ca5f8f3e623c3c85c8b99d913c4f00 |
25 |
DIST chromium-48.0.2564.23.tar.xz 1099898120 SHA256 e9a5eeaedb1975a93d37bc865d3122cf28b7e3a246c06ba19204edaefbce1266 SHA512 72b253f39b561e53c0ef2220402ae15e8d2cdd1af8eab4d5fa8480316919df9059dddf4f4c0d027f78fd0db924b7cbd23d29d406808d18fa047ccddffb6701b3 WHIRLPOOL c133e8e389b560efcc239e2f24bb3befd3fe8731bb2529aeee3f2ae04bf09e5d815ef805750c48dd549fb0b94c1ab77d94b03a0b8245cd537bdb204c79393761 |
26 |
DIST chromium-48.0.2564.41.tar.xz 1470877528 SHA256 b265ecb945fcf27dd9d856e18632ea6fa4f88aed7ed32cb5eefb6515b6dc651a SHA512 5d91c603a99ac092c9cc1d1300c826d0eab62092a961dde8dd2c6bcbb342120ff97aa76231407227563fb65c0791c69274d044ab81e261b66cfce76811b428d5 WHIRLPOOL 584638131774053511974722973f28b75f99ceb8241948af91e3de247ccee631c8dbbedac9bfd66b4f5f505bcef194970c361f60a0c9cae7179ad6af0ea55c35 |
27 |
|
28 |
diff --git a/www-client/chromium/chromium-47.0.2526.80.ebuild b/www-client/chromium/chromium-47.0.2526.80.ebuild |
29 |
deleted file mode 100644 |
30 |
index 4232528..0000000 |
31 |
--- a/www-client/chromium/chromium-47.0.2526.80.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,655 +0,0 @@ |
34 |
-# Copyright 1999-2015 Gentoo Foundation |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
-# $Id$ |
37 |
- |
38 |
-EAPI="5" |
39 |
-PYTHON_COMPAT=( python2_7 ) |
40 |
- |
41 |
-CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he |
42 |
- 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 |
43 |
- sv sw ta te th tr uk vi zh_CN zh_TW" |
44 |
- |
45 |
-inherit check-reqs chromium eutils flag-o-matic multilib multiprocessing pax-utils \ |
46 |
- portability python-any-r1 readme.gentoo toolchain-funcs versionator virtualx |
47 |
- |
48 |
-DESCRIPTION="Open-source version of Google Chrome web browser" |
49 |
-HOMEPAGE="http://chromium.org/" |
50 |
-SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}-lite.tar.xz" |
51 |
- |
52 |
-LICENSE="BSD hotwording? ( no-source-code )" |
53 |
-SLOT="0" |
54 |
-KEYWORDS="amd64 ~arm x86" |
55 |
-IUSE="cups gnome gnome-keyring gtk3 +hangouts hidpi hotwording kerberos neon pic +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc widevine" |
56 |
-RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" |
57 |
- |
58 |
-# Native Client binaries are compiled with different set of flags, bug #452066. |
59 |
-QA_FLAGS_IGNORED=".*\.nexe" |
60 |
- |
61 |
-# Native Client binaries may be stripped by the build system, which uses the |
62 |
-# right tools for it, bug #469144 . |
63 |
-QA_PRESTRIPPED=".*\.nexe" |
64 |
- |
65 |
-RDEPEND=">=app-accessibility/speech-dispatcher-0.8:= |
66 |
- app-arch/bzip2:= |
67 |
- app-arch/snappy:= |
68 |
- cups? ( >=net-print/cups-1.3.11:= ) |
69 |
- >=dev-libs/elfutils-0.149 |
70 |
- dev-libs/expat:= |
71 |
- dev-libs/glib:= |
72 |
- >=dev-libs/icu-55.1:= |
73 |
- >=dev-libs/jsoncpp-0.5.0-r1:= |
74 |
- >=dev-libs/libevent-1.4.13:= |
75 |
- dev-libs/libxml2:=[icu] |
76 |
- dev-libs/libxslt:= |
77 |
- dev-libs/nspr:= |
78 |
- >=dev-libs/nss-3.14.3:= |
79 |
- dev-libs/re2:= |
80 |
- gnome? ( >=gnome-base/gconf-2.24.0:= ) |
81 |
- gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= ) |
82 |
- >=media-libs/alsa-lib-1.0.19:= |
83 |
- media-libs/flac:= |
84 |
- media-libs/fontconfig:= |
85 |
- media-libs/freetype:= |
86 |
- media-libs/harfbuzz:=[icu(+)] |
87 |
- media-libs/libexif:= |
88 |
- >=media-libs/libjpeg-turbo-1.2.0-r1:= |
89 |
- media-libs/libpng:0= |
90 |
- >=media-libs/libwebp-0.4.0:= |
91 |
- media-libs/speex:= |
92 |
- pulseaudio? ( media-sound/pulseaudio:= ) |
93 |
- system-ffmpeg? ( >=media-video/ffmpeg-2.7.2:=[opus,vorbis,vpx] ) |
94 |
- sys-apps/dbus:= |
95 |
- sys-apps/pciutils:= |
96 |
- >=sys-libs/libcap-2.22:= |
97 |
- sys-libs/zlib:=[minizip] |
98 |
- virtual/udev |
99 |
- x11-libs/cairo:= |
100 |
- x11-libs/gdk-pixbuf:= |
101 |
- gtk3? ( x11-libs/gtk+:3= ) |
102 |
- !gtk3? ( x11-libs/gtk+:2= ) |
103 |
- x11-libs/libdrm |
104 |
- x11-libs/libX11:= |
105 |
- x11-libs/libXcomposite:= |
106 |
- x11-libs/libXcursor:= |
107 |
- x11-libs/libXdamage:= |
108 |
- x11-libs/libXext:= |
109 |
- x11-libs/libXfixes:= |
110 |
- >=x11-libs/libXi-1.6.0:= |
111 |
- x11-libs/libXinerama:= |
112 |
- x11-libs/libXrandr:= |
113 |
- x11-libs/libXrender:= |
114 |
- x11-libs/libXScrnSaver:= |
115 |
- x11-libs/libXtst:= |
116 |
- x11-libs/pango:= |
117 |
- kerberos? ( virtual/krb5 )" |
118 |
-DEPEND="${RDEPEND} |
119 |
- !arm? ( |
120 |
- dev-lang/yasm |
121 |
- ) |
122 |
- dev-lang/perl |
123 |
- dev-perl/JSON |
124 |
- >=dev-util/gperf-3.0.3 |
125 |
- dev-util/ninja |
126 |
- sys-apps/hwids[usb(+)] |
127 |
- >=sys-devel/bison-2.4.3 |
128 |
- sys-devel/flex |
129 |
- virtual/pkgconfig" |
130 |
- |
131 |
-# For nvidia-drivers blocker, see bug #413637 . |
132 |
-RDEPEND+=" |
133 |
- !=www-client/chromium-9999 |
134 |
- !<www-plugins/chrome-binary-plugins-37 |
135 |
- x11-misc/xdg-utils |
136 |
- virtual/opengl |
137 |
- virtual/ttf-fonts |
138 |
- selinux? ( sec-policy/selinux-chromium ) |
139 |
- tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 ) |
140 |
- widevine? ( www-plugins/chrome-binary-plugins[widevine(-)] )" |
141 |
- |
142 |
-# Python dependencies. The DEPEND part needs to be kept in sync |
143 |
-# with python_check_deps. |
144 |
-DEPEND+=" $(python_gen_any_dep ' |
145 |
- dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}] |
146 |
- dev-python/beautifulsoup:4[${PYTHON_USEDEP}] |
147 |
- dev-python/html5lib[${PYTHON_USEDEP}] |
148 |
- dev-python/jinja[${PYTHON_USEDEP}] |
149 |
- dev-python/ply[${PYTHON_USEDEP}] |
150 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
151 |
-')" |
152 |
-python_check_deps() { |
153 |
- has_version "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" && \ |
154 |
- has_version "dev-python/beautifulsoup:4[${PYTHON_USEDEP}]" && \ |
155 |
- has_version "dev-python/html5lib[${PYTHON_USEDEP}]" && \ |
156 |
- has_version "dev-python/jinja[${PYTHON_USEDEP}]" && \ |
157 |
- has_version "dev-python/ply[${PYTHON_USEDEP}]" && \ |
158 |
- has_version "dev-python/simplejson[${PYTHON_USEDEP}]" |
159 |
-} |
160 |
- |
161 |
-if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
162 |
- EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
163 |
-fi |
164 |
- |
165 |
-DISABLE_AUTOFORMATTING="yes" |
166 |
-DOC_CONTENTS=" |
167 |
-Some web pages may require additional fonts to display properly. |
168 |
-Try installing some of the following packages if some characters |
169 |
-are not displayed properly: |
170 |
-- media-fonts/arphicfonts |
171 |
-- media-fonts/bitstream-cyberbit |
172 |
-- media-fonts/droid |
173 |
-- media-fonts/ipamonafont |
174 |
-- media-fonts/ja-ipafonts |
175 |
-- media-fonts/takao-fonts |
176 |
-- media-fonts/wqy-microhei |
177 |
-- media-fonts/wqy-zenhei |
178 |
- |
179 |
-Depending on your desktop environment, you may need |
180 |
-to install additional packages to get icons on the Downloads page. |
181 |
- |
182 |
-For KDE, the required package is kde-frameworks/oxygen-icons. |
183 |
- |
184 |
-For other desktop environments, try one of the following: |
185 |
-- x11-themes/gnome-icon-theme |
186 |
-- x11-themes/tango-icon-theme |
187 |
-" |
188 |
- |
189 |
-pkg_pretend() { |
190 |
- if [[ $(tc-getCC)$ == *gcc* ]] && \ |
191 |
- [[ $(gcc-major-version)$(gcc-minor-version) -lt 48 ]]; then |
192 |
- die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.' |
193 |
- fi |
194 |
- |
195 |
- # Check build requirements, bug #541816 and bug #471810 . |
196 |
- CHECKREQS_MEMORY="3G" |
197 |
- CHECKREQS_DISK_BUILD="5G" |
198 |
- eshopts_push -s extglob |
199 |
- if is-flagq '-g?(gdb)?([1-9])'; then |
200 |
- CHECKREQS_DISK_BUILD="25G" |
201 |
- fi |
202 |
- eshopts_pop |
203 |
- check-reqs_pkg_pretend |
204 |
-} |
205 |
- |
206 |
-pkg_setup() { |
207 |
- if [[ "${SLOT}" == "0" ]]; then |
208 |
- CHROMIUM_SUFFIX="" |
209 |
- else |
210 |
- CHROMIUM_SUFFIX="-${SLOT}" |
211 |
- fi |
212 |
- CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser${CHROMIUM_SUFFIX}" |
213 |
- |
214 |
- # Make sure the build system will use the right python, bug #344367. |
215 |
- python-any-r1_pkg_setup |
216 |
- |
217 |
- chromium_suid_sandbox_check_kernel_config |
218 |
-} |
219 |
- |
220 |
-src_prepare() { |
221 |
- # if ! use arm; then |
222 |
- # mkdir -p out/Release/gen/sdk/toolchain || die |
223 |
- # # Do not preserve SELinux context, bug #460892 . |
224 |
- # cp -a --no-preserve=context /usr/$(get_libdir)/nacl-toolchain-newlib \ |
225 |
- # out/Release/gen/sdk/toolchain/linux_x86_newlib || die |
226 |
- # touch out/Release/gen/sdk/toolchain/linux_x86_newlib/stamp.untar || die |
227 |
- # fi |
228 |
- |
229 |
- epatch "${FILESDIR}/${PN}-system-ffmpeg-r0.patch" |
230 |
- epatch "${FILESDIR}/${PN}-system-jinja-r7.patch" |
231 |
- epatch "${FILESDIR}/chromium-widevine-r1.patch" |
232 |
- |
233 |
- epatch_user |
234 |
- |
235 |
- local conditional_bundled_libraries="" |
236 |
- if ! use system-ffmpeg; then |
237 |
- conditional_bundled_libraries+=" third_party/ffmpeg" |
238 |
- fi |
239 |
- |
240 |
- # Remove most bundled libraries. Some are still needed. |
241 |
- build/linux/unbundle/remove_bundled_libraries.py \ |
242 |
- ${conditional_bundled_libraries} \ |
243 |
- 'base/third_party/dmg_fp' \ |
244 |
- 'base/third_party/dynamic_annotations' \ |
245 |
- 'base/third_party/icu' \ |
246 |
- 'base/third_party/nspr' \ |
247 |
- 'base/third_party/superfasthash' \ |
248 |
- 'base/third_party/symbolize' \ |
249 |
- 'base/third_party/valgrind' \ |
250 |
- 'base/third_party/xdg_mime' \ |
251 |
- 'base/third_party/xdg_user_dirs' \ |
252 |
- 'breakpad/src/third_party/curl' \ |
253 |
- 'chrome/third_party/mozilla_security_manager' \ |
254 |
- 'courgette/third_party' \ |
255 |
- 'crypto/third_party/nss' \ |
256 |
- 'net/third_party/mozilla_security_manager' \ |
257 |
- 'net/third_party/nss' \ |
258 |
- 'third_party/WebKit' \ |
259 |
- 'third_party/analytics' \ |
260 |
- 'third_party/angle' \ |
261 |
- 'third_party/angle/src/third_party/compiler' \ |
262 |
- 'third_party/boringssl' \ |
263 |
- 'third_party/brotli' \ |
264 |
- 'third_party/cacheinvalidation' \ |
265 |
- 'third_party/catapult' \ |
266 |
- 'third_party/catapult/tracing/third_party/components/polymer' \ |
267 |
- 'third_party/catapult/tracing/third_party/d3' \ |
268 |
- 'third_party/catapult/tracing/third_party/gl-matrix' \ |
269 |
- 'third_party/catapult/tracing/third_party/jszip' \ |
270 |
- 'third_party/catapult/tracing/third_party/tvcm' \ |
271 |
- 'third_party/catapult/tracing/third_party/tvcm/third_party/rcssmin' \ |
272 |
- 'third_party/catapult/tracing/third_party/tvcm/third_party/rjsmin' \ |
273 |
- 'third_party/cld_2' \ |
274 |
- 'third_party/cros_system_api' \ |
275 |
- 'third_party/cython/python_flags.py' \ |
276 |
- 'third_party/devscripts' \ |
277 |
- 'third_party/dom_distiller_js' \ |
278 |
- 'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \ |
279 |
- 'third_party/fips181' \ |
280 |
- 'third_party/flot' \ |
281 |
- 'third_party/google_input_tools' \ |
282 |
- 'third_party/google_input_tools/third_party/closure_library' \ |
283 |
- 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \ |
284 |
- 'third_party/hunspell' \ |
285 |
- 'third_party/iccjpeg' \ |
286 |
- 'third_party/jstemplate' \ |
287 |
- 'third_party/khronos' \ |
288 |
- 'third_party/leveldatabase' \ |
289 |
- 'third_party/libXNVCtrl' \ |
290 |
- 'third_party/libaddressinput' \ |
291 |
- 'third_party/libjingle' \ |
292 |
- 'third_party/libphonenumber' \ |
293 |
- 'third_party/libsecret' \ |
294 |
- 'third_party/libsrtp' \ |
295 |
- 'third_party/libudev' \ |
296 |
- 'third_party/libusb' \ |
297 |
- 'third_party/libvpx_new' \ |
298 |
- 'third_party/libvpx_new/source/libvpx/third_party/x86inc' \ |
299 |
- 'third_party/libxml/chromium' \ |
300 |
- 'third_party/libwebm' \ |
301 |
- 'third_party/libyuv' \ |
302 |
- 'third_party/lss' \ |
303 |
- 'third_party/lzma_sdk' \ |
304 |
- 'third_party/mesa' \ |
305 |
- 'third_party/modp_b64' \ |
306 |
- 'third_party/mojo' \ |
307 |
- 'third_party/mt19937ar' \ |
308 |
- 'third_party/npapi' \ |
309 |
- 'third_party/openmax_dl' \ |
310 |
- 'third_party/opus' \ |
311 |
- 'third_party/ots' \ |
312 |
- 'third_party/pdfium' \ |
313 |
- 'third_party/pdfium/third_party/agg23' \ |
314 |
- 'third_party/pdfium/third_party/base' \ |
315 |
- 'third_party/pdfium/third_party/bigint' \ |
316 |
- 'third_party/pdfium/third_party/freetype' \ |
317 |
- 'third_party/pdfium/third_party/lcms2-2.6' \ |
318 |
- 'third_party/pdfium/third_party/libjpeg' \ |
319 |
- 'third_party/pdfium/third_party/libopenjpeg20' \ |
320 |
- 'third_party/pdfium/third_party/zlib_v128' \ |
321 |
- 'third_party/polymer' \ |
322 |
- 'third_party/protobuf' \ |
323 |
- 'third_party/qcms' \ |
324 |
- 'third_party/readability' \ |
325 |
- 'third_party/sfntly' \ |
326 |
- 'third_party/skia' \ |
327 |
- 'third_party/smhasher' \ |
328 |
- 'third_party/sqlite' \ |
329 |
- 'third_party/tcmalloc' \ |
330 |
- 'third_party/usrsctp' \ |
331 |
- 'third_party/web-animations-js' \ |
332 |
- 'third_party/webdriver' \ |
333 |
- 'third_party/webrtc' \ |
334 |
- 'third_party/widevine' \ |
335 |
- 'third_party/x86inc' \ |
336 |
- 'third_party/zlib/google' \ |
337 |
- 'url/third_party/mozilla' \ |
338 |
- 'v8/src/third_party/fdlibm' \ |
339 |
- 'v8/src/third_party/valgrind' \ |
340 |
- --do-remove || die |
341 |
-} |
342 |
- |
343 |
-src_configure() { |
344 |
- local myconf="" |
345 |
- |
346 |
- # Never tell the build system to "enable" SSE2, it has a few unexpected |
347 |
- # additions, bug #336871. |
348 |
- myconf+=" -Ddisable_sse2=1" |
349 |
- |
350 |
- # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
351 |
- myconf+=" -Ddisable_nacl=1" |
352 |
- |
353 |
- # Disable glibc Native Client toolchain, we don't need it (bug #417019). |
354 |
- # myconf+=" -Ddisable_glibc=1" |
355 |
- |
356 |
- # TODO: also build with pnacl |
357 |
- # myconf+=" -Ddisable_pnacl=1" |
358 |
- |
359 |
- # It would be awkward for us to tar the toolchain and get it untarred again |
360 |
- # during the build. |
361 |
- # myconf+=" -Ddisable_newlib_untar=1" |
362 |
- |
363 |
- # Make it possible to remove third_party/adobe. |
364 |
- echo > "${T}/flapper_version.h" || die |
365 |
- myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h" |
366 |
- |
367 |
- # Use system-provided libraries. |
368 |
- # TODO: use_system_hunspell (upstream changes needed). |
369 |
- # TODO: use_system_libsrtp (bug #459932). |
370 |
- # TODO: use_system_libusb (http://crbug.com/266149). |
371 |
- # TODO: use_system_libvpx (http://crbug.com/494939). |
372 |
- # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077). |
373 |
- # TODO: use_system_protobuf (bug #525560). |
374 |
- # TODO: use_system_ssl (http://crbug.com/58087). |
375 |
- # TODO: use_system_sqlite (http://crbug.com/22208). |
376 |
- myconf+=" |
377 |
- -Duse_system_bzip2=1 |
378 |
- -Duse_system_ffmpeg=$(usex system-ffmpeg 1 0) |
379 |
- -Duse_system_flac=1 |
380 |
- -Duse_system_harfbuzz=1 |
381 |
- -Duse_system_icu=1 |
382 |
- -Duse_system_jsoncpp=1 |
383 |
- -Duse_system_libevent=1 |
384 |
- -Duse_system_libjpeg=1 |
385 |
- -Duse_system_libpng=1 |
386 |
- -Duse_system_libwebp=1 |
387 |
- -Duse_system_libxml=1 |
388 |
- -Duse_system_libxslt=1 |
389 |
- -Duse_system_minizip=1 |
390 |
- -Duse_system_nspr=1 |
391 |
- -Duse_system_re2=1 |
392 |
- -Duse_system_snappy=1 |
393 |
- -Duse_system_speex=1 |
394 |
- -Duse_system_xdg_utils=1 |
395 |
- -Duse_system_zlib=1" |
396 |
- |
397 |
- # Needed for system icu - we don't need additional data files. |
398 |
- myconf+=" -Dicu_use_data_file_flag=0" |
399 |
- |
400 |
- # TODO: patch gyp so that this arm conditional is not needed. |
401 |
- if ! use arm; then |
402 |
- myconf+=" |
403 |
- -Duse_system_yasm=1" |
404 |
- fi |
405 |
- |
406 |
- # Optional dependencies. |
407 |
- # TODO: linux_link_kerberos, bug #381289. |
408 |
- myconf+=" |
409 |
- $(gyp_use cups) |
410 |
- $(gyp_use gnome use_gconf) |
411 |
- $(gyp_use gnome-keyring use_gnome_keyring) |
412 |
- $(gyp_use gnome-keyring linux_link_gnome_keyring) |
413 |
- $(gyp_use gtk3) |
414 |
- $(gyp_use hangouts enable_hangout_services_extension) |
415 |
- $(gyp_use hidpi enable_hidpi) |
416 |
- $(gyp_use hotwording enable_hotwording) |
417 |
- $(gyp_use kerberos) |
418 |
- $(gyp_use pulseaudio) |
419 |
- $(gyp_use tcmalloc use_allocator tcmalloc none) |
420 |
- $(gyp_use widevine enable_widevine)" |
421 |
- |
422 |
- # Use explicit library dependencies instead of dlopen. |
423 |
- # This makes breakages easier to detect by revdep-rebuild. |
424 |
- myconf+=" |
425 |
- -Dlinux_link_gsettings=1 |
426 |
- -Dlinux_link_libpci=1 |
427 |
- -Dlinux_link_libspeechd=1 |
428 |
- -Dlibspeechd_h_prefix=speech-dispatcher/" |
429 |
- |
430 |
- # TODO: use the file at run time instead of effectively compiling it in. |
431 |
- myconf+=" |
432 |
- -Dusb_ids_path=/usr/share/misc/usb.ids" |
433 |
- |
434 |
- # Save space by removing DLOG and DCHECK messages (about 6% reduction). |
435 |
- myconf+=" |
436 |
- -Dlogging_like_official_build=1" |
437 |
- |
438 |
- if [[ $(tc-getCC) == *clang* ]]; then |
439 |
- myconf+=" -Dclang=1" |
440 |
- else |
441 |
- myconf+=" -Dclang=0" |
442 |
- fi |
443 |
- |
444 |
- # Never use bundled gold binary. Disable gold linker flags for now. |
445 |
- # Do not use bundled clang. |
446 |
- myconf+=" |
447 |
- -Dclang_use_chrome_plugins=0 |
448 |
- -Dhost_clang=0 |
449 |
- -Dlinux_use_bundled_binutils=0 |
450 |
- -Dlinux_use_bundled_gold=0 |
451 |
- -Dlinux_use_gold_flags=0" |
452 |
- |
453 |
- ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)" |
454 |
- myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=${ffmpeg_branding}" |
455 |
- |
456 |
- # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
457 |
- # Note: these are for Gentoo use ONLY. For your own distribution, |
458 |
- # please get your own set of keys. Feel free to contact chromium@g.o |
459 |
- # for more info. |
460 |
- myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
461 |
- -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com |
462 |
- -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu" |
463 |
- |
464 |
- local myarch="$(tc-arch)" |
465 |
- if [[ $myarch = amd64 ]] ; then |
466 |
- target_arch=x64 |
467 |
- ffmpeg_target_arch=x64 |
468 |
- elif [[ $myarch = x86 ]] ; then |
469 |
- target_arch=ia32 |
470 |
- ffmpeg_target_arch=ia32 |
471 |
- elif [[ $myarch = arm ]] ; then |
472 |
- target_arch=arm |
473 |
- ffmpeg_target_arch=$(usex neon arm-neon arm) |
474 |
- # TODO: re-enable NaCl (NativeClient). |
475 |
- local CTARGET=${CTARGET:-${CHOST}} |
476 |
- if [[ $(tc-is-softfloat) == "no" ]]; then |
477 |
- |
478 |
- myconf+=" -Darm_float_abi=hard" |
479 |
- fi |
480 |
- filter-flags "-mfpu=*" |
481 |
- use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}" |
482 |
- |
483 |
- if [[ ${CTARGET} == armv[78]* ]]; then |
484 |
- myconf+=" -Darmv7=1" |
485 |
- else |
486 |
- myconf+=" -Darmv7=0" |
487 |
- fi |
488 |
- myconf+=" -Dsysroot= |
489 |
- $(gyp_use neon arm_neon) |
490 |
- -Ddisable_nacl=1" |
491 |
- else |
492 |
- die "Failed to determine target arch, got '$myarch'." |
493 |
- fi |
494 |
- |
495 |
- myconf+=" -Dtarget_arch=${target_arch}" |
496 |
- |
497 |
- # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
498 |
- # Depending on GCC version the warnings are different and we don't want |
499 |
- # the build to fail because of that. |
500 |
- myconf+=" -Dwerror=" |
501 |
- |
502 |
- # Disable fatal linker warnings, bug 506268. |
503 |
- myconf+=" -Ddisable_fatal_linker_warnings=1" |
504 |
- |
505 |
- # Avoid CFLAGS problems, bug #352457, bug #390147. |
506 |
- if ! use custom-cflags; then |
507 |
- replace-flags "-Os" "-O2" |
508 |
- strip-flags |
509 |
- |
510 |
- # Prevent linker from running out of address space, bug #471810 . |
511 |
- if use x86; then |
512 |
- filter-flags "-g*" |
513 |
- fi |
514 |
- |
515 |
- # Prevent libvpx build failures. Bug 530248, 544702, 546984. |
516 |
- if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then |
517 |
- filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 |
518 |
- fi |
519 |
- fi |
520 |
- |
521 |
- # Make sure the build system will use the right tools, bug #340795. |
522 |
- tc-export AR CC CXX NM |
523 |
- |
524 |
- # Tools for building programs to be executed on the build system, bug #410883. |
525 |
- if tc-is-cross-compiler; then |
526 |
- export AR_host=$(tc-getBUILD_AR) |
527 |
- export CC_host=$(tc-getBUILD_CC) |
528 |
- export CXX_host=$(tc-getBUILD_CXX) |
529 |
- export NM_host=$(tc-getBUILD_NM) |
530 |
- fi |
531 |
- |
532 |
- # Bug 491582. |
533 |
- export TMPDIR="${WORKDIR}/temp" |
534 |
- mkdir -p -m 755 "${TMPDIR}" || die |
535 |
- |
536 |
- if ! use system-ffmpeg; then |
537 |
- local build_ffmpeg_args="" |
538 |
- if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
539 |
- build_ffmpeg_args+=" --disable-asm" |
540 |
- fi |
541 |
- |
542 |
- # Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
543 |
- einfo "Configuring bundled ffmpeg..." |
544 |
- pushd third_party/ffmpeg > /dev/null || die |
545 |
- chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ |
546 |
- --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die |
547 |
- chromium/scripts/copy_config.sh || die |
548 |
- chromium/scripts/generate_gyp.py || die |
549 |
- popd > /dev/null || die |
550 |
- fi |
551 |
- |
552 |
- third_party/libaddressinput/chromium/tools/update-strings.py || die |
553 |
- |
554 |
- touch chrome/test/data/webui/i18n_process_css_test.html || die |
555 |
- |
556 |
- einfo "Configuring Chromium..." |
557 |
- build/linux/unbundle/replace_gyp_files.py ${myconf} || die |
558 |
- egyp_chromium ${myconf} || die |
559 |
-} |
560 |
- |
561 |
-eninja() { |
562 |
- if [[ -z ${NINJAOPTS+set} ]]; then |
563 |
- local jobs=$(makeopts_jobs) |
564 |
- local loadavg=$(makeopts_loadavg) |
565 |
- |
566 |
- if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then |
567 |
- NINJAOPTS+=" -j ${jobs}" |
568 |
- fi |
569 |
- if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then |
570 |
- NINJAOPTS+=" -l ${loadavg}" |
571 |
- fi |
572 |
- fi |
573 |
- set -- ninja -v ${NINJAOPTS} "$@" |
574 |
- echo "$@" |
575 |
- "$@" |
576 |
-} |
577 |
- |
578 |
-src_compile() { |
579 |
- local ninja_targets="chrome chrome_sandbox chromedriver" |
580 |
- |
581 |
- # Build mksnapshot and pax-mark it. |
582 |
- eninja -C out/Release mksnapshot || die |
583 |
- pax-mark m out/Release/mksnapshot |
584 |
- |
585 |
- # Even though ninja autodetects number of CPUs, we respect |
586 |
- # user's options, for debugging with -j 1 or any other reason. |
587 |
- eninja -C out/Release ${ninja_targets} || die |
588 |
- |
589 |
- pax-mark m out/Release/chrome |
590 |
-} |
591 |
- |
592 |
-src_install() { |
593 |
- exeinto "${CHROMIUM_HOME}" |
594 |
- doexe out/Release/chrome || die |
595 |
- |
596 |
- newexe out/Release/chrome_sandbox chrome-sandbox || die |
597 |
- fperms 4755 "${CHROMIUM_HOME}/chrome-sandbox" |
598 |
- |
599 |
- doexe out/Release/chromedriver || die |
600 |
- use widevine && doexe out/Release/libwidevinecdmadapter.so |
601 |
- |
602 |
- # if ! use arm; then |
603 |
- # doexe out/Release/nacl_helper{,_bootstrap} || die |
604 |
- # insinto "${CHROMIUM_HOME}" |
605 |
- # doins out/Release/nacl_irt_*.nexe || die |
606 |
- # doins out/Release/libppGoogleNaClPluginChrome.so || die |
607 |
- # fi |
608 |
- |
609 |
- local sedargs=( -e "s:/usr/lib/:/usr/$(get_libdir)/:g" ) |
610 |
- if [[ -n ${CHROMIUM_SUFFIX} ]]; then |
611 |
- sedargs+=( |
612 |
- -e "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" |
613 |
- -e "s:chromium.desktop:chromium${CHROMIUM_SUFFIX}.desktop:g" |
614 |
- -e "s:plugins:plugins --user-data-dir=\${HOME}/.config/chromium${CHROMIUM_SUFFIX}:" |
615 |
- ) |
616 |
- fi |
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${CHROMIUM_SUFFIX} || die |
623 |
- # keep the old symlink around for consistency |
624 |
- dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium${CHROMIUM_SUFFIX} || die |
625 |
- |
626 |
- dosym "${CHROMIUM_HOME}/chromedriver" /usr/bin/chromedriver${CHROMIUM_SUFFIX} || die |
627 |
- |
628 |
- # Allow users to override command-line options, bug #357629. |
629 |
- dodir /etc/chromium || die |
630 |
- insinto /etc/chromium |
631 |
- newins "${FILESDIR}/chromium.default" "default" || die |
632 |
- |
633 |
- pushd out/Release/locales > /dev/null || die |
634 |
- chromium_remove_language_paks |
635 |
- popd |
636 |
- |
637 |
- insinto "${CHROMIUM_HOME}" |
638 |
- doins out/Release/*.bin || die |
639 |
- doins out/Release/*.pak || die |
640 |
- |
641 |
- doins -r out/Release/locales || die |
642 |
- doins -r out/Release/resources || die |
643 |
- |
644 |
- newman out/Release/chrome.1 chromium${CHROMIUM_SUFFIX}.1 || die |
645 |
- newman out/Release/chrome.1 chromium-browser${CHROMIUM_SUFFIX}.1 || die |
646 |
- |
647 |
- # Install icons and desktop entry. |
648 |
- local branding size |
649 |
- for size in 16 22 24 32 48 64 128 256 ; do |
650 |
- case ${size} in |
651 |
- 16|32) branding="chrome/app/theme/default_100_percent/chromium" ;; |
652 |
- *) branding="chrome/app/theme/chromium" ;; |
653 |
- esac |
654 |
- newicon -s ${size} "${branding}/product_logo_${size}.png" \ |
655 |
- chromium-browser${CHROMIUM_SUFFIX}.png |
656 |
- done |
657 |
- |
658 |
- local mime_types="text/html;text/xml;application/xhtml+xml;" |
659 |
- mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
660 |
- mime_types+="x-scheme-handler/ftp;" # bug #412185 |
661 |
- mime_types+="x-scheme-handler/mailto;x-scheme-handler/webcal;" # bug #416393 |
662 |
- make_desktop_entry \ |
663 |
- chromium-browser${CHROMIUM_SUFFIX} \ |
664 |
- "Chromium${CHROMIUM_SUFFIX}" \ |
665 |
- chromium-browser${CHROMIUM_SUFFIX} \ |
666 |
- "Network;WebBrowser" \ |
667 |
- "MimeType=${mime_types}\nStartupWMClass=chromium-browser" |
668 |
- sed -e "/^Exec/s/$/ %U/" -i "${ED}"/usr/share/applications/*.desktop || die |
669 |
- |
670 |
- # Install GNOME default application entry (bug #303100). |
671 |
- if use gnome; then |
672 |
- dodir /usr/share/gnome-control-center/default-apps || die |
673 |
- insinto /usr/share/gnome-control-center/default-apps |
674 |
- newins "${FILESDIR}"/chromium-browser.xml chromium-browser${CHROMIUM_SUFFIX}.xml || die |
675 |
- if [[ "${CHROMIUM_SUFFIX}" != "" ]]; then |
676 |
- sed "s:chromium-browser:chromium-browser${CHROMIUM_SUFFIX}:g" -i \ |
677 |
- "${ED}"/usr/share/gnome-control-center/default-apps/chromium-browser${CHROMIUM_SUFFIX}.xml |
678 |
- fi |
679 |
- fi |
680 |
- |
681 |
- readme.gentoo_create_doc |
682 |
-} |
683 |
- |
684 |
-pkg_postinst() { |
685 |
- fdo-mime_desktop_database_update |
686 |
- gnome2_icon_cache_update |
687 |
- readme.gentoo_print_elog |
688 |
-} |