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