1 |
commit: 74c3f29f009c2123186499d493da8ac909430052 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 16 07:01:24 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 16 07:03:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74c3f29f |
7 |
|
8 |
net-libs/nodejs: Versions 8.16.1 10.16.3 12.8.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-libs/nodejs/Manifest | 8 +- |
14 |
net-libs/nodejs/nodejs-10.16.2.ebuild | 204 -------------------- |
15 |
...nodejs-10.16.0.ebuild => nodejs-10.16.3.ebuild} | 2 +- |
16 |
net-libs/nodejs/nodejs-12.7.0.ebuild | 207 --------------------- |
17 |
.../{nodejs-12.8.0.ebuild => nodejs-12.8.1.ebuild} | 2 +- |
18 |
.../{nodejs-8.16.0.ebuild => nodejs-8.16.1.ebuild} | 2 +- |
19 |
6 files changed, 6 insertions(+), 419 deletions(-) |
20 |
|
21 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
22 |
index e408a8d834e..e88c7540802 100644 |
23 |
--- a/net-libs/nodejs/Manifest |
24 |
+++ b/net-libs/nodejs/Manifest |
25 |
@@ -1,13 +1,11 @@ |
26 |
DIST node-v0.12.18.tar.gz 19842591 BLAKE2B f94f4de6e2875267be194580c645087a262b90da99f10d651a22838c041da07056df81204bb04ce8da083a080062509dcca4d1e3ac2250d651ead8a4cc025028 SHA512 6866608a43eb213f3b715ea0fcc28983fd959ab679c567a1b464f62acd936506f2bce88ea48a60209d8ef8d98259f4b47cd3434893eb4ff82a132775edb37b7b |
27 |
DIST node-v10.15.3.tar.xz 20262632 BLAKE2B d65d4e274fa829be5cda1970b0ebe7081e8476334cb825e5727324c3202bc015f4ba39589608284d0f8c0b722079c06d1587de5299a3c81ccb7b0eacbdaccf84 SHA512 cf741f733af7a7e1fbd37b0f98110078494b4771dbdfccacfda95a5ea4cda6cdcea4f8d31dddcf27477213614e4ab6cf7d1a1f900cb92936333730737ac4f9e8 |
28 |
-DIST node-v10.16.0.tar.xz 21480088 BLAKE2B de91e718893aa0bb87b75225a484281370ca1054fed919d6177911ca8e57228a0925c077a02397efd05594f72438d47b264d6f4b91623173e3a577a58a5d86db SHA512 df197c7b929fe1e0acf0334dbeb45be4c0cfa3266f9ddb513eafffcd6405bc02cba2fcbd34a7a5bef2e45a1d61ef3734ca0afe7295904ed563744fe06751cc62 |
29 |
-DIST node-v10.16.2.tar.xz 21509460 BLAKE2B dabbd7aab2929e2f238e50463daeea59a89573abf71a619a98b8718184cecec15f74ec3a772b385aeca9baf365d5cbf922b4118ef96f9dd33518e1421d2d3623 SHA512 aad6dd2f8677b38f63e04ef81917fcbf7913fe398c3b73ddde68be821e19398949c05517d9277802c55975dfd013dd4132009c92301d09ccd89920b03454153c |
30 |
+DIST node-v10.16.3.tar.xz 21505540 BLAKE2B 2ae6c3ce96a42cb72a388ca7727affb1e2eae06b997098bd8cad2b339b888f1f188c868d39631c51e10ef7b3a5a9173a3b016afe9fa7a4fb74c24a584781c329 SHA512 5d5457adaae87e41699cdf5bd62d32e9590248f7dadd583614cca9078a1749a4ee477433ebbe4278ec872fdfc377d99097c1e06073e0fd47c8c6597256ccdeb7 |
31 |
DIST node-v11.14.0.tar.xz 22106812 BLAKE2B 3a8dd9feb5916f235bf69d0610e32c1861e64f427b6de5ec27b3634268f273826f271cf5ea821042420d3b3f348124be2ce2fda13d0addea092db1338c9f95f7 SHA512 4e8033ea0f326fe5a8372c81771cd58242881ac7db905f697ce79ef9cb3ba2dfe2b94fb24a36775761c72ac531096c5e18a8574f933d76c1b652b18419b25446 |
32 |
DIST node-v11.15.0.tar.xz 22115480 BLAKE2B ed1f621e46d24051f8d84255875e7cb2c1bc0f9432a12fcc35dc5e336a71bb3e7f511146d112d1f236f9f978a68987d80331c22699479ce63b7bf30e50643219 SHA512 48270620fab3eef86c21387b316ce9054e2b0aac60a36f7fc08d18ad4a11c8d2082886ca20a455fb4a74a561d7e97c77403227ec9a83a13c47fa230b47a5af2e |
33 |
-DIST node-v12.7.0.tar.xz 22657592 BLAKE2B 21e74b42769bad5aa41b08d0e96b2dc44821eef8f1dbe7a10412935f6b69d49591f6fd42a25b1a3624bb230b88eb53a5f77a231c4c6925244438c833004a0018 SHA512 314baaa0ad30b592f63ece22c87c734b794af3bd630c16306017249cbbbcd77a75f8d5073c5a17578589fd1a502cb736bc75b69e6ffb2a4cc66927c69b62a3e8 |
34 |
-DIST node-v12.8.0.tar.xz 22637864 BLAKE2B 24b8469a172edcec5d53e7d6a29334f3666043f0e2a7f2c6359d9464e85350284830c29cd7c9c8fdc58cdc122c26ea5d746643c69492f4846729870f066267d0 SHA512 a85ec2385d1e4e947678c12a9097d116228d1c091f4ce45be220ccc9b5d76f86df628f7424969e1ddbbeee41fc8b5b556c5b06e7e37ed2c677572f8e7021717d |
35 |
+DIST node-v12.8.1.tar.xz 22641228 BLAKE2B 8eba5a3f99a30c2a91d737da91ec963b4dc505f167afb73e7161292bb97ae15b87b14577629c07131048dd9a1e311468185967910ac6bee489ee354e7a3f23a2 SHA512 eddaa9a53de802b3f0e2ffb121feae914fc3aed15271d1568332dc63db328f4bbf9c0700dbd7b5e2ffc6462f2bffe53dd4c65615bd289d1c8badaeb4f5fc580c |
36 |
DIST node-v4.9.1.tar.xz 13250164 BLAKE2B 7a689b99bb4bf507f7f21dd2c096a5766d023a8174c0f468cab37365af1920b8700da04157e1a406917790524255ef32c243a74662fd50ef7d3567d189dac9cf SHA512 690c9fdf608e5194069a10955bdd94ec87cb1c308f13bc4d2cae92fa01436ace10fadf58f2e51d477dde6c570b23edc1c71fafea79bfc9cab2903eb2fa5f87aa |
37 |
DIST node-v6.14.4.tar.xz 15842824 BLAKE2B fc56364be64fe5824e2bb50d861ebf8f58f9895f2c9c108b8df3315b127ffb2755eac85c28165ac9779adab4611ce8f5ea1a5745f43ebaa1389e82b8215c6396 SHA512 1ead0c097ec125230dd631f19a5c3ec06a1371f9ca3b392b5ad08fcc227dd0142f33ad52f96890c2c17448a4951a635b9099dfff00d7d8b3ffb59b07904d1bfa |
38 |
DIST node-v6.17.1.tar.xz 15858444 BLAKE2B ad050f71452f0ddf989e66a4eb02e88e4e5001faa2bcb0eae6b57784da87ba1d8251201e3a3d15245bb4d846f31f39854ddfae47aa1212c0526ec717438ba778 SHA512 6938c4864a96f5698ebc4e9a1228644820789d5402f42348eb1ff9ccd64f31bb91309a1f3301636b1117424c88b0b41b42baae51a1070d5c532604e5d7d7b868 |
39 |
DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42 |
40 |
-DIST node-v8.16.0.tar.xz 18515392 BLAKE2B fc2e53322fbd74cc35c3865d718733ca18d37f82af057650cf119ad64bb81aab1dcf8a09e43437b1f196547c11291f5d7de5f53a959f0b742f8f5b97e4a2d7fc SHA512 42ce0aa6f94b42859c2df43db4e3a2818581ccaf92179a7a5252ec122035c8674dddb8aad3b867d8edfff19053918162ad04e8f2eedc1026b199a12b586ae103 |
41 |
+DIST node-v8.16.1.tar.xz 18519480 BLAKE2B a721ea5118e6e97ce36245367d33fb2eab8a9b4fba72f59f1a65dfc79de394a235a579fa789e8676d2897a928444db11e7792e7fe49c59bf17ac4cc1cac63941 SHA512 7d2d7c063934227e5204b2912de45ed1667d5c35573322192393bdac623491559ccd9fa8fbf05828bd2bb8e3aeb03d82804775cccb1139b48298758defe92be3 |
42 |
|
43 |
diff --git a/net-libs/nodejs/nodejs-10.16.2.ebuild b/net-libs/nodejs/nodejs-10.16.2.ebuild |
44 |
deleted file mode 100644 |
45 |
index f04f7f06504..00000000000 |
46 |
--- a/net-libs/nodejs/nodejs-10.16.2.ebuild |
47 |
+++ /dev/null |
48 |
@@ -1,204 +0,0 @@ |
49 |
-# Copyright 1999-2019 Gentoo Authors |
50 |
-# Distributed under the terms of the GNU General Public License v2 |
51 |
- |
52 |
-EAPI=6 |
53 |
- |
54 |
-PYTHON_COMPAT=( python2_7 ) |
55 |
-PYTHON_REQ_USE="threads" |
56 |
- |
57 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs |
58 |
- |
59 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
60 |
-HOMEPAGE="https://nodejs.org/" |
61 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
62 |
- |
63 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
64 |
-SLOT="0" |
65 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
66 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
67 |
-REQUIRED_USE=" |
68 |
- inspector? ( icu ssl ) |
69 |
- npm? ( ssl ) |
70 |
-" |
71 |
- |
72 |
-RDEPEND=" |
73 |
- >=dev-libs/libuv-1.28.0:= |
74 |
- >=net-dns/c-ares-1.15.0 |
75 |
- >=net-libs/http-parser-2.9.0:= |
76 |
- >=net-libs/nghttp2-1.34.0 |
77 |
- sys-libs/zlib |
78 |
- icu? ( >=dev-libs/icu-64.2:= ) |
79 |
- ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
80 |
-" |
81 |
-DEPEND=" |
82 |
- ${RDEPEND} |
83 |
- ${PYTHON_DEPS} |
84 |
- systemtap? ( dev-util/systemtap ) |
85 |
- test? ( net-misc/curl ) |
86 |
-" |
87 |
-PATCHES=( |
88 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
89 |
-) |
90 |
-S="${WORKDIR}/node-v${PV}" |
91 |
- |
92 |
-pkg_pretend() { |
93 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
94 |
- die "Your CPU doesn't support the required SSE2 instruction." |
95 |
- |
96 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
97 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
98 |
-} |
99 |
- |
100 |
-src_prepare() { |
101 |
- tc-export CC CXX PKG_CONFIG |
102 |
- export V=1 |
103 |
- export BUILDTYPE=Release |
104 |
- |
105 |
- # fix compilation on Darwin |
106 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
107 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
108 |
- |
109 |
- # make sure we use python2.* while using gyp |
110 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
111 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
112 |
- |
113 |
- # less verbose install output (stating the same as portage, basically) |
114 |
- sed -i -e "/print/d" tools/install.py || die |
115 |
- |
116 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
117 |
- local LIBDIR=$(get_libdir) |
118 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
119 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
120 |
- |
121 |
- # Avoid writing a depfile, not useful |
122 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
123 |
- |
124 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
125 |
- |
126 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
127 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
128 |
- # The issue is that no stdin handle is openened when asked for one. |
129 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
130 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
131 |
- rm test/parallel/test-stdout-close-unref.js || die |
132 |
- |
133 |
- # debug builds. change install path, remove optimisations and override buildtype |
134 |
- if use debug; then |
135 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
136 |
- BUILDTYPE=Debug |
137 |
- fi |
138 |
- |
139 |
- default |
140 |
-} |
141 |
- |
142 |
-src_configure() { |
143 |
- local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib ) |
144 |
- use debug && myconf+=( --debug ) |
145 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
146 |
- use inspector || myconf+=( --without-inspector ) |
147 |
- use npm || myconf+=( --without-npm ) |
148 |
- use snapshot && myconf+=( --with-snapshot ) |
149 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
150 |
- |
151 |
- local myarch="" |
152 |
- case ${ABI} in |
153 |
- amd64) myarch="x64";; |
154 |
- arm) myarch="arm";; |
155 |
- arm64) myarch="arm64";; |
156 |
- ppc64) myarch="ppc64";; |
157 |
- x32) myarch="x32";; |
158 |
- x86) myarch="ia32";; |
159 |
- *) myarch="${ABI}";; |
160 |
- esac |
161 |
- |
162 |
- GYP_DEFINES="linux_use_gold_flags=0 |
163 |
- linux_use_bundled_binutils=0 |
164 |
- linux_use_bundled_gold=0" \ |
165 |
- "${PYTHON}" configure \ |
166 |
- --prefix="${EPREFIX}"/usr \ |
167 |
- --dest-cpu=${myarch} \ |
168 |
- $(use_with systemtap dtrace) \ |
169 |
- "${myconf[@]}" || die |
170 |
-} |
171 |
- |
172 |
-src_compile() { |
173 |
- emake -C out mksnapshot |
174 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
175 |
- emake -C out |
176 |
-} |
177 |
- |
178 |
-src_install() { |
179 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
180 |
- emake install DESTDIR="${D}" |
181 |
- pax-mark -m "${ED}"usr/bin/node |
182 |
- |
183 |
- # set up a symlink structure that node-gyp expects.. |
184 |
- dodir /usr/include/node/deps/{v8,uv} |
185 |
- dosym . /usr/include/node/src |
186 |
- for var in deps/{uv,v8}/include; do |
187 |
- dosym ../.. /usr/include/node/${var} |
188 |
- done |
189 |
- |
190 |
- if use doc; then |
191 |
- # Patch docs to make them offline readable |
192 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
193 |
- sed -i '/fonts.googleapis.com/ d' $i; |
194 |
- done |
195 |
- # Install docs |
196 |
- docinto html |
197 |
- dodoc -r "${S}"/doc/* |
198 |
- fi |
199 |
- |
200 |
- if use npm; then |
201 |
- dodir /etc/npm |
202 |
- |
203 |
- # Install bash completion for `npm` |
204 |
- # We need to temporarily replace default config path since |
205 |
- # npm otherwise tries to write outside of the sandbox |
206 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
207 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
208 |
- local tmp_npm_completion_file="$(emktemp)" |
209 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
210 |
- newbashcomp "${tmp_npm_completion_file}" npm |
211 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
212 |
- |
213 |
- # Move man pages |
214 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
215 |
- |
216 |
- # Clean up |
217 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
218 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
219 |
- |
220 |
- local find_exp="-or -name" |
221 |
- local find_name=() |
222 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
223 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
224 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
225 |
- find_name+=( ${find_exp} "${match}" ) |
226 |
- done |
227 |
- |
228 |
- # Remove various development and/or inappropriate files and |
229 |
- # useless docs of dependend packages. |
230 |
- find "${LIBDIR}"/node_modules \ |
231 |
- \( -type d -name examples \) -or \( -type f \( \ |
232 |
- -iname "LICEN?E*" \ |
233 |
- "${find_name[@]}" \ |
234 |
- \) \) -exec rm -rf "{}" \; |
235 |
- fi |
236 |
- |
237 |
- mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die |
238 |
-} |
239 |
- |
240 |
-src_test() { |
241 |
- out/${BUILDTYPE}/cctest || die |
242 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
243 |
-} |
244 |
- |
245 |
-pkg_postinst() { |
246 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
247 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
248 |
- einfo "" |
249 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
250 |
- einfo "avoid having to download extras by doing the following:" |
251 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
252 |
-} |
253 |
|
254 |
diff --git a/net-libs/nodejs/nodejs-10.16.0.ebuild b/net-libs/nodejs/nodejs-10.16.3.ebuild |
255 |
similarity index 99% |
256 |
rename from net-libs/nodejs/nodejs-10.16.0.ebuild |
257 |
rename to net-libs/nodejs/nodejs-10.16.3.ebuild |
258 |
index f04f7f06504..c2c2f3af8c6 100644 |
259 |
--- a/net-libs/nodejs/nodejs-10.16.0.ebuild |
260 |
+++ b/net-libs/nodejs/nodejs-10.16.3.ebuild |
261 |
@@ -25,7 +25,7 @@ RDEPEND=" |
262 |
>=dev-libs/libuv-1.28.0:= |
263 |
>=net-dns/c-ares-1.15.0 |
264 |
>=net-libs/http-parser-2.9.0:= |
265 |
- >=net-libs/nghttp2-1.34.0 |
266 |
+ >=net-libs/nghttp2-1.39.2 |
267 |
sys-libs/zlib |
268 |
icu? ( >=dev-libs/icu-64.2:= ) |
269 |
ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
270 |
|
271 |
diff --git a/net-libs/nodejs/nodejs-12.7.0.ebuild b/net-libs/nodejs/nodejs-12.7.0.ebuild |
272 |
deleted file mode 100644 |
273 |
index 7b13a5877e4..00000000000 |
274 |
--- a/net-libs/nodejs/nodejs-12.7.0.ebuild |
275 |
+++ /dev/null |
276 |
@@ -1,207 +0,0 @@ |
277 |
-# Copyright 1999-2019 Gentoo Authors |
278 |
-# Distributed under the terms of the GNU General Public License v2 |
279 |
- |
280 |
-EAPI=7 |
281 |
-PYTHON_COMPAT=( python2_7 ) |
282 |
-PYTHON_REQ_USE="threads" |
283 |
-inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs |
284 |
- |
285 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
286 |
-HOMEPAGE="https://nodejs.org/" |
287 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
288 |
- |
289 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
290 |
-SLOT="0" |
291 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
292 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
293 |
-REQUIRED_USE=" |
294 |
- inspector? ( icu ssl ) |
295 |
- npm? ( ssl ) |
296 |
-" |
297 |
- |
298 |
-RDEPEND=" |
299 |
- >=dev-libs/libuv-1.30.1:= |
300 |
- >=net-dns/c-ares-1.15.0 |
301 |
- >=net-libs/http-parser-2.8.0:= |
302 |
- >=net-libs/nghttp2-1.39.1 |
303 |
- sys-libs/zlib |
304 |
- icu? ( >=dev-libs/icu-64.2:= ) |
305 |
- ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
306 |
-" |
307 |
-DEPEND=" |
308 |
- ${RDEPEND} |
309 |
- ${PYTHON_DEPS} |
310 |
- systemtap? ( dev-util/systemtap ) |
311 |
- test? ( net-misc/curl ) |
312 |
-" |
313 |
-PATCHES=( |
314 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
315 |
- "${FILESDIR}"/${PN}-99999999-llhttp.patch |
316 |
-) |
317 |
-S="${WORKDIR}/node-v${PV}" |
318 |
- |
319 |
-pkg_pretend() { |
320 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
321 |
- die "Your CPU doesn't support the required SSE2 instruction." |
322 |
- |
323 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
324 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
325 |
-} |
326 |
- |
327 |
-src_prepare() { |
328 |
- tc-export CC CXX PKG_CONFIG |
329 |
- export V=1 |
330 |
- export BUILDTYPE=Release |
331 |
- |
332 |
- # fix compilation on Darwin |
333 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
334 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
335 |
- |
336 |
- # make sure we use python2.* while using gyp |
337 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
338 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
339 |
- |
340 |
- # less verbose install output (stating the same as portage, basically) |
341 |
- sed -i -e "/print/d" tools/install.py || die |
342 |
- |
343 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
344 |
- local LIBDIR=$(get_libdir) |
345 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
346 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
347 |
- |
348 |
- # Avoid writing a depfile, not useful |
349 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
350 |
- |
351 |
- sed -i -e "/'-O3'/d" common.gypi node.gypi || die |
352 |
- |
353 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
354 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
355 |
- # The issue is that no stdin handle is openened when asked for one. |
356 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
357 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
358 |
- rm test/parallel/test-stdout-close-unref.js || die |
359 |
- |
360 |
- # debug builds. change install path, remove optimisations and override buildtype |
361 |
- if use debug; then |
362 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
363 |
- BUILDTYPE=Debug |
364 |
- fi |
365 |
- |
366 |
- default |
367 |
-} |
368 |
- |
369 |
-src_configure() { |
370 |
- local myconf=( |
371 |
- --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 |
372 |
- --shared-zlib |
373 |
- ) |
374 |
- use debug && myconf+=( --debug ) |
375 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
376 |
- use inspector || myconf+=( --without-inspector ) |
377 |
- use npm || myconf+=( --without-npm ) |
378 |
- use snapshot && myconf+=( --with-snapshot ) |
379 |
- use ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) || myconf+=( --without-ssl ) |
380 |
- |
381 |
- local myarch="" |
382 |
- case ${ABI} in |
383 |
- amd64) myarch="x64";; |
384 |
- arm) myarch="arm";; |
385 |
- arm64) myarch="arm64";; |
386 |
- ppc64) myarch="ppc64";; |
387 |
- x32) myarch="x32";; |
388 |
- x86) myarch="ia32";; |
389 |
- *) myarch="${ABI}";; |
390 |
- esac |
391 |
- |
392 |
- GYP_DEFINES="linux_use_gold_flags=0 |
393 |
- linux_use_bundled_binutils=0 |
394 |
- linux_use_bundled_gold=0" \ |
395 |
- "${PYTHON}" configure \ |
396 |
- --prefix="${EPREFIX}"/usr \ |
397 |
- --dest-cpu=${myarch} \ |
398 |
- $(use_with systemtap dtrace) \ |
399 |
- "${myconf[@]}" || die |
400 |
-} |
401 |
- |
402 |
-src_compile() { |
403 |
- emake -C out mksnapshot |
404 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
405 |
- emake -C out |
406 |
-} |
407 |
- |
408 |
-src_install() { |
409 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
410 |
- default |
411 |
- |
412 |
- pax-mark -m "${ED}"/usr/bin/node |
413 |
- |
414 |
- # set up a symlink structure that node-gyp expects.. |
415 |
- dodir /usr/include/node/deps/{v8,uv} |
416 |
- dosym . /usr/include/node/src |
417 |
- for var in deps/{uv,v8}/include; do |
418 |
- dosym ../.. /usr/include/node/${var} |
419 |
- done |
420 |
- |
421 |
- if use doc; then |
422 |
- # Patch docs to make them offline readable |
423 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
424 |
- sed -i '/fonts.googleapis.com/ d' $i; |
425 |
- done |
426 |
- # Install docs |
427 |
- docinto html |
428 |
- dodoc -r "${S}"/doc/* |
429 |
- fi |
430 |
- |
431 |
- if use npm; then |
432 |
- dodir /etc/npm |
433 |
- |
434 |
- # Install bash completion for `npm` |
435 |
- # We need to temporarily replace default config path since |
436 |
- # npm otherwise tries to write outside of the sandbox |
437 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
438 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
439 |
- local tmp_npm_completion_file="$(emktemp)" |
440 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
441 |
- newbashcomp "${tmp_npm_completion_file}" npm |
442 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
443 |
- |
444 |
- # Move man pages |
445 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
446 |
- |
447 |
- # Clean up |
448 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
449 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
450 |
- |
451 |
- local find_exp="-or -name" |
452 |
- local find_name=() |
453 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
454 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
455 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
456 |
- find_name+=( ${find_exp} "${match}" ) |
457 |
- done |
458 |
- |
459 |
- # Remove various development and/or inappropriate files and |
460 |
- # useless docs of dependend packages. |
461 |
- find "${LIBDIR}"/node_modules \ |
462 |
- \( -type d -name examples \) -or \( -type f \( \ |
463 |
- -iname "LICEN?E*" \ |
464 |
- "${find_name[@]}" \ |
465 |
- \) \) -exec rm -rf "{}" \; |
466 |
- fi |
467 |
- |
468 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
469 |
-} |
470 |
- |
471 |
-src_test() { |
472 |
- out/${BUILDTYPE}/cctest || die |
473 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
474 |
-} |
475 |
- |
476 |
-pkg_postinst() { |
477 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
478 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
479 |
- elog "" |
480 |
- elog "Protip: When using node-gyp to install native modules, you can" |
481 |
- elog "avoid having to download extras by doing the following:" |
482 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
483 |
-} |
484 |
|
485 |
diff --git a/net-libs/nodejs/nodejs-12.8.0.ebuild b/net-libs/nodejs/nodejs-12.8.1.ebuild |
486 |
similarity index 99% |
487 |
rename from net-libs/nodejs/nodejs-12.8.0.ebuild |
488 |
rename to net-libs/nodejs/nodejs-12.8.1.ebuild |
489 |
index 7b13a5877e4..5d8e9c6b432 100644 |
490 |
--- a/net-libs/nodejs/nodejs-12.8.0.ebuild |
491 |
+++ b/net-libs/nodejs/nodejs-12.8.1.ebuild |
492 |
@@ -23,7 +23,7 @@ RDEPEND=" |
493 |
>=dev-libs/libuv-1.30.1:= |
494 |
>=net-dns/c-ares-1.15.0 |
495 |
>=net-libs/http-parser-2.8.0:= |
496 |
- >=net-libs/nghttp2-1.39.1 |
497 |
+ >=net-libs/nghttp2-1.39.2 |
498 |
sys-libs/zlib |
499 |
icu? ( >=dev-libs/icu-64.2:= ) |
500 |
ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
501 |
|
502 |
diff --git a/net-libs/nodejs/nodejs-8.16.0.ebuild b/net-libs/nodejs/nodejs-8.16.1.ebuild |
503 |
similarity index 99% |
504 |
rename from net-libs/nodejs/nodejs-8.16.0.ebuild |
505 |
rename to net-libs/nodejs/nodejs-8.16.1.ebuild |
506 |
index 8ea43457082..fa36bb45c98 100644 |
507 |
--- a/net-libs/nodejs/nodejs-8.16.0.ebuild |
508 |
+++ b/net-libs/nodejs/nodejs-8.16.1.ebuild |
509 |
@@ -26,7 +26,7 @@ RDEPEND=" |
510 |
>=dev-libs/libuv-1.23.2:= |
511 |
>=net-dns/c-ares-1.10.1 |
512 |
>=net-libs/http-parser-2.9.0:= |
513 |
- >=net-libs/nghttp2-1.33.0 |
514 |
+ >=net-libs/nghttp2-1.39.2 |
515 |
sys-libs/zlib |
516 |
icu? ( >=dev-libs/icu-60.1:= ) |
517 |
ssl? ( =dev-libs/openssl-1.0.2*:0=[-bindist] ) |