1 |
commit: 554084f7cffdd1580a50af1f2b2acf38e14da88b |
2 |
Author: Stefan Strogin <steils <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 01:21:43 2020 +0000 |
4 |
Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 01:21:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=554084f7 |
7 |
|
8 |
dev-util/electron: drop package removed from gentoo.git |
9 |
|
10 |
Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> |
11 |
|
12 |
dev-util/electron/Manifest | 13 - |
13 |
dev-util/electron/electron-2.0.10.ebuild | 908 ----------------------------- |
14 |
dev-util/electron/files/toolchain/BUILD.gn | 37 -- |
15 |
dev-util/electron/metadata.xml | 27 - |
16 |
4 files changed, 985 deletions(-) |
17 |
|
18 |
diff --git a/dev-util/electron/Manifest b/dev-util/electron/Manifest |
19 |
deleted file mode 100644 |
20 |
index f48d2c7..0000000 |
21 |
--- a/dev-util/electron/Manifest |
22 |
+++ /dev/null |
23 |
@@ -1,13 +0,0 @@ |
24 |
-DIST asar-0.13.0.tar.gz 1622264 BLAKE2B 018bccc3d2b54040fe7c6e6c1ecfbe0ab4d52554feab78fae41a09d35b7e934720cba45f77239eda46d746390c4f072b3e0eecdf7f0953882d6f27cb940de018 SHA512 619b59e9576a185905b455b780630188ce32aed72b424c69967a7bf15236d1edf2f5d92f7dde972599679c88fe0a80f05295a3d82b2ae0944be08d332a659aee |
25 |
-DIST browserify-14.0.0.tar.gz 1847439 BLAKE2B 50d84f51d8640fa881751339e1d37f04d6ba3ea5aa17222c1e9a29bc805ade5f14ce95bb97fb494e0a1a71e6a5da672566aeb0fbbea4b48d9ad19d20405a0b11 SHA512 fea8219ab2c5b422c15cc8c305a8aa0396f3de46c8d602eb4976af1d2b0a043214f808e3fa8e31cae0ad7c76d9ddc38239d0208911105f9c851efddfaf96b0c7 |
26 |
-DIST chromium-61.0.3163.100.tar.xz 556305252 BLAKE2B 88b9dc05d626ec33c2044cd8bb5a5bd2e36c4ba5c231230b5b6529d62cc100874099d17633ca320a0c668b130797d6b222107d2efcd6f80b5b0b460d378f4454 SHA512 4dfd3a493ceb7c605eeab6f387541273d529e8b935a6104927e34836469aedcfcbb4a1154591585621d5c2e842e68701d32328acba842f840a20498822165f78 |
27 |
-DIST electron-2.0.10.tar.gz 3012289 BLAKE2B 3d4f2560e754917c7e72e6450ccf9d6d5f8a7741fb5c426d6db9cad01780be5531671bea55eb9033f5de288617d8cc366a17b1a77eac5bd32440ff8e9ee53a5e SHA512 5663e9b018a51bf7f7c87a8c5b51cf631a91980bf01fdcb207f2054da2bfaffdebfe027bd8c27dfa0af523fd09ec1c52076a7f6de9c5bf9a0ffbb898d1797b59 |
28 |
-DIST electron-breakpad-67f738b7adb47dc1e3b272fb99062f4192fa6651.tar.gz 5168487 BLAKE2B 41583e3297c2e8a612720f2087720cb7bc4ebf0aaaf5481029bd65458b26e5e824da283f474cf70d8933f80538e9f6c4b8a5843f27a6448b727ec9f12578b526 SHA512 303d1545dbe8e5fdece0fcd90c2ad09fab24483b176df1491580b9b382a607c0a814681cd58bcb7166b9cfc5af882a2b0d2fcc175d23f747b37c921040b68310 |
29 |
-DIST electron-chromium-breakpad-82f0452e6b687b3c1e14e08d172b2f3fb79ae91a.tar.gz 1141359 BLAKE2B 7145fc178dcb62e9f14123da03e98f5e37c29f3a58799e675b3638eb0694771d1320de8bc70d97daa5c8c21db548efa3aa3c86d2018d6cea95f288b39cae4020 SHA512 4c8353a34061f4e061bb9e23945c0fb7a56f1b9f249b323cd3315cafcecdaca5c1f63940e2334ded03413cf26f5aa4a5bd8f1720fb2ba422a97d70f121d7d3d4 |
30 |
-DIST electron-grit-9536fb6429147d27ef1563088341825db0a893cd.tar.gz 378461 BLAKE2B cb194cca884419f1c85524740860db244b06a237428add2cd9afaae8e0fe63ccb266b8e5e44f2125da57d263f167aec6c46c9c3451c5217100d58825f4322ecd SHA512 515797740421d5f80912b33dab2039c35b2ae432a0c4351aa031461ef6c82b7a1775c3d4d41ba6c646f81ba3ddf3bbfcb35b81da1ef88b486a2a67d15f09ec86 |
31 |
-DIST electron-libchromiumcontent-cbd04c0dccc7655cd42f02baee3a622d5170ac08.tar.gz 161487 BLAKE2B de2f7f708aafc2f9033fb0dbee50880f9441196c81ba355bae966a1ffbb0c2f30c86cbb30021af599ac3abf071431f99c07a7a51b45db41901624148e1988369 SHA512 f207fdddecda879ff3c83e1503af0e919c1f6fe2e3666ac9d40c9fc21dfb3a679e1f0ab3ce7b89057a412934c5a9c96ed846761c669875ee0c3a1955308be184 |
32 |
-DIST electron-native-mate-6a3d238b7e1e3742f2bb495336a84021d927a24f.tar.gz 24130 BLAKE2B b807a13d01ccd07a3310d8551cafee69a111bb342ee9e15bc0a20243c6f98638e3f18ddd716389fcabace064d4b98acbe50ff6eed862d8d46d152c8bd6f562b2 SHA512 c9ca33f7f96f52aae132f0e4cbd141fe28cea96b9e2c9fadcac40e3bd09d417469fac2851ad1c49790a4533174df0bec9d5ad45203a1358b3d4a2c0df49903fa |
33 |
-DIST electron-node-51abeb37cad3f2098c0f0fffdff739f4ac2393e8.tar.gz 50344964 BLAKE2B 36f91e8ae7d1ae4e99c44128398589e015224c664c86d3869327a4c433fdf8efdb758d4462ec3d8997399bf6d62cfe63f91ae8ee4886aab7817b1654c94592a2 SHA512 8f31577a4ef836b5535ec69d8a020c06e92c01667a0d4b857fcb6789025a6903d42ba3f9b51fd0828d39e88dd7ba44a07cfb3a59023b04c4f5cb89e1a27874bc |
34 |
-DIST electron-patches-f0fb7725cfe73704dce84ec51bdccc024dc7ceff.tar.gz 88340 BLAKE2B 759f8da023fae94ac0639387ace26694b2ff9dfd978f783cae2f1ccaaf749200ec2cdcfb771fbd3dc8a605521886c8e3383b7ed565eb250f753d238fd30ad6ef SHA512 c542d8fcf95123dc4ebced608ae0d1d9bc04db67f89c50f219bdf4ed8e916059333d1e3571387bf2992b46c3b0a02692f7ec2531920f693db30c7ed401bb73d4 |
35 |
-DIST electron-pdf-viewer-a5251e497fb52e699b28f627e3cbb6d8cefb62df.tar.gz 42117 BLAKE2B afd5ca8897ff70cc8d1d51855c6b1cfdf9a6e1ffb667c740f323ef9e4e11ed22ecac7e8c0447dbaa6488e4b11ba4e8606e654f792bb42d0b4c805e7d4a32aab4 SHA512 2db9c756ebff5148c6011775b2740671b7ab6693242400b417893eace648720c51e709bd108d766910f24b543b88c60fd292ba9aa8aa88bff1ea40d43961ad5b |
36 |
-DIST ninja-1.8.2.tar.gz 185226 BLAKE2B c464c50829a0e9f0f6fd4b860946b14bf07f752adb8e7857d4072a1c1f06977eda283f633041929065c9164377ca769b3293b04fc9ceab583371708a9c4e8f2a SHA512 1650bf9e3eddeb0b0fbb415c2b8e0a7c094421e991fa8139fd77fae0f6ee7ee980b7cf5e98d883c3a884f99abcb06fa26e3980af3a3a5bb6dd655124755782c2 |
37 |
|
38 |
diff --git a/dev-util/electron/electron-2.0.10.ebuild b/dev-util/electron/electron-2.0.10.ebuild |
39 |
deleted file mode 100644 |
40 |
index b5e8cd3..0000000 |
41 |
--- a/dev-util/electron/electron-2.0.10.ebuild |
42 |
+++ /dev/null |
43 |
@@ -1,908 +0,0 @@ |
44 |
-# Copyright 1999-2019 Gentoo Authors |
45 |
-# Distributed under the terms of the GNU General Public License v2 |
46 |
- |
47 |
-EAPI="6" |
48 |
-PYTHON_COMPAT=( python2_7 ) |
49 |
- |
50 |
-CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he |
51 |
- 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 |
52 |
- sv sw ta te th tr uk vi zh-CN zh-TW" |
53 |
- |
54 |
-inherit check-reqs chromium-2 eapi7-ver gnome2-utils flag-o-matic multilib \ |
55 |
- multiprocessing ninja-utils pax-utils portability python-any-r1 \ |
56 |
- toolchain-funcs virtualx xdg-utils |
57 |
- |
58 |
-# Keep this in sync with vendor/libchromiumcontent/VERSION |
59 |
-CHROMIUM_VERSION="61.0.3163.100" |
60 |
-# Keep this in sync with vendor/breakpad |
61 |
-BREAKPAD_COMMIT="82f0452e6b687b3c1e14e08d172b2f3fb79ae91a" |
62 |
-# Keep this in sync with vendor/breakpad/src (and find the corresponding |
63 |
-# commit in https://github.com/google/breakpad/) |
64 |
-BREAKPAD_SRC_COMMIT="67f738b7adb47dc1e3b272fb99062f4192fa6651" |
65 |
-# Keep this in sync with vendor/node |
66 |
-NODE_COMMIT="51abeb37cad3f2098c0f0fffdff739f4ac2393e8" |
67 |
-# Keep this in sync with vendor/native_mate |
68 |
-NATIVE_MATE_COMMIT="6a3d238b7e1e3742f2bb495336a84021d927a24f" |
69 |
-# Keep this in sync with vendor/pdf_viewer |
70 |
-PDF_VIEWER_COMMIT="a5251e497fb52e699b28f627e3cbb6d8cefb62df" |
71 |
-# Keep this in sync with vendor/pdf_viewer/vendor/grit |
72 |
-GRIT_COMMIT="9536fb6429147d27ef1563088341825db0a893cd" |
73 |
-# Keep this in sync with vendor/libchromiumcontent |
74 |
-LIBCHROMIUMCONTENT_COMMIT="cbd04c0dccc7655cd42f02baee3a622d5170ac08" |
75 |
-# Keep this in sync with package.json#devDependencies |
76 |
-ASAR_VERSION="0.13.0" |
77 |
-BROWSERIFY_VERSION="14.0.0" |
78 |
-NINJA_VERSION="1.8.2" |
79 |
-GENTOO_PATCHES_VERSION="f0fb7725cfe73704dce84ec51bdccc024dc7ceff" |
80 |
- |
81 |
-PATCHES_P="gentoo-electron-patches-${GENTOO_PATCHES_VERSION}" |
82 |
-CHROMIUM_P="chromium-${CHROMIUM_VERSION}" |
83 |
-BREAKPAD_P="chromium-breakpad-${BREAKPAD_COMMIT}" |
84 |
-BREAKPAD_SRC_P="breakpad-${BREAKPAD_SRC_COMMIT}" |
85 |
-NODE_P="node-${NODE_COMMIT}" |
86 |
-NATIVE_MATE_P="native-mate-${NATIVE_MATE_COMMIT}" |
87 |
-PDF_VIEWER_P="pdf-viewer-${PDF_VIEWER_COMMIT}" |
88 |
-GRIT_P="grit-${GRIT_COMMIT}" |
89 |
-LIBCHROMIUMCONTENT_P="libchromiumcontent-${LIBCHROMIUMCONTENT_COMMIT}" |
90 |
-ASAR_P="asar-${ASAR_VERSION}" |
91 |
-BROWSERIFY_P="browserify-${BROWSERIFY_VERSION}" |
92 |
- |
93 |
-DESCRIPTION="Cross platform application development framework based on web technologies" |
94 |
-HOMEPAGE="https://electronjs.org/" |
95 |
-SRC_URI=" |
96 |
- https://commondatastorage.googleapis.com/chromium-browser-official/${CHROMIUM_P}.tar.xz |
97 |
- https://github.com/electron/electron/archive/v${PV}.tar.gz -> ${P}.tar.gz |
98 |
- https://github.com/electron/chromium-breakpad/archive/${BREAKPAD_COMMIT}.tar.gz -> electron-${BREAKPAD_P}.tar.gz |
99 |
- https://github.com/google/breakpad/archive/${BREAKPAD_SRC_COMMIT}.tar.gz -> electron-${BREAKPAD_SRC_P}.tar.gz |
100 |
- https://github.com/electron/node/archive/${NODE_COMMIT}.tar.gz -> electron-${NODE_P}.tar.gz |
101 |
- https://github.com/zcbenz/native-mate/archive/${NATIVE_MATE_COMMIT}.tar.gz -> electron-${NATIVE_MATE_P}.tar.gz |
102 |
- https://github.com/electron/pdf-viewer/archive/${PDF_VIEWER_COMMIT}.tar.gz -> electron-${PDF_VIEWER_P}.tar.gz |
103 |
- https://github.com/elprans/grit/archive/${GRIT_COMMIT}.tar.gz -> electron-${GRIT_P}.tar.gz |
104 |
- https://github.com/electron/libchromiumcontent/archive/${LIBCHROMIUMCONTENT_COMMIT}.tar.gz -> electron-${LIBCHROMIUMCONTENT_P}.tar.gz |
105 |
- https://github.com/elprans/asar/releases/download/v${ASAR_VERSION}-gentoo/asar-build.tar.gz -> ${ASAR_P}.tar.gz |
106 |
- https://github.com/elprans/node-browserify/releases/download/${BROWSERIFY_VERSION}-gentoo/browserify-build.tar.gz -> ${BROWSERIFY_P}.tar.gz |
107 |
- https://github.com/elprans/gentoo-electron-patches/archive/${GENTOO_PATCHES_VERSION}.tar.gz -> electron-patches-${GENTOO_PATCHES_VERSION}.tar.gz |
108 |
- https://github.com/ninja-build/ninja/archive/v${NINJA_VERSION}.tar.gz -> ninja-${NINJA_VERSION}.tar.gz |
109 |
-" |
110 |
- |
111 |
-S="${WORKDIR}/${P}" |
112 |
-CHROMIUM_S="${S}/chromium" |
113 |
-NODE_S="${S}/vendor/node" |
114 |
-BREAKPAD_S="${S}/vendor/breakpad" |
115 |
-BREAKPAD_SRC_S="${BREAKPAD_S}/src" |
116 |
-NATIVE_MATE_S="${S}/vendor/native_mate" |
117 |
-PDF_VIEWER_S="${S}/vendor/pdf_viewer" |
118 |
-GRIT_S="${PDF_VIEWER_S}/vendor/grit" |
119 |
-LIBCC_S="${S}/vendor/libchromiumcontent" |
120 |
- |
121 |
-LICENSE="BSD" |
122 |
-SLOT="$(ver_cut 1-2)" |
123 |
-KEYWORDS="~amd64" |
124 |
-IUSE="cups custom-cflags gconf gnome-keyring kerberos lto neon pic |
125 |
- +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc" |
126 |
-RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )" |
127 |
- |
128 |
-# Native Client binaries are compiled with different set of flags, bug #452066. |
129 |
-QA_FLAGS_IGNORED=".*\.nexe" |
130 |
- |
131 |
-# Native Client binaries may be stripped by the build system, which uses the |
132 |
-# right tools for it, bug #469144 . |
133 |
-QA_PRESTRIPPED=".*\.nexe" |
134 |
- |
135 |
-COMMON_DEPEND=" |
136 |
- app-arch/bzip2:= |
137 |
- >=app-eselect/eselect-electron-2.0 |
138 |
- cups? ( >=net-print/cups-1.3.11:= ) |
139 |
- dev-libs/expat:= |
140 |
- dev-libs/glib:2 |
141 |
- >=dev-libs/icu-58:= |
142 |
- dev-libs/libxml2:=[icu] |
143 |
- dev-libs/libxslt:= |
144 |
- dev-libs/nspr:= |
145 |
- >=dev-libs/nss-3.14.3:= |
146 |
- >=dev-libs/re2-0.2016.05.01:= |
147 |
- gconf? ( >=gnome-base/gconf-2.24.0:= ) |
148 |
- gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= ) |
149 |
- >=media-libs/alsa-lib-1.0.19:= |
150 |
- media-libs/fontconfig:= |
151 |
- media-libs/freetype:= |
152 |
- >=media-libs/harfbuzz-1.4.2:=[icu(+)] |
153 |
- media-libs/libexif:= |
154 |
- media-libs/libjpeg-turbo:= |
155 |
- media-libs/libpng:= |
156 |
- >=media-libs/libvpx-1.7.0:=[postproc,svc] |
157 |
- >=media-libs/openh264-1.6.0:= |
158 |
- pulseaudio? ( media-sound/pulseaudio:= ) |
159 |
- system-ffmpeg? ( |
160 |
- >=media-video/ffmpeg-3:= |
161 |
- || ( |
162 |
- media-video/ffmpeg[-samba] |
163 |
- >=net-fs/samba-4.5.10-r1[-debug(-)] |
164 |
- ) |
165 |
- !=net-fs/samba-4.5.12-r0 |
166 |
- media-libs/opus:= |
167 |
- ) |
168 |
- >=net-dns/c-ares-1.13.0:= |
169 |
- >=net-libs/nghttp2-1.32.0:= |
170 |
- sys-apps/dbus:= |
171 |
- sys-apps/pciutils:= |
172 |
- virtual/udev |
173 |
- x11-libs/cairo:= |
174 |
- x11-libs/gdk-pixbuf:2 |
175 |
- x11-libs/gtk+:3[X] |
176 |
- x11-libs/libdrm |
177 |
- x11-libs/libnotify:= |
178 |
- x11-libs/libX11:= |
179 |
- x11-libs/libXcomposite:= |
180 |
- x11-libs/libXcursor:= |
181 |
- x11-libs/libXdamage:= |
182 |
- x11-libs/libXext:= |
183 |
- x11-libs/libXfixes:= |
184 |
- >=x11-libs/libXi-1.6.0:= |
185 |
- x11-libs/libXrandr:= |
186 |
- x11-libs/libXrender:= |
187 |
- x11-libs/libXScrnSaver:= |
188 |
- x11-libs/libXtst:= |
189 |
- x11-libs/pango:= |
190 |
- app-arch/snappy:= |
191 |
- media-libs/flac:= |
192 |
- >=media-libs/libwebp-0.4.0:= |
193 |
- sys-libs/zlib:=[minizip] |
194 |
- kerberos? ( virtual/krb5 ) |
195 |
-" |
196 |
-# For nvidia-drivers blocker, see bug #413637 . |
197 |
-RDEPEND="${COMMON_DEPEND} |
198 |
- !<dev-util/electron-0.36.12-r4 |
199 |
- x11-misc/xdg-utils |
200 |
- virtual/opengl |
201 |
- virtual/ttf-fonts |
202 |
- selinux? ( sec-policy/selinux-chromium ) |
203 |
- tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 ) |
204 |
-" |
205 |
-# dev-vcs/git - https://bugs.gentoo.org/593476 |
206 |
-DEPEND="${COMMON_DEPEND} |
207 |
- >=app-arch/gzip-1.7 |
208 |
- !arm? ( |
209 |
- dev-lang/yasm |
210 |
- ) |
211 |
- dev-lang/perl |
212 |
- dev-util/gn |
213 |
- >=dev-util/gperf-3.0.3 |
214 |
- >=dev-util/ninja-1.7.2 |
215 |
- >=net-libs/nodejs-4.6.1 |
216 |
- sys-apps/hwids[usb(+)] |
217 |
- >=sys-devel/bison-2.4.3 |
218 |
- sys-devel/flex |
219 |
- virtual/pkgconfig |
220 |
- dev-vcs/git |
221 |
- $(python_gen_any_dep ' |
222 |
- dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}] |
223 |
- >=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}] |
224 |
- dev-python/html5lib[${PYTHON_USEDEP}] |
225 |
- dev-python/simplejson[${PYTHON_USEDEP}] |
226 |
- ') |
227 |
-" |
228 |
- |
229 |
-# Keep this in sync with the python_gen_any_dep call. |
230 |
-python_check_deps() { |
231 |
- has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" && |
232 |
- has_version --host-root ">=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]" && |
233 |
- has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" && |
234 |
- has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]" |
235 |
-} |
236 |
- |
237 |
-if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then |
238 |
- EBUILD_DEATH_HOOKS+=" chromium_pkg_die"; |
239 |
-fi |
240 |
- |
241 |
-pre_build_checks() { |
242 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
243 |
- local -x CPP="$(tc-getCXX) -E" |
244 |
- if tc-is-clang && ! ver_test "$(clang-fullversion)" -ge 3.9.1; then |
245 |
- # bugs: #601654 |
246 |
- die "At least clang 3.9.1 is required" |
247 |
- fi |
248 |
- if tc-is-gcc && ! ver_test "$(gcc-version)" -ge 4.9; then |
249 |
- # bugs: #535730, #525374, #518668, #600288 |
250 |
- die "At least gcc 4.9 is required" |
251 |
- fi |
252 |
- fi |
253 |
- |
254 |
- # LTO pass requires more file descriptors |
255 |
- if use lto; then |
256 |
- local lto_n_rlimit_min="16384" |
257 |
- local maxfiles=$(ulimit -n -H) |
258 |
- if [ "${maxfiles}" -lt "${lto_n_rlimit_min}" ]; then |
259 |
- eerror "" |
260 |
- eerror "Building with USE=\"lto\" requires file descriptor" \ |
261 |
- "limit to be no less than ${lto_n_rlimit_min}." |
262 |
- eerror "The current limit for portage is ${maxfiles}." |
263 |
- eerror "Please add the following to /etc/security/limits.conf:" |
264 |
- eerror "" |
265 |
- eerror " root hard nofile ${lto_n_rlimit_min}" |
266 |
- eerror " root soft nofile ${lto_n_rlimit_min}" |
267 |
- eerror "" |
268 |
- die |
269 |
- fi |
270 |
- fi |
271 |
- |
272 |
- # Check build requirements, bug #541816 and bug #471810 . |
273 |
- CHECKREQS_MEMORY="3G" |
274 |
- use lto && CHECKREQS_MEMORY="7G" |
275 |
- CHECKREQS_DISK_BUILD="5G" |
276 |
- eshopts_push -s extglob |
277 |
- if is-flagq '-g?(gdb)?([1-9])'; then |
278 |
- CHECKREQS_DISK_BUILD="25G" |
279 |
- CHECKREQS_MEMORY="16G" |
280 |
- fi |
281 |
- eshopts_pop |
282 |
- check-reqs_pkg_pretend |
283 |
-} |
284 |
- |
285 |
-pkg_pretend() { |
286 |
- pre_build_checks |
287 |
-} |
288 |
- |
289 |
-pkg_setup() { |
290 |
- pre_build_checks |
291 |
- |
292 |
- # Make sure the build system will use the right python, bug #344367. |
293 |
- python-any-r1_pkg_setup |
294 |
- |
295 |
- chromium_suid_sandbox_check_kernel_config |
296 |
-} |
297 |
- |
298 |
-_unnest_patches() { |
299 |
- local _s="${1%/}/" |
300 |
- local path |
301 |
- local relpath |
302 |
- local out |
303 |
- |
304 |
- (find "${_s}" -mindepth 2 -name '*.patch' -printf "%P\n" || die) \ |
305 |
- | while read -r path; do |
306 |
- relpath="$(dirname ${path})" |
307 |
- out="${_s}/__${relpath////_}_$(basename ${path})" |
308 |
- sed -r -e "s|^([-+]{3}) ([ab])/(.*)$|\1 \2/${relpath}/\3|g" \ |
309 |
- "${_s}/${path}" > "${out}" || die |
310 |
- done |
311 |
-} |
312 |
- |
313 |
-_get_install_suffix() { |
314 |
- local c=(${SLOT//\// }) |
315 |
- local slot=${c[0]} |
316 |
- local suffix |
317 |
- |
318 |
- if [[ "${slot}" == "0" ]]; then |
319 |
- suffix="" |
320 |
- else |
321 |
- suffix="-${slot}" |
322 |
- fi |
323 |
- |
324 |
- echo -n "${suffix}" |
325 |
-} |
326 |
- |
327 |
-_get_install_dir() { |
328 |
- echo -n "/usr/$(get_libdir)/electron$(_get_install_suffix)" |
329 |
-} |
330 |
- |
331 |
-_get_target_arch() { |
332 |
- local myarch="$(tc-arch)" |
333 |
- local target_arch |
334 |
- |
335 |
- if [[ $myarch = amd64 ]] ; then |
336 |
- target_arch=x64 |
337 |
- elif [[ $myarch = x86 ]] ; then |
338 |
- target_arch=ia32 |
339 |
- elif [[ $myarch = arm64 ]] ; then |
340 |
- target_arch=arm64 |
341 |
- elif [[ $myarch = arm ]] ; then |
342 |
- target_arch=arm |
343 |
- else |
344 |
- die "Failed to determine target arch, got '$myarch'." |
345 |
- fi |
346 |
- |
347 |
- echo -n "${target_arch}" |
348 |
-} |
349 |
- |
350 |
-src_prepare() { |
351 |
- mv "${WORKDIR}/${CHROMIUM_P}" "${CHROMIUM_S}" || die |
352 |
- rm -r "${NODE_S}" && |
353 |
- mv "${WORKDIR}/${NODE_P}" "${NODE_S}" || die |
354 |
- rm -r "${BREAKPAD_S}" && |
355 |
- mv "${WORKDIR}/${BREAKPAD_P}" "${BREAKPAD_S}" || die |
356 |
- rm -r "${BREAKPAD_SRC_S}" && |
357 |
- mv "${WORKDIR}/${BREAKPAD_SRC_P}/src" "${BREAKPAD_SRC_S}" || die |
358 |
- rm -r "${NATIVE_MATE_S}" && |
359 |
- mv "${WORKDIR}/${NATIVE_MATE_P}" "${NATIVE_MATE_S}" || die |
360 |
- rm -r "${PDF_VIEWER_S}" && |
361 |
- mv "${WORKDIR}/${PDF_VIEWER_P}" "${PDF_VIEWER_S}" || die |
362 |
- rm -r "${GRIT_S}" && |
363 |
- mv "${WORKDIR}/${GRIT_P}" "${GRIT_S}" || die |
364 |
- rm -r "${LIBCC_S}" && |
365 |
- mv "${WORKDIR}/${LIBCHROMIUMCONTENT_P}" "${LIBCC_S}" || die |
366 |
- rsync -a "${WORKDIR}/${ASAR_P}/node_modules/" \ |
367 |
- "${S}/node_modules/" || die |
368 |
- rsync -a "${WORKDIR}/${BROWSERIFY_P}/node_modules/" \ |
369 |
- "${S}/node_modules/" || die |
370 |
- |
371 |
- # node patches |
372 |
- cd "${NODE_S}" || die |
373 |
- # make sure node uses the correct version of v8 |
374 |
- rm -r deps/v8 || die |
375 |
- ln -s "${CHROMIUM_S}/v8" deps/ || die |
376 |
- |
377 |
- # make sure we use python2.* while using gyp |
378 |
- sed -i -e "s/python/${EPYTHON}/" \ |
379 |
- deps/npm/node_modules/node-gyp/gyp/gyp || die |
380 |
- sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" \ |
381 |
- deps/npm/node_modules/node-gyp/lib/configure.js || die |
382 |
- |
383 |
- python_fix_shebang "${CHROMIUM_S}/chrome/browser" |
384 |
- python_fix_shebang "${CHROMIUM_S}/build/gyp_chromium" |
385 |
- python_fix_shebang "${S}/tools/" |
386 |
- |
387 |
- # less verbose install output (stating the same as portage, basically) |
388 |
- sed -i -e "/print/d" tools/install.py || die |
389 |
- |
390 |
- # proper libdir, hat tip @ryanpcmcquen |
391 |
- # https://github.com/iojs/io.js/issues/504 |
392 |
- local LIBDIR=$(get_libdir) |
393 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
394 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die |
395 |
- sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die |
396 |
- |
397 |
- # Apply Gentoo patches for Electron itself. |
398 |
- cd "${S}" || die |
399 |
- _unnest_patches "${WORKDIR}/${PATCHES_P}/${PV}/electron/" |
400 |
- eapply "${WORKDIR}/${PATCHES_P}/${PV}/electron/" |
401 |
- |
402 |
- # Apply Chromium patches from libchromiumcontent. |
403 |
- cd "${CHROMIUM_S}" || die |
404 |
- _unnest_patches "${LIBCC_S}/patches" |
405 |
- eapply "${LIBCC_S}/patches" |
406 |
- |
407 |
- # Finally, apply Gentoo patches for Chromium. |
408 |
- eapply "${WORKDIR}/${PATCHES_P}/${PV}/chromium/" |
409 |
- |
410 |
- # Merge chromiumcontent component into chromium source tree. |
411 |
- mkdir -p "${CHROMIUM_S}/chromiumcontent" || die |
412 |
- cp -a "${LIBCC_S}/chromiumcontent" "${CHROMIUM_S}/" || die |
413 |
- cp -a "${LIBCC_S}/tools/linux/" "${CHROMIUM_S}/tools/" || die |
414 |
- |
415 |
- local keeplibs=( |
416 |
- base/third_party/dmg_fp |
417 |
- base/third_party/dynamic_annotations |
418 |
- base/third_party/icu |
419 |
- base/third_party/nspr |
420 |
- base/third_party/superfasthash |
421 |
- base/third_party/symbolize |
422 |
- base/third_party/valgrind |
423 |
- base/third_party/xdg_mime |
424 |
- base/third_party/xdg_user_dirs |
425 |
- breakpad/src/third_party/curl |
426 |
- chrome/third_party/mozilla_security_manager |
427 |
- courgette/third_party |
428 |
- net/third_party/mozilla_security_manager |
429 |
- net/third_party/nss |
430 |
- third_party/WebKit |
431 |
- third_party/analytics |
432 |
- third_party/angle |
433 |
- third_party/angle/src/common/third_party/base |
434 |
- third_party/angle/src/common/third_party/murmurhash |
435 |
- third_party/angle/src/third_party/compiler |
436 |
- third_party/angle/src/third_party/libXNVCtrl |
437 |
- third_party/angle/src/third_party/trace_event |
438 |
- third_party/boringssl |
439 |
- third_party/brotli |
440 |
- third_party/cacheinvalidation |
441 |
- third_party/catapult |
442 |
- third_party/catapult/third_party/polymer |
443 |
- third_party/catapult/third_party/py_vulcanize |
444 |
- third_party/catapult/third_party/py_vulcanize/third_party/rcssmin |
445 |
- third_party/catapult/third_party/py_vulcanize/third_party/rjsmin |
446 |
- third_party/catapult/tracing/third_party/d3 |
447 |
- third_party/catapult/tracing/third_party/gl-matrix |
448 |
- third_party/catapult/tracing/third_party/jszip |
449 |
- third_party/catapult/tracing/third_party/mannwhitneyu |
450 |
- third_party/catapult/tracing/third_party/oboe |
451 |
- third_party/ced |
452 |
- third_party/cld_2 |
453 |
- third_party/cld_3 |
454 |
- third_party/cros_system_api |
455 |
- third_party/devscripts |
456 |
- third_party/dom_distiller_js |
457 |
- third_party/fips181 |
458 |
- third_party/flatbuffers |
459 |
- third_party/flot |
460 |
- third_party/freetype |
461 |
- third_party/glslang-angle |
462 |
- third_party/google_input_tools |
463 |
- third_party/google_input_tools/third_party/closure_library |
464 |
- third_party/google_input_tools/third_party/closure_library/third_party/closure |
465 |
- third_party/googletest |
466 |
- third_party/hunspell |
467 |
- third_party/iccjpeg |
468 |
- third_party/inspector_protocol |
469 |
- third_party/jinja2 |
470 |
- third_party/jstemplate |
471 |
- third_party/khronos |
472 |
- third_party/leveldatabase |
473 |
- third_party/libXNVCtrl |
474 |
- third_party/libaddressinput |
475 |
- third_party/libjingle |
476 |
- third_party/libphonenumber |
477 |
- third_party/libsecret |
478 |
- third_party/libsrtp |
479 |
- third_party/libudev |
480 |
- third_party/libwebm |
481 |
- third_party/libxml/chromium |
482 |
- third_party/libyuv |
483 |
- third_party/lss |
484 |
- third_party/lzma_sdk |
485 |
- third_party/markupsafe |
486 |
- third_party/mesa |
487 |
- third_party/modp_b64 |
488 |
- third_party/mt19937ar |
489 |
- third_party/node |
490 |
- third_party/node/node_modules/vulcanize/third_party/UglifyJS2 |
491 |
- third_party/openmax_dl |
492 |
- third_party/ots |
493 |
- third_party/pdfium |
494 |
- third_party/pdfium/third_party/agg23 |
495 |
- third_party/pdfium/third_party/base |
496 |
- third_party/pdfium/third_party/build |
497 |
- third_party/pdfium/third_party/bigint |
498 |
- third_party/pdfium/third_party/freetype |
499 |
- third_party/pdfium/third_party/lcms2-2.6 |
500 |
- third_party/pdfium/third_party/libopenjpeg20 |
501 |
- third_party/pdfium/third_party/libpng16 |
502 |
- third_party/pdfium/third_party/libtiff |
503 |
- third_party/ply |
504 |
- third_party/polymer |
505 |
- third_party/protobuf |
506 |
- third_party/protobuf/third_party/six |
507 |
- third_party/qcms |
508 |
- third_party/sfntly |
509 |
- third_party/skia |
510 |
- third_party/skia/third_party/vulkan |
511 |
- third_party/smhasher |
512 |
- third_party/spirv-headers |
513 |
- third_party/spirv-tools-angle |
514 |
- third_party/sqlite |
515 |
- third_party/swiftshader |
516 |
- third_party/swiftshader/third_party/llvm-subzero |
517 |
- third_party/swiftshader/third_party/subzero |
518 |
- third_party/usrsctp |
519 |
- third_party/vulkan |
520 |
- third_party/vulkan-validation-layers |
521 |
- third_party/web-animations-js |
522 |
- third_party/webdriver |
523 |
- third_party/webrtc |
524 |
- third_party/widevine |
525 |
- third_party/woff2 |
526 |
- third_party/zlib/google |
527 |
- url/third_party/mozilla |
528 |
- v8/src/third_party/valgrind |
529 |
- v8/third_party/inspector_protocol |
530 |
- |
531 |
- # gyp -> gn leftovers |
532 |
- base/third_party/libevent |
533 |
- third_party/adobe |
534 |
- third_party/speech-dispatcher |
535 |
- third_party/usb_ids |
536 |
- third_party/xdg-utils |
537 |
- third_party/yasm/run_yasm.py |
538 |
- ) |
539 |
- if ! use system-ffmpeg; then |
540 |
- keeplibs+=( third_party/ffmpeg third_party/opus ) |
541 |
- fi |
542 |
- if use tcmalloc; then |
543 |
- keeplibs+=( third_party/tcmalloc ) |
544 |
- fi |
545 |
- |
546 |
- cd "${CHROMIUM_S}" || die |
547 |
- |
548 |
- # Remove most bundled libraries. Some are still needed. |
549 |
- ebegin "Unbundling libraries" |
550 |
- build/linux/unbundle/remove_bundled_libraries.py \ |
551 |
- "${keeplibs[@]}" --do-remove || die |
552 |
- eend |
553 |
- |
554 |
- cd "${S}" || die |
555 |
- |
556 |
- eapply_user |
557 |
-} |
558 |
- |
559 |
-src_configure() { |
560 |
- local myconf_gn="" |
561 |
- local myconf_gyp="" |
562 |
- |
563 |
- cd "${CHROMIUM_S}" || die |
564 |
- |
565 |
- # GN needs explicit config for Debug/Release as opposed to |
566 |
- # inferring it from build directory. |
567 |
- myconf_gn+=" is_debug=false" |
568 |
- |
569 |
- # Disable nacl, we can't build without pnacl (http://crbug.com/269560). |
570 |
- myconf_gn+=" enable_nacl=false" |
571 |
- |
572 |
- # Use system-provided libraries. |
573 |
- # TODO: freetype (https://bugs.chromium.org/p/pdfium/issues/detail?id=733). |
574 |
- # TODO: use_system_hunspell (upstream changes needed). |
575 |
- # TODO: use_system_libsrtp (bug #459932). |
576 |
- # TODO: xml (bug #616818). |
577 |
- # TODO: use_system_protobuf (bug #525560). |
578 |
- # TODO: use_system_ssl (http://crbug.com/58087). |
579 |
- # TODO: use_system_sqlite (http://crbug.com/22208). |
580 |
- |
581 |
- # libevent: https://bugs.gentoo.org/593458 |
582 |
- local gn_system_libraries=( |
583 |
- flac |
584 |
- harfbuzz-ng |
585 |
- icu |
586 |
- libdrm |
587 |
- libjpeg |
588 |
- libpng |
589 |
- libvpx |
590 |
- libwebp |
591 |
- libxml |
592 |
- libxslt |
593 |
- openh264 |
594 |
- re2 |
595 |
- snappy |
596 |
- yasm |
597 |
- zlib) |
598 |
- if use system-ffmpeg; then |
599 |
- gn_system_libraries+=( libvpx ffmpeg opus ) |
600 |
- fi |
601 |
- build/linux/unbundle/replace_gn_files.py \ |
602 |
- --system-libraries ${gn_system_libraries[@]} || die |
603 |
- |
604 |
- # Optional dependencies. |
605 |
- myconf_gn+=" use_cups=$(usex cups true false)" |
606 |
- myconf_gn+=" use_gconf=$(usex gconf true false)" |
607 |
- myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)" |
608 |
- myconf_gn+=" use_kerberos=$(usex kerberos true false)" |
609 |
- myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)" |
610 |
- |
611 |
- # TODO: link_pulseaudio=true for GN. |
612 |
- |
613 |
- myconf_gn+=" fieldtrial_testing_like_official_build=true" |
614 |
- |
615 |
- if tc-is-clang; then |
616 |
- myconf_gn+=" is_clang=true clang_base_path=\"/usr\" clang_use_chrome_plugins=false" |
617 |
- else |
618 |
- myconf_gn+=" is_clang=false" |
619 |
- fi |
620 |
- |
621 |
- # Never use bundled gold binary. Disable gold linker flags for now. |
622 |
- # Do not use bundled clang. |
623 |
- # Trying to use gold results in linker crash. |
624 |
- myconf_gn+=" use_gold=false use_sysroot=false" |
625 |
- myconf_gn+=" linux_use_bundled_binutils=false use_custom_libcxx=false" |
626 |
- |
627 |
- ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)" |
628 |
- myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)" |
629 |
- myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\"" |
630 |
- |
631 |
- # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys . |
632 |
- # Note: these are for Gentoo use ONLY. For your own distribution, |
633 |
- # please get your own set of keys. Feel free to contact chromium@g.o |
634 |
- # for more info. |
635 |
- local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" |
636 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
637 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
638 |
- myconf_gn+=" google_api_key=\"${google_api_key}\"" |
639 |
- myconf_gn+=" google_default_client_id=\"${google_default_client_id}\"" |
640 |
- myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\"" |
641 |
- |
642 |
- local target_arch=$(_get_target_arch) |
643 |
- local ffmpeg_target_arch="${target_arch}" |
644 |
- |
645 |
- if [[ ${ffmpeg_target_arch} = arm ]]; then |
646 |
- ffmpeg_target_arch=$(usex neon arm-neon arm) |
647 |
- fi |
648 |
- |
649 |
- # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
650 |
- # Depending on GCC version the warnings are different and we don't want |
651 |
- # the build to fail because of that. |
652 |
- myconf_gn+=" treat_warnings_as_errors=false" |
653 |
- |
654 |
- # Disable fatal linker warnings, bug 506268. |
655 |
- myconf_gn+=" fatal_linker_warnings=false" |
656 |
- |
657 |
- # Avoid CFLAGS problems, bug #352457, bug #390147. |
658 |
- if ! use custom-cflags; then |
659 |
- replace-flags "-Os" "-O2" |
660 |
- strip-flags |
661 |
- |
662 |
- filter-flags "-Wl,--as-needed" |
663 |
- |
664 |
- # Prevent linker from running out of address space, bug #471810 . |
665 |
- if use x86; then |
666 |
- filter-flags "-g*" |
667 |
- fi |
668 |
- |
669 |
- # Prevent libvpx build failures. Bug 530248, 544702, 546984. |
670 |
- if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then |
671 |
- filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2 |
672 |
- fi |
673 |
- fi |
674 |
- |
675 |
- # Make sure the build system will use the right tools, bug #340795. |
676 |
- tc-export AR CC CXX NM |
677 |
- |
678 |
- # Define a custom toolchain for GN |
679 |
- myconf_gn+=" custom_toolchain=\"${FILESDIR}/toolchain:default\"" |
680 |
- |
681 |
- if tc-is-cross-compiler; then |
682 |
- tc-export BUILD_{AR,CC,CXX,NM} |
683 |
- myconf_gn+=" host_toolchain=\"${FILESDIR}/toolchain:host\"" |
684 |
- myconf_gn+=" v8_snapshot_toolchain=\"${FILESDIR}/toolchain:host\"" |
685 |
- else |
686 |
- myconf_gn+=" host_toolchain=\"${FILESDIR}/toolchain:default\"" |
687 |
- fi |
688 |
- |
689 |
- # https://bugs.gentoo.org/588596 |
690 |
- append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks) |
691 |
- |
692 |
- myconf_gn+=" icu_use_data_file=false" |
693 |
- |
694 |
- use lto && myconf_gn+=" allow_posix_link_time_opt=true" |
695 |
- |
696 |
- # Tools for building programs to be executed on the build system, bug #410883. |
697 |
- if tc-is-cross-compiler; then |
698 |
- export AR_host=$(tc-getBUILD_AR) |
699 |
- export CC_host=$(tc-getBUILD_CC) |
700 |
- export CXX_host=$(tc-getBUILD_CXX) |
701 |
- export NM_host=$(tc-getBUILD_NM) |
702 |
- fi |
703 |
- |
704 |
- # Bug 491582. |
705 |
- export TMPDIR="${WORKDIR}/temp" |
706 |
- mkdir -p -m 755 "${TMPDIR}" || die |
707 |
- |
708 |
- if ! use system-ffmpeg; then |
709 |
- local build_ffmpeg_args="" |
710 |
- if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then |
711 |
- build_ffmpeg_args+=" --disable-asm" |
712 |
- fi |
713 |
- |
714 |
- # Re-configure bundled ffmpeg. See bug #491378 for example reasons. |
715 |
- einfo "Configuring bundled ffmpeg..." |
716 |
- pushd third_party/ffmpeg > /dev/null || die |
717 |
- chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \ |
718 |
- --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die |
719 |
- chromium/scripts/copy_config.sh || die |
720 |
- chromium/scripts/generate_gn.py || die |
721 |
- popd > /dev/null || die |
722 |
- fi |
723 |
- |
724 |
- third_party/libaddressinput/chromium/tools/update-strings.py || die |
725 |
- |
726 |
- touch chrome/test/data/webui/i18n_process_css_test.html || die |
727 |
- |
728 |
- einfo "Configuring bundled nodejs..." |
729 |
- pushd "${S}/vendor/node" > /dev/null || die |
730 |
- # --shared-libuv cannot be used as electron's node fork |
731 |
- # patches uv_loop structure. |
732 |
- ./configure --shared --without-bundled-v8 \ |
733 |
- --shared-http-parser --shared-zlib \ |
734 |
- --shared-nghttp2 --shared-cares \ |
735 |
- --without-npm --with-intl=system-icu --without-dtrace \ |
736 |
- --dest-cpu=${target_arch} --prefix="" || die |
737 |
- popd > /dev/null || die |
738 |
- |
739 |
- # libchromiumcontent configuration |
740 |
- myconf_gn+=" root_extra_deps = [\"//chromiumcontent:chromiumcontent\"]" |
741 |
- myconf_gn+=" is_electron_build = true" |
742 |
- myconf_gn+=" is_component_build = false" |
743 |
- myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")" |
744 |
- |
745 |
- einfo "Configuring chromiumcontent..." |
746 |
- set -- gn gen --args="${myconf_gn} ${EXTRA_GN}" out/Release |
747 |
- echo "$@" |
748 |
- "$@" || die |
749 |
- |
750 |
- cd "${S}" || die |
751 |
-} |
752 |
- |
753 |
-eninja() { |
754 |
- if [[ -z ${NINJAOPTS+set} ]]; then |
755 |
- local jobs=$(makeopts_jobs) |
756 |
- local loadavg=$(makeopts_loadavg) |
757 |
- |
758 |
- if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then |
759 |
- NINJAOPTS+=" -j ${jobs}" |
760 |
- fi |
761 |
- if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then |
762 |
- NINJAOPTS+=" -l ${loadavg}" |
763 |
- fi |
764 |
- fi |
765 |
- set -- ninja -v ${NINJAOPTS} "$@" |
766 |
- echo "$@" |
767 |
- "$@" || die |
768 |
-} |
769 |
- |
770 |
-src_compile() { |
771 |
- local compile_target="${S}/out/R" |
772 |
- local myconf_gyp="" |
773 |
- local chromium_target="${CHROMIUM_S}/out/Release" |
774 |
- local libcc_path="${S}/vendor/libchromiumcontent" |
775 |
- local libcc_dist_path="${libcc_path}/dist/main" |
776 |
- local libcc_dist_static_path="${libcc_dist_path}/static_library" |
777 |
- local libcc_dist_shared_path="${libcc_dist_path}/shared_library" |
778 |
- local libcc_output="${CHROMIUM_S}/out/Release/obj/chromiumcontent" |
779 |
- local libcc_output_shared="${libcc_output}-shared" |
780 |
- local target_arch=$(_get_target_arch) |
781 |
- local l="" |
782 |
- local create_dist_args="" |
783 |
- |
784 |
- tc-export AR CC CXX NM |
785 |
- |
786 |
- mkdir -p "${compile_target}" || die |
787 |
- |
788 |
- cd "${CHROMIUM_S}" || die |
789 |
- |
790 |
- # Build mksnapshot and pax-mark it. |
791 |
- eninja -C "${chromium_target}" mksnapshot || die |
792 |
- pax-mark m "${chromium_target}/mksnapshot" |
793 |
- cp -a "${chromium_target}/mksnapshot" "${compile_target}/" || die |
794 |
- |
795 |
- # Build chromedriver. |
796 |
- eninja -C "${chromium_target}" chromedriver |
797 |
- cp -a "${chromium_target}/chromedriver" "${compile_target}/" || die |
798 |
- |
799 |
- # Build libchromiumcontent components. |
800 |
- eninja -C "${chromium_target}" chromiumcontent:chromiumcontent |
801 |
- CHROMIUMCONTENT_2ND_PASS=1 \ |
802 |
- eninja -C "${chromium_target}" chromiumcontent:libs |
803 |
- |
804 |
- cd "${S}" || die |
805 |
- |
806 |
- # Gather and prepare built components of libchromiumcontent. |
807 |
- create_dist_args+=" --target_arch=${target_arch} --component=static_library" |
808 |
- create_dist_args+=" --no_zip" |
809 |
- create_dist_args+=" --system-icu" |
810 |
- CHROMIUM_BUILD_DIR="${chromium_target}" \ |
811 |
- PYTHONPATH="${WORKDIR}/ninja-${NINJA_VERSION}/misc" \ |
812 |
- "${EPYTHON}" "${libcc_path}"/script/create-dist ${create_dist_args} || die |
813 |
- |
814 |
- # v8 is built as a shared library, so copy it manually |
815 |
- # for generate_filenames_gypi to find. |
816 |
- mkdir -p "${libcc_dist_shared_path}" || die |
817 |
- cp "${chromium_target}/libv8.so" "${libcc_dist_shared_path}" || die |
818 |
- |
819 |
- "${EPYTHON}" "${libcc_path}"/tools/generate_filenames_gypi.py \ |
820 |
- "${libcc_dist_path}/filenames.gypi" \ |
821 |
- "${CHROMIUM_S}" \ |
822 |
- "${libcc_dist_shared_path}" \ |
823 |
- "${libcc_dist_static_path}" |
824 |
- |
825 |
- # Configure electron. |
826 |
- myconf_gyp+=" |
827 |
- $(gyp_use cups) |
828 |
- $(gyp_use gconf use_gconf) |
829 |
- $(gyp_use gnome-keyring use_gnome_keyring) |
830 |
- $(gyp_use gnome-keyring linux_link_gnome_keyring) |
831 |
- $(gyp_use lto)" |
832 |
- |
833 |
- myconf_gyp+=" -Duse_system_icu=1" |
834 |
- |
835 |
- if [[ $(tc-getCC) == *clang* ]]; then |
836 |
- myconf_gyp+=" -Dclang=1" |
837 |
- else |
838 |
- myconf_gyp+=" -Dclang=0" |
839 |
- fi |
840 |
- |
841 |
- # Never use bundled gold binary. Disable gold linker flags for now. |
842 |
- # Do not use bundled clang. |
843 |
- myconf_gyp+=" |
844 |
- -Dclang_use_chrome_plugins=0 |
845 |
- -Dhost_clang=0 |
846 |
- -Dlinux_use_bundled_binutils=0 |
847 |
- -Dlinux_use_bundled_gold=0 |
848 |
- -Dlinux_use_gold_flags=0 |
849 |
- -Dsysroot=" |
850 |
- |
851 |
- myconf_gyp+=" -Dtarget_arch=${target_arch}" |
852 |
- myconf_gyp+=" -Dpython=${EPYTHON}" |
853 |
- |
854 |
- # Make sure that -Werror doesn't get added to CFLAGS by the build system. |
855 |
- # Depending on GCC version the warnings are different and we don't want |
856 |
- # the build to fail because of that. |
857 |
- myconf_gyp+=" -Dwerror=" |
858 |
- |
859 |
- # Disable fatal linker warnings, bug 506268. |
860 |
- myconf_gyp+=" -Ddisable_fatal_linker_warnings=1" |
861 |
- |
862 |
- myconf_gyp+=" -Dicu_use_data_file_flag=0" |
863 |
- myconf_gyp+=" -Dgenerate_character_data=0" |
864 |
- |
865 |
- myconf_gyp+=" -Dmas_build=0" |
866 |
- myconf_gyp+=" -Dlibchromiumcontent_component=0" |
867 |
- myconf_gyp+=" -Dcomponent=static_library" |
868 |
- myconf_gyp+=" -Dlibrary=static_library" |
869 |
- myconf_gyp+=" -Icommon.gypi electron.gyp" |
870 |
- |
871 |
- EGYP_CHROMIUM_COMMAND="${CHROMIUM_S}/build/gyp_chromium" \ |
872 |
- egyp_chromium ${myconf_gyp} || die |
873 |
- |
874 |
- mkdir -p "${compile_target}/lib/" || die |
875 |
- # Copy libv8 and snapshot files so the node binary can find them. |
876 |
- cp "${chromium_target}/libv8.so" "${compile_target}/lib/" || die |
877 |
- cp "${chromium_target}/natives_blob.bin" "${compile_target}" || die |
878 |
- cp "${chromium_target}/snapshot_blob.bin" "${compile_target}" || die |
879 |
- |
880 |
- # Copy generated shim headers. |
881 |
- mkdir -p "${compile_target}/gen" || die |
882 |
- cp -r "${chromium_target}/gen/shim_headers" \ |
883 |
- "${compile_target}/gen" || die |
884 |
- |
885 |
- # Build the Node binary and pax-mark it. |
886 |
- eninja -C ${compile_target} nodebin |
887 |
- pax-mark m ${compile_target}/nodebin |
888 |
- |
889 |
- # Finally, build Electron. |
890 |
- eninja -C ${compile_target} electron |
891 |
- pax-mark m ${compile_target}/electron |
892 |
- |
893 |
- echo "v${PV}" > ${compile_target}/version |
894 |
-} |
895 |
- |
896 |
-src_install() { |
897 |
- local install_dir="$(_get_install_dir)" |
898 |
- local install_suffix="$(_get_install_suffix)" |
899 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
900 |
- |
901 |
- pushd out/R/locales > /dev/null || die |
902 |
- chromium_remove_language_paks |
903 |
- popd > /dev/null || die |
904 |
- |
905 |
- # Install Electron |
906 |
- insinto "${install_dir}" |
907 |
- exeinto "${install_dir}" |
908 |
- newexe out/R/nodebin node |
909 |
- doexe out/R/electron |
910 |
- doexe out/R/chromedriver |
911 |
- doexe out/R/mksnapshot |
912 |
- doins out/R/libv8.so |
913 |
- fperms +x "${install_dir}/libv8.so" |
914 |
- doins out/R/libnode.so |
915 |
- fperms +x "${install_dir}/libnode.so" |
916 |
- doins out/R/natives_blob.bin |
917 |
- doins out/R/snapshot_blob.bin |
918 |
- doins out/R/blink_image_resources_200_percent.pak |
919 |
- doins out/R/content_resources_200_percent.pak |
920 |
- doins out/R/content_shell.pak |
921 |
- doins out/R/pdf_viewer_resources.pak |
922 |
- doins out/R/ui_resources_200_percent.pak |
923 |
- doins out/R/views_resources_200_percent.pak |
924 |
- doins -r out/R/resources |
925 |
- doins -r out/R/locales |
926 |
- dosym "${install_dir}/electron" "/usr/bin/electron${install_suffix}" |
927 |
- |
928 |
- doins out/R/version |
929 |
- |
930 |
- # Install Node headers |
931 |
- HEADERS_ONLY=1 \ |
932 |
- "${S}/vendor/node/tools/install.py" install "${ED}" "/usr" || die |
933 |
- # set up a symlink structure that npm expects.. |
934 |
- dodir /usr/include/node/deps/{v8,uv} |
935 |
- dosym . /usr/include/node/src |
936 |
- for var in deps/{uv,v8}/include; do |
937 |
- dosym ../.. /usr/include/node/${var} |
938 |
- done |
939 |
- |
940 |
- dodir "/usr/include/electron${install_suffix}" |
941 |
- mv "${ED}/usr/include/node" \ |
942 |
- "${ED}/usr/include/electron${install_suffix}/node" || die |
943 |
-} |
944 |
- |
945 |
-pkg_postinst() { |
946 |
- electron-config update |
947 |
-} |
948 |
- |
949 |
-pkg_postrm() { |
950 |
- electron-config update |
951 |
-} |
952 |
|
953 |
diff --git a/dev-util/electron/files/toolchain/BUILD.gn b/dev-util/electron/files/toolchain/BUILD.gn |
954 |
deleted file mode 100644 |
955 |
index f88d3af..0000000 |
956 |
--- a/dev-util/electron/files/toolchain/BUILD.gn |
957 |
+++ /dev/null |
958 |
@@ -1,37 +0,0 @@ |
959 |
-import("//build/toolchain/gcc_toolchain.gni") |
960 |
- |
961 |
-gcc_toolchain("default") { |
962 |
- cc = getenv("CC") |
963 |
- cxx = getenv("CXX") |
964 |
- ar = getenv("AR") |
965 |
- nm = getenv("NM") |
966 |
- ld = cxx |
967 |
- |
968 |
- extra_cflags = getenv("CFLAGS") |
969 |
- extra_cppflags = getenv("CPPFLAGS") |
970 |
- extra_cxxflags = getenv("CXXFLAGS") |
971 |
- extra_ldflags = getenv("LDFLAGS") |
972 |
- |
973 |
- toolchain_args = { |
974 |
- current_cpu = current_cpu |
975 |
- current_os = current_os |
976 |
- } |
977 |
-} |
978 |
- |
979 |
-gcc_toolchain("host") { |
980 |
- cc = getenv("BUILD_CC") |
981 |
- cxx = getenv("BUILD_CXX") |
982 |
- ar = getenv("BUILD_AR") |
983 |
- nm = getenv("BUILD_NM") |
984 |
- ld = cxx |
985 |
- |
986 |
- extra_cflags = getenv("BUILD_CFLAGS") |
987 |
- extra_cppflags = getenv("BUILD_CPPFLAGS") |
988 |
- extra_cxxflags = getenv("BUILD_CXXFLAGS") |
989 |
- extra_ldflags = getenv("BUILD_LDFLAGS") |
990 |
- |
991 |
- toolchain_args = { |
992 |
- current_cpu = current_cpu |
993 |
- current_os = current_os |
994 |
- } |
995 |
-} |
996 |
|
997 |
diff --git a/dev-util/electron/metadata.xml b/dev-util/electron/metadata.xml |
998 |
deleted file mode 100644 |
999 |
index 3c4d139..0000000 |
1000 |
--- a/dev-util/electron/metadata.xml |
1001 |
+++ /dev/null |
1002 |
@@ -1,27 +0,0 @@ |
1003 |
-<?xml version='1.0' encoding='UTF-8'?> |
1004 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
1005 |
-<pkgmetadata> |
1006 |
- <maintainer type="person"> |
1007 |
- <email>elvis@×××××.io</email> |
1008 |
- <name>Elvis Pranskevichus</name> |
1009 |
- </maintainer> |
1010 |
- <maintainer type="project"> |
1011 |
- <email>proxy-maint@g.o</email> |
1012 |
- <name>Proxy Maintainers</name> |
1013 |
- </maintainer> |
1014 |
- <longdescription>Electron is a cross platform application development framework based on web technologies based on Chromium</longdescription> |
1015 |
- <use> |
1016 |
- <flag name="gconf">Use gnome-base/gconf</flag> |
1017 |
- <flag name="lto">Build with link time optimization enabled</flag> |
1018 |
- <flag name="pic">Disable optimized assembly code that is not PIC friendly</flag> |
1019 |
- <flag name="proprietary-codecs">Enable proprietary codecs like H.264, MP3</flag> |
1020 |
- <flag name="system-ffmpeg">Use system ffmpeg instead of the bundled one</flag> |
1021 |
- <flag name="tcmalloc">Use bundled tcmalloc instead of system malloc</flag> |
1022 |
- </use> |
1023 |
- <upstream> |
1024 |
- <remote-id type="github">elprans/asar</remote-id> |
1025 |
- <remote-id type="github">elprans/gentoo-electron-patches</remote-id> |
1026 |
- <remote-id type="github">elprans/grit</remote-id> |
1027 |
- <remote-id type="github">elprans/node-browserify</remote-id> |
1028 |
- </upstream> |
1029 |
-</pkgmetadata> |