Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: net-libs/nodejs/, net-libs/nodejs/files/
Date: Fri, 22 May 2020 01:29:09
Message-Id: 1590110643.f0aa428ad16df1d60822ef9d6007dd5b43945070.steils@gentoo
1 commit: f0aa428ad16df1d60822ef9d6007dd5b43945070
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 22 01:24:03 2020 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Fri May 22 01:24:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=f0aa428a
7
8 net-libs/nodejs: drop as gentoo.git now supports USE=-system-ssl
9
10 Users can build nodejs with USE=-system-ssl from the main tree instead
11 of USE=bundled-ssl from this overlay.
12
13 Bug: https://bugs.gentoo.org/613344
14 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
15
16 net-libs/nodejs/Manifest | 6 -
17 .../files/nodejs-10.3.0-global-npm-config.patch | 20 --
18 .../nodejs/files/nodejs-13.2.0-paxmarking.patch | 71 -------
19 net-libs/nodejs/files/nodejs-99999999-llhttp.patch | 20 --
20 net-libs/nodejs/metadata.xml | 24 ---
21 net-libs/nodejs/nodejs-10.19.0.ebuild | 204 --------------------
22 net-libs/nodejs/nodejs-12.14.0.ebuild | 212 ---------------------
23 net-libs/nodejs/nodejs-12.16.0.ebuild | 212 ---------------------
24 net-libs/nodejs/nodejs-12.16.1.ebuild | 212 ---------------------
25 net-libs/nodejs/nodejs-13.8.0.ebuild | 208 --------------------
26 net-libs/nodejs/nodejs-13.9.0.ebuild | 208 --------------------
27 11 files changed, 1397 deletions(-)
28
29 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
30 deleted file mode 100644
31 index ba6f916..0000000
32 --- a/net-libs/nodejs/Manifest
33 +++ /dev/null
34 @@ -1,6 +0,0 @@
35 -DIST node-v10.19.0.tar.xz 21906168 BLAKE2B 395504ef3befa47d8b967114e019e6a76c799871e7eb21e2c6c0453655ffa07f17f42209daddeb5417342cfbad71ba1a35ae15a2d210b692bc60be270c2fc415 SHA512 512efc58415ed789938c434af131d76bdd51772cac9f7e380afaa79d83cc9c433a979068fc7272adba6ba6551d195267978e1fc819236926b0d1fd6cf91c5eee
36 -DIST node-v12.14.0.tar.xz 23244684 BLAKE2B 0e25cbba5e256b139efd45908236f008834afdf01f57a8e84c7e55ba950e56b786cd52eba9a02986eb0e1d38cbf6df38e1cd719d7dcd8085e8c71767adf8155e SHA512 12e887709a54be911c5a81ab7b7be995247b47ebbd2954ca942f9ed8a784ae1a8e4bdb2613e5bb671196f9101d8861cd29e10650a3f0c414db4d096df94b309b
37 -DIST node-v12.16.0.tar.xz 23487084 BLAKE2B 067668ca5af6c35082c3075b4baca256ce656ccf0ac68782a4885bbd2e0ef13108bd72b8b9831ef32f075e4be99fc52b1ce35920cd0db6f10a562a84912cdbd0 SHA512 e0aa45498ffd670052853bae1edfda1a34b291c48232f8a0a58ac329215fb3d0250211ec6dc06fa50fc654e7080028eaf3cc00a3722971a5969054c4cf277f4e
38 -DIST node-v12.16.1.tar.xz 23481768 BLAKE2B 29371b952c14907778c064269108f1da5e3818c32773e73090c61edcd07190c418189db6a505987ca71f99bb868880e297de5d2181b9a880774eaaf515985f26 SHA512 fe1e9fabb6fe52e3bc4275b33e6c5e4a761550b04964c0ae7dbef7172f5d415207bb2985751d068e357ce45a0ba414b07c0abd1531ef839b9463e98eeae8f9a4
39 -DIST node-v13.8.0.tar.xz 32745596 BLAKE2B 14bf82e8cecde1a4125c7c00c4c9e613c1dbc5bb0241b20f4d30cb8d172612d5a8c362ac786ae516baf9553d5a9c3053414b269fb040cebb664f09096a57985c SHA512 b50d79f029bc04caf193f137b7b3d03f1e1ec9252712015cab2efdeef92bc3176cf7eb36e835cda6221950792e516f9c1894cd2c480e082106e07a11aa1d0761
40 -DIST node-v13.9.0.tar.xz 32778780 BLAKE2B fb5a0ff82cc1fd255bcc96b50232d6a9e2e3cdab9f5080c6d112b0a5b2dbb952a70d648ccda1b242a7c9e5742683bd320924047bccd1402978d8bbcfa8d1bb68 SHA512 f52184b694bf0dc7755c1c0f05eac400d7e9971e66165a43c7784dfeb935e63de176d3ee937fb09ccb1fc9ac78aec30b6b17e8a477f1b3f10291b1b6d595207c
41
42 diff --git a/net-libs/nodejs/files/nodejs-10.3.0-global-npm-config.patch b/net-libs/nodejs/files/nodejs-10.3.0-global-npm-config.patch
43 deleted file mode 100644
44 index 9c7fe68..0000000
45 --- a/net-libs/nodejs/files/nodejs-10.3.0-global-npm-config.patch
46 +++ /dev/null
47 @@ -1,20 +0,0 @@
48 ---- a/deps/npm/lib/config/core.js
49 -+++ b/deps/npm/lib/config/core.js
50 -@@ -153,11 +153,12 @@
51 - // Eg, `npm config get globalconfig --prefix ~/local` should
52 - // return `~/local/etc/npmrc`
53 - // annoying humans and their expectations!
54 -- if (conf.get('prefix')) {
55 -- var etc = path.resolve(conf.get('prefix'), 'etc')
56 -- defaults.globalconfig = path.resolve(etc, 'npmrc')
57 -- defaults.globalignorefile = path.resolve(etc, 'npmignore')
58 -- }
59 -+ // gentoo deviates wrt global config; store in /etc/npm
60 -+ var globalconfig = path.resolve('/etc', 'npm')
61 -+ mkdirp(globalconfig, function () {
62 -+ defaults.globalconfig = path.resolve(globalconfig, 'npmrc')
63 -+ defaults.globalignorefile = path.resolve(globalconfig, 'npmignore')
64 -+ })
65 -
66 - conf.addFile(conf.get('globalconfig'), 'global')
67 -
68
69 diff --git a/net-libs/nodejs/files/nodejs-13.2.0-paxmarking.patch b/net-libs/nodejs/files/nodejs-13.2.0-paxmarking.patch
70 deleted file mode 100644
71 index 143e416..0000000
72 --- a/net-libs/nodejs/files/nodejs-13.2.0-paxmarking.patch
73 +++ /dev/null
74 @@ -1,71 +0,0 @@
75 - Bug: 694100
76 - Add actions for pax marking mkcodecache and node_mksnapshot
77 - to disable mprotect for pax enable kernel.
78 - Reported-by: Attila Tóth <atoth@××××××××××.hu>
79 - Co-developed-by: Attila Tóth <atoth@××××××××××.hu>
80 - Signed-off-by: Magnus Granberg <zorry@g.o>
81 -
82 ---- a/node.gyp 2019-10-23 11:52:41.000000000 +0200
83 -+++ a/node.gyp 2019-11-12 20:58:43.957881862 +0100
84 -@@ -233,7 +233,9 @@
85 - 'deps/acorn-plugins/acorn-static-class-features/index.js',
86 - ],
87 - 'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)',
88 -+ 'node_mksnapshot_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot_u<(EXECUTABLE_SUFFIX)',
89 - 'mkcodecache_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)',
90 -+ 'mkcodecache_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache_u<(EXECUTABLE_SUFFIX)',
91 - 'conditions': [
92 - [ 'node_shared=="true"', {
93 - 'node_target_type%': 'shared_library',
94 -@@ -436,10 +438,24 @@
95 - ],
96 - 'actions': [
97 - {
98 -+ 'action_name': 'run_pax_mkcodecache',
99 -+ 'inputs': [
100 -+ '<(mkcodecache_exec)',
101 -+ ],
102 -+ 'outputs': [
103 -+ '<(mkcodecache_u_exec)',
104 -+ ],
105 -+ 'action': [
106 -+ 'bash',
107 -+ '-c',
108 -+ 'mv <(mkcodecache_exec) <(mkcodecache_u_exec) && paxmark.sh m <(mkcodecache_u_exec)',
109 -+ ],
110 -+ },
111 -+ {
112 - 'action_name': 'run_mkcodecache',
113 - 'process_outputs_as_sources': 1,
114 - 'inputs': [
115 -- '<(mkcodecache_exec)',
116 -+ '<(mkcodecache_u_exec)',
117 - ],
118 - 'outputs': [
119 - '<(SHARED_INTERMEDIATE_DIR)/node_code_cache.cc',
120 -@@ -461,10 +477,24 @@
121 - ],
122 - 'actions': [
123 - {
124 -+ 'action_name': 'run_pax_mksnapshot',
125 -+ 'inputs': [
126 -+ '<(node_mksnapshot_exec)',
127 -+ ],
128 -+ 'outputs': [
129 -+ '<(node_mksnapshot_u_exec)',
130 -+ ],
131 -+ 'action': [
132 -+ 'bash',
133 -+ '-c',
134 -+ 'mv <(node_mksnapshot_exec) <(node_mksnapshot_u_exec) && paxmark.sh m <(node_mksnapshot_u_exec)',
135 -+ ],
136 -+ },
137 -+ {
138 - 'action_name': 'node_mksnapshot',
139 - 'process_outputs_as_sources': 1,
140 - 'inputs': [
141 -- '<(node_mksnapshot_exec)',
142 -+ '<(node_mksnapshot_u_exec)',
143 - ],
144 - 'outputs': [
145 - '<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc',
146
147 diff --git a/net-libs/nodejs/files/nodejs-99999999-llhttp.patch b/net-libs/nodejs/files/nodejs-99999999-llhttp.patch
148 deleted file mode 100644
149 index 1b6eb9f..0000000
150 --- a/net-libs/nodejs/files/nodejs-99999999-llhttp.patch
151 +++ /dev/null
152 @@ -1,20 +0,0 @@
153 ---- a/node.gypi
154 -+++ b/node.gypi
155 -@@ -169,11 +169,15 @@
156 -
157 - [ 'node_shared_http_parser=="false"', {
158 - 'dependencies': [
159 -- 'deps/http_parser/http_parser.gyp:http_parser',
160 -- 'deps/llhttp/llhttp.gyp:llhttp'
161 -+ 'deps/http_parser/http_parser.gyp:http_parser'
162 - ],
163 - } ],
164 -
165 -+ [ '"true"', { 'dependencies': [
166 -+ 'deps/llhttp/llhttp.gyp:llhttp'
167 -+ ],
168 -+ }],
169 -+
170 - [ 'node_shared_cares=="false"', {
171 - 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
172 - }],
173
174 diff --git a/net-libs/nodejs/metadata.xml b/net-libs/nodejs/metadata.xml
175 deleted file mode 100644
176 index 6064855..0000000
177 --- a/net-libs/nodejs/metadata.xml
178 +++ /dev/null
179 @@ -1,24 +0,0 @@
180 -<?xml version="1.0" encoding="UTF-8"?>
181 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
182 -<pkgmetadata>
183 - <maintainer type="person">
184 - <email>bugs@××××××××××.nu</email>
185 - <name>Johan Bergstroem</name>
186 - </maintainer>
187 - <maintainer type="person">
188 - <email>patrick@g.o</email>
189 - <name>Patrick Lauer</name>
190 - </maintainer>
191 - <maintainer type="project">
192 - <email>proxy-maint@g.o</email>
193 - <name>Proxy Maintainers</name>
194 - </maintainer>
195 - <use>
196 - <flag name="bundled-ssl">Use bundled version of OpenSSL (hack)</flag>
197 - <flag name="inspector">Enable V8 inspector</flag>
198 - <flag name="npm">Enable NPM package manager</flag>
199 - <flag name="pax_kernel">Enable building under a PaX enabled kernel</flag>
200 - <flag name="snapshot">Enable snapshot creation for faster startup</flag>
201 - <flag name="systemtap">Enable SystemTAP/DTrace tracing</flag>
202 - </use>
203 -</pkgmetadata>
204
205 diff --git a/net-libs/nodejs/nodejs-10.19.0.ebuild b/net-libs/nodejs/nodejs-10.19.0.ebuild
206 deleted file mode 100644
207 index ee1a9bc..0000000
208 --- a/net-libs/nodejs/nodejs-10.19.0.ebuild
209 +++ /dev/null
210 @@ -1,204 +0,0 @@
211 -# Copyright 1999-2020 Gentoo Authors
212 -# Distributed under the terms of the GNU General Public License v2
213 -
214 -EAPI=7
215 -PYTHON_COMPAT=( python2_7 )
216 -PYTHON_REQ_USE="threads"
217 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
218 -
219 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
220 -HOMEPAGE="https://nodejs.org/"
221 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
222 -
223 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
224 -SLOT="0"
225 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
226 -IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm +snapshot +ssl systemtap test"
227 -REQUIRED_USE="
228 - bundled-ssl? ( ssl )
229 - inspector? ( icu ssl )
230 - libressl? ( bundled-ssl )
231 - npm? ( ssl )
232 -"
233 -
234 -RDEPEND="
235 - >=dev-libs/libuv-1.28.0:=
236 - >=net-dns/c-ares-1.15.0
237 - >=net-libs/http-parser-2.9.3:=
238 - >=net-libs/nghttp2-1.39.2
239 - sys-libs/zlib
240 - icu? ( >=dev-libs/icu-64.2:= )
241 - ssl? (
242 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
243 - )
244 -"
245 -DEPEND="
246 - ${RDEPEND}
247 - ${PYTHON_DEPS}
248 - systemtap? ( dev-util/systemtap )
249 - test? ( net-misc/curl )
250 -"
251 -PATCHES=(
252 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
253 -)
254 -RESTRICT="test"
255 -S="${WORKDIR}/node-v${PV}"
256 -
257 -pkg_pretend() {
258 - (use x86 && ! use cpu_flags_x86_sse2) && \
259 - die "Your CPU doesn't support the required SSE2 instruction."
260 -
261 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
262 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
263 -}
264 -
265 -src_prepare() {
266 - tc-export CC CXX PKG_CONFIG
267 - export V=1
268 - export BUILDTYPE=Release
269 -
270 - # fix compilation on Darwin
271 - # https://code.google.com/p/gyp/issues/detail?id=260
272 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
273 -
274 - # make sure we use python2.* while using gyp
275 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
276 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
277 -
278 - # less verbose install output (stating the same as portage, basically)
279 - sed -i -e "/print/d" tools/install.py || die
280 -
281 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
282 - local LIBDIR=$(get_libdir)
283 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
284 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
285 -
286 - # Avoid writing a depfile, not useful
287 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
288 -
289 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
290 -
291 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
292 - # seem sandbox related either (invoking it from a sandbox works fine).
293 - # The issue is that no stdin handle is openened when asked for one.
294 - # It doesn't really belong upstream , so it'll just be removed until someone
295 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
296 - rm test/parallel/test-stdout-close-unref.js || die
297 -
298 - # debug builds. change install path, remove optimisations and override buildtype
299 - if use debug; then
300 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
301 - BUILDTYPE=Debug
302 - fi
303 -
304 - default
305 -}
306 -
307 -src_configure() {
308 - xdg_environment_reset
309 -
310 - local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
311 - use debug && myconf+=( --debug )
312 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
313 - use inspector || myconf+=( --without-inspector )
314 - use npm || myconf+=( --without-npm )
315 - use snapshot && myconf+=( --with-snapshot )
316 - use ssl && ( use bundled-ssl || myconf+=( --shared-openssl ) ) || myconf+=( --without-ssl )
317 -
318 - local myarch=""
319 - case ${ABI} in
320 - amd64) myarch="x64";;
321 - arm) myarch="arm";;
322 - arm64) myarch="arm64";;
323 - ppc64) myarch="ppc64";;
324 - x32) myarch="x32";;
325 - x86) myarch="ia32";;
326 - *) myarch="${ABI}";;
327 - esac
328 -
329 - GYP_DEFINES="linux_use_gold_flags=0
330 - linux_use_bundled_binutils=0
331 - linux_use_bundled_gold=0" \
332 - "${PYTHON}" configure \
333 - --prefix="${EPREFIX}"/usr \
334 - --dest-cpu=${myarch} \
335 - $(use_with systemtap dtrace) \
336 - "${myconf[@]}" || die
337 -}
338 -
339 -src_compile() {
340 - emake -C out mksnapshot
341 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
342 - emake -C out
343 -}
344 -
345 -src_install() {
346 - local LIBDIR="${ED}/usr/$(get_libdir)"
347 - emake install DESTDIR="${D}"
348 - pax-mark -m "${ED}"/usr/bin/node
349 -
350 - # set up a symlink structure that node-gyp expects..
351 - dodir /usr/include/node/deps/{v8,uv}
352 - dosym . /usr/include/node/src
353 - for var in deps/{uv,v8}/include; do
354 - dosym ../.. /usr/include/node/${var}
355 - done
356 -
357 - if use doc; then
358 - docinto html
359 - dodoc -r "${S}"/doc/*
360 - fi
361 -
362 - if use npm; then
363 - dodir /etc/npm
364 -
365 - # Install bash completion for `npm`
366 - # We need to temporarily replace default config path since
367 - # npm otherwise tries to write outside of the sandbox
368 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
369 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
370 - local tmp_npm_completion_file="$(emktemp)"
371 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
372 - newbashcomp "${tmp_npm_completion_file}" npm
373 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
374 -
375 - # Move man pages
376 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
377 -
378 - # Clean up
379 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
380 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
381 -
382 - local find_exp="-or -name"
383 - local find_name=()
384 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
385 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
386 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
387 - find_name+=( ${find_exp} "${match}" )
388 - done
389 -
390 - # Remove various development and/or inappropriate files and
391 - # useless docs of dependend packages.
392 - find "${LIBDIR}"/node_modules \
393 - \( -type d -name examples \) -or \( -type f \( \
394 - -iname "LICEN?E*" \
395 - "${find_name[@]}" \
396 - \) \) -exec rm -rf "{}" \;
397 - fi
398 -
399 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
400 -}
401 -
402 -src_test() {
403 - out/${BUILDTYPE}/cctest || die
404 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
405 -}
406 -
407 -pkg_postinst() {
408 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
409 - einfo "from upstream which otherwise would have it live in /usr/etc/."
410 - einfo ""
411 - einfo "Protip: When using node-gyp to install native modules, you can"
412 - einfo "avoid having to download extras by doing the following:"
413 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
414 -}
415
416 diff --git a/net-libs/nodejs/nodejs-12.14.0.ebuild b/net-libs/nodejs/nodejs-12.14.0.ebuild
417 deleted file mode 100644
418 index f465fac..0000000
419 --- a/net-libs/nodejs/nodejs-12.14.0.ebuild
420 +++ /dev/null
421 @@ -1,212 +0,0 @@
422 -# Copyright 1999-2020 Gentoo Authors
423 -# Distributed under the terms of the GNU General Public License v2
424 -
425 -EAPI=7
426 -PYTHON_COMPAT=( python{2_7,3_{6,7}} )
427 -PYTHON_REQ_USE="threads(+)"
428 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
429 -
430 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
431 -HOMEPAGE="https://nodejs.org/"
432 -SRC_URI="
433 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
434 -"
435 -
436 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
437 -SLOT="0"
438 -KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x64-macos"
439 -IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm +snapshot +ssl systemtap test"
440 -REQUIRED_USE="
441 - bundled-ssl? ( ssl )
442 - inspector? ( icu ssl )
443 - libressl? ( bundled-ssl )
444 - npm? ( ssl )
445 -"
446 -
447 -RDEPEND="
448 - >=dev-libs/libuv-1.33.1:=
449 - >=net-dns/c-ares-1.15.0
450 - >=net-libs/http-parser-2.9.0:=
451 - >=net-libs/nghttp2-1.39.2
452 - sys-libs/zlib
453 - icu? ( >=dev-libs/icu-64.2:= )
454 - ssl? (
455 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
456 - )
457 -"
458 -BDEPEND="
459 - ${PYTHON_DEPS}
460 - systemtap? ( dev-util/systemtap )
461 - test? ( net-misc/curl )
462 -"
463 -DEPEND="
464 - ${RDEPEND}
465 -"
466 -PATCHES=(
467 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
468 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
469 -)
470 -RESTRICT="test"
471 -S="${WORKDIR}/node-v${PV}"
472 -
473 -pkg_pretend() {
474 - (use x86 && ! use cpu_flags_x86_sse2) && \
475 - die "Your CPU doesn't support the required SSE2 instruction."
476 -
477 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
478 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
479 -}
480 -
481 -src_prepare() {
482 - tc-export CC CXX PKG_CONFIG
483 - export V=1
484 - export BUILDTYPE=Release
485 -
486 - # fix compilation on Darwin
487 - # https://code.google.com/p/gyp/issues/detail?id=260
488 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
489 -
490 - # less verbose install output (stating the same as portage, basically)
491 - sed -i -e "/print/d" tools/install.py || die
492 -
493 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
494 - local LIBDIR=$(get_libdir)
495 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
496 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
497 -
498 - # Avoid writing a depfile, not useful
499 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
500 -
501 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
502 -
503 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
504 - # seem sandbox related either (invoking it from a sandbox works fine).
505 - # The issue is that no stdin handle is openened when asked for one.
506 - # It doesn't really belong upstream , so it'll just be removed until someone
507 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
508 - rm test/parallel/test-stdout-close-unref.js || die
509 -
510 - # debug builds. change install path, remove optimisations and override buildtype
511 - if use debug; then
512 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
513 - BUILDTYPE=Debug
514 - fi
515 -
516 - default
517 -}
518 -
519 -src_configure() {
520 - xdg_environment_reset
521 -
522 - local myconf=(
523 - --shared-cares
524 - --shared-http-parser
525 - --shared-libuv
526 - --shared-nghttp2
527 - --shared-zlib
528 - )
529 - use debug && myconf+=( --debug )
530 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
531 - use inspector || myconf+=( --without-inspector )
532 - use npm || myconf+=( --without-npm )
533 - use snapshot && myconf+=( --with-snapshot )
534 - use ssl && ( use bundled-ssl || myconf+=( --shared-openssl --openssl-use-def-ca-store ) ) || myconf+=( --without-ssl )
535 -
536 - local myarch=""
537 - case ${ABI} in
538 - amd64) myarch="x64";;
539 - arm) myarch="arm";;
540 - arm64) myarch="arm64";;
541 - ppc64) myarch="ppc64";;
542 - x32) myarch="x32";;
543 - x86) myarch="ia32";;
544 - *) myarch="${ABI}";;
545 - esac
546 -
547 - GYP_DEFINES="linux_use_gold_flags=0
548 - linux_use_bundled_binutils=0
549 - linux_use_bundled_gold=0" \
550 - "${EPYTHON}" configure.py \
551 - --prefix="${EPREFIX}"/usr \
552 - --dest-cpu=${myarch} \
553 - $(use_with systemtap dtrace) \
554 - "${myconf[@]}" || die
555 -}
556 -
557 -src_compile() {
558 - emake -C out mksnapshot
559 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
560 - emake -C out
561 -}
562 -
563 -src_install() {
564 - local LIBDIR="${ED}/usr/$(get_libdir)"
565 - default
566 -
567 - pax-mark -m "${ED}"/usr/bin/node
568 -
569 - # set up a symlink structure that node-gyp expects..
570 - dodir /usr/include/node/deps/{v8,uv}
571 - dosym . /usr/include/node/src
572 - for var in deps/{uv,v8}/include; do
573 - dosym ../.. /usr/include/node/${var}
574 - done
575 -
576 - if use doc; then
577 - docinto html
578 - dodoc -r "${S}"/doc/*
579 - fi
580 -
581 - if use npm; then
582 - dodir /etc/npm
583 -
584 - # Install bash completion for `npm`
585 - # We need to temporarily replace default config path since
586 - # npm otherwise tries to write outside of the sandbox
587 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
588 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
589 - local tmp_npm_completion_file="$(emktemp)"
590 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
591 - newbashcomp "${tmp_npm_completion_file}" npm
592 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
593 -
594 - # Move man pages
595 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
596 -
597 - # Clean up
598 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
599 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
600 -
601 - local find_exp="-or -name"
602 - local find_name=()
603 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
604 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
605 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
606 - find_name+=( ${find_exp} "${match}" )
607 - done
608 -
609 - # Remove various development and/or inappropriate files and
610 - # useless docs of dependend packages.
611 - find "${LIBDIR}"/node_modules \
612 - \( -type d -name examples \) -or \( -type f \( \
613 - -iname "LICEN?E*" \
614 - "${find_name[@]}" \
615 - \) \) -exec rm -rf "{}" \;
616 - fi
617 -
618 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
619 -}
620 -
621 -src_test() {
622 - out/${BUILDTYPE}/cctest || die
623 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
624 -}
625 -
626 -pkg_postinst() {
627 - elog "The global npm config lives in /etc/npm. This deviates slightly"
628 - elog "from upstream which otherwise would have it live in /usr/etc/."
629 - elog ""
630 - elog "Protip: When using node-gyp to install native modules, you can"
631 - elog "avoid having to download extras by doing the following:"
632 - elog "$ node-gyp --nodedir /usr/include/node <command>"
633 -}
634
635 diff --git a/net-libs/nodejs/nodejs-12.16.0.ebuild b/net-libs/nodejs/nodejs-12.16.0.ebuild
636 deleted file mode 100644
637 index aeae00d..0000000
638 --- a/net-libs/nodejs/nodejs-12.16.0.ebuild
639 +++ /dev/null
640 @@ -1,212 +0,0 @@
641 -# Copyright 1999-2020 Gentoo Authors
642 -# Distributed under the terms of the GNU General Public License v2
643 -
644 -EAPI=7
645 -PYTHON_COMPAT=( python3_{6,7} )
646 -PYTHON_REQ_USE="threads(+)"
647 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
648 -
649 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
650 -HOMEPAGE="https://nodejs.org/"
651 -SRC_URI="
652 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
653 -"
654 -
655 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
656 -SLOT="0"
657 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
658 -IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm +snapshot +ssl systemtap test"
659 -REQUIRED_USE="
660 - bundled-ssl? ( ssl )
661 - inspector? ( icu ssl )
662 - libressl? ( bundled-ssl )
663 - npm? ( ssl )
664 -"
665 -
666 -RDEPEND="
667 - >=dev-libs/libuv-1.34.0:=
668 - >=net-dns/c-ares-1.15.0
669 - >=net-libs/http-parser-2.9.3:=
670 - >=net-libs/nghttp2-1.40.0
671 - sys-libs/zlib
672 - icu? ( >=dev-libs/icu-64.2:= )
673 - ssl? (
674 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
675 - )
676 -"
677 -BDEPEND="
678 - ${PYTHON_DEPS}
679 - systemtap? ( dev-util/systemtap )
680 - test? ( net-misc/curl )
681 -"
682 -DEPEND="
683 - ${RDEPEND}
684 -"
685 -PATCHES=(
686 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
687 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
688 -)
689 -RESTRICT="test"
690 -S="${WORKDIR}/node-v${PV}"
691 -
692 -pkg_pretend() {
693 - (use x86 && ! use cpu_flags_x86_sse2) && \
694 - die "Your CPU doesn't support the required SSE2 instruction."
695 -
696 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
697 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
698 -}
699 -
700 -src_prepare() {
701 - tc-export CC CXX PKG_CONFIG
702 - export V=1
703 - export BUILDTYPE=Release
704 -
705 - # fix compilation on Darwin
706 - # https://code.google.com/p/gyp/issues/detail?id=260
707 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
708 -
709 - # less verbose install output (stating the same as portage, basically)
710 - sed -i -e "/print/d" tools/install.py || die
711 -
712 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
713 - local LIBDIR=$(get_libdir)
714 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
715 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
716 -
717 - # Avoid writing a depfile, not useful
718 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
719 -
720 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
721 -
722 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
723 - # seem sandbox related either (invoking it from a sandbox works fine).
724 - # The issue is that no stdin handle is openened when asked for one.
725 - # It doesn't really belong upstream , so it'll just be removed until someone
726 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
727 - rm test/parallel/test-stdout-close-unref.js || die
728 -
729 - # debug builds. change install path, remove optimisations and override buildtype
730 - if use debug; then
731 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
732 - BUILDTYPE=Debug
733 - fi
734 -
735 - default
736 -}
737 -
738 -src_configure() {
739 - xdg_environment_reset
740 -
741 - local myconf=(
742 - --shared-cares
743 - --shared-http-parser
744 - --shared-libuv
745 - --shared-nghttp2
746 - --shared-zlib
747 - )
748 - use debug && myconf+=( --debug )
749 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
750 - use inspector || myconf+=( --without-inspector )
751 - use npm || myconf+=( --without-npm )
752 - use snapshot || myconf+=( --without-node-snapshot )
753 - use ssl && ( use bundled-ssl || myconf+=( --shared-openssl --openssl-use-def-ca-store ) ) || myconf+=( --without-ssl )
754 -
755 - local myarch=""
756 - case ${ABI} in
757 - amd64) myarch="x64";;
758 - arm) myarch="arm";;
759 - arm64) myarch="arm64";;
760 - ppc64) myarch="ppc64";;
761 - x32) myarch="x32";;
762 - x86) myarch="ia32";;
763 - *) myarch="${ABI}";;
764 - esac
765 -
766 - GYP_DEFINES="linux_use_gold_flags=0
767 - linux_use_bundled_binutils=0
768 - linux_use_bundled_gold=0" \
769 - "${EPYTHON}" configure.py \
770 - --prefix="${EPREFIX}"/usr \
771 - --dest-cpu=${myarch} \
772 - $(use_with systemtap dtrace) \
773 - "${myconf[@]}" || die
774 -}
775 -
776 -src_compile() {
777 - emake -C out mksnapshot
778 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
779 - emake -C out
780 -}
781 -
782 -src_install() {
783 - local LIBDIR="${ED}/usr/$(get_libdir)"
784 - default
785 -
786 - pax-mark -m "${ED}"/usr/bin/node
787 -
788 - # set up a symlink structure that node-gyp expects..
789 - dodir /usr/include/node/deps/{v8,uv}
790 - dosym . /usr/include/node/src
791 - for var in deps/{uv,v8}/include; do
792 - dosym ../.. /usr/include/node/${var}
793 - done
794 -
795 - if use doc; then
796 - docinto html
797 - dodoc -r "${S}"/doc/*
798 - fi
799 -
800 - if use npm; then
801 - dodir /etc/npm
802 -
803 - # Install bash completion for `npm`
804 - # We need to temporarily replace default config path since
805 - # npm otherwise tries to write outside of the sandbox
806 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
807 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
808 - local tmp_npm_completion_file="$(emktemp)"
809 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
810 - newbashcomp "${tmp_npm_completion_file}" npm
811 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
812 -
813 - # Move man pages
814 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
815 -
816 - # Clean up
817 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
818 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
819 -
820 - local find_exp="-or -name"
821 - local find_name=()
822 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
823 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
824 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
825 - find_name+=( ${find_exp} "${match}" )
826 - done
827 -
828 - # Remove various development and/or inappropriate files and
829 - # useless docs of dependend packages.
830 - find "${LIBDIR}"/node_modules \
831 - \( -type d -name examples \) -or \( -type f \( \
832 - -iname "LICEN?E*" \
833 - "${find_name[@]}" \
834 - \) \) -exec rm -rf "{}" \;
835 - fi
836 -
837 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
838 -}
839 -
840 -src_test() {
841 - out/${BUILDTYPE}/cctest || die
842 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
843 -}
844 -
845 -pkg_postinst() {
846 - elog "The global npm config lives in /etc/npm. This deviates slightly"
847 - elog "from upstream which otherwise would have it live in /usr/etc/."
848 - elog ""
849 - elog "Protip: When using node-gyp to install native modules, you can"
850 - elog "avoid having to download extras by doing the following:"
851 - elog "$ node-gyp --nodedir /usr/include/node <command>"
852 -}
853
854 diff --git a/net-libs/nodejs/nodejs-12.16.1.ebuild b/net-libs/nodejs/nodejs-12.16.1.ebuild
855 deleted file mode 100644
856 index baf552c..0000000
857 --- a/net-libs/nodejs/nodejs-12.16.1.ebuild
858 +++ /dev/null
859 @@ -1,212 +0,0 @@
860 -# Copyright 1999-2020 Gentoo Authors
861 -# Distributed under the terms of the GNU General Public License v2
862 -
863 -EAPI=7
864 -PYTHON_COMPAT=( python3_{6,7} )
865 -PYTHON_REQ_USE="threads(+)"
866 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
867 -
868 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
869 -HOMEPAGE="https://nodejs.org/"
870 -SRC_URI="
871 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
872 -"
873 -
874 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
875 -SLOT="0"
876 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
877 -IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm +snapshot +ssl systemtap test"
878 -REQUIRED_USE="
879 - bundled-ssl? ( ssl )
880 - inspector? ( icu ssl )
881 - libressl? ( bundled-ssl )
882 - npm? ( ssl )
883 -"
884 -
885 -RDEPEND="
886 - >=dev-libs/libuv-1.34.0:=
887 - >=net-dns/c-ares-1.15.0
888 - >=net-libs/http-parser-2.9.3:=
889 - >=net-libs/nghttp2-1.40.0
890 - sys-libs/zlib
891 - icu? ( >=dev-libs/icu-64.2:= )
892 - ssl? (
893 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
894 - )
895 -"
896 -BDEPEND="
897 - ${PYTHON_DEPS}
898 - systemtap? ( dev-util/systemtap )
899 - test? ( net-misc/curl )
900 -"
901 -DEPEND="
902 - ${RDEPEND}
903 -"
904 -PATCHES=(
905 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
906 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
907 -)
908 -RESTRICT="test"
909 -S="${WORKDIR}/node-v${PV}"
910 -
911 -pkg_pretend() {
912 - (use x86 && ! use cpu_flags_x86_sse2) && \
913 - die "Your CPU doesn't support the required SSE2 instruction."
914 -
915 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
916 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
917 -}
918 -
919 -src_prepare() {
920 - tc-export CC CXX PKG_CONFIG
921 - export V=1
922 - export BUILDTYPE=Release
923 -
924 - # fix compilation on Darwin
925 - # https://code.google.com/p/gyp/issues/detail?id=260
926 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
927 -
928 - # less verbose install output (stating the same as portage, basically)
929 - sed -i -e "/print/d" tools/install.py || die
930 -
931 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
932 - local LIBDIR=$(get_libdir)
933 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
934 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
935 -
936 - # Avoid writing a depfile, not useful
937 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
938 -
939 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
940 -
941 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
942 - # seem sandbox related either (invoking it from a sandbox works fine).
943 - # The issue is that no stdin handle is openened when asked for one.
944 - # It doesn't really belong upstream , so it'll just be removed until someone
945 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
946 - rm test/parallel/test-stdout-close-unref.js || die
947 -
948 - # debug builds. change install path, remove optimisations and override buildtype
949 - if use debug; then
950 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
951 - BUILDTYPE=Debug
952 - fi
953 -
954 - default
955 -}
956 -
957 -src_configure() {
958 - xdg_environment_reset
959 -
960 - local myconf=(
961 - --shared-cares
962 - --shared-http-parser
963 - --shared-libuv
964 - --shared-nghttp2
965 - --shared-zlib
966 - )
967 - use debug && myconf+=( --debug )
968 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
969 - use inspector || myconf+=( --without-inspector )
970 - use npm || myconf+=( --without-npm )
971 - use snapshot || myconf+=( --without-node-snapshot )
972 - use ssl && ( use bundled-ssl || myconf+=( --shared-openssl --openssl-use-def-ca-store ) ) || myconf+=( --without-ssl )
973 -
974 - local myarch=""
975 - case ${ABI} in
976 - amd64) myarch="x64";;
977 - arm) myarch="arm";;
978 - arm64) myarch="arm64";;
979 - ppc64) myarch="ppc64";;
980 - x32) myarch="x32";;
981 - x86) myarch="ia32";;
982 - *) myarch="${ABI}";;
983 - esac
984 -
985 - GYP_DEFINES="linux_use_gold_flags=0
986 - linux_use_bundled_binutils=0
987 - linux_use_bundled_gold=0" \
988 - "${EPYTHON}" configure.py \
989 - --prefix="${EPREFIX}"/usr \
990 - --dest-cpu=${myarch} \
991 - $(use_with systemtap dtrace) \
992 - "${myconf[@]}" || die
993 -}
994 -
995 -src_compile() {
996 - emake -C out mksnapshot
997 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
998 - emake -C out
999 -}
1000 -
1001 -src_install() {
1002 - local LIBDIR="${ED}/usr/$(get_libdir)"
1003 - default
1004 -
1005 - pax-mark -m "${ED}"/usr/bin/node
1006 -
1007 - # set up a symlink structure that node-gyp expects..
1008 - dodir /usr/include/node/deps/{v8,uv}
1009 - dosym . /usr/include/node/src
1010 - for var in deps/{uv,v8}/include; do
1011 - dosym ../.. /usr/include/node/${var}
1012 - done
1013 -
1014 - if use doc; then
1015 - docinto html
1016 - dodoc -r "${S}"/doc/*
1017 - fi
1018 -
1019 - if use npm; then
1020 - dodir /etc/npm
1021 -
1022 - # Install bash completion for `npm`
1023 - # We need to temporarily replace default config path since
1024 - # npm otherwise tries to write outside of the sandbox
1025 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1026 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1027 - local tmp_npm_completion_file="$(emktemp)"
1028 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1029 - newbashcomp "${tmp_npm_completion_file}" npm
1030 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1031 -
1032 - # Move man pages
1033 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1034 -
1035 - # Clean up
1036 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1037 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1038 -
1039 - local find_exp="-or -name"
1040 - local find_name=()
1041 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1042 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1043 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1044 - find_name+=( ${find_exp} "${match}" )
1045 - done
1046 -
1047 - # Remove various development and/or inappropriate files and
1048 - # useless docs of dependend packages.
1049 - find "${LIBDIR}"/node_modules \
1050 - \( -type d -name examples \) -or \( -type f \( \
1051 - -iname "LICEN?E*" \
1052 - "${find_name[@]}" \
1053 - \) \) -exec rm -rf "{}" \;
1054 - fi
1055 -
1056 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1057 -}
1058 -
1059 -src_test() {
1060 - out/${BUILDTYPE}/cctest || die
1061 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1062 -}
1063 -
1064 -pkg_postinst() {
1065 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1066 - elog "from upstream which otherwise would have it live in /usr/etc/."
1067 - elog ""
1068 - elog "Protip: When using node-gyp to install native modules, you can"
1069 - elog "avoid having to download extras by doing the following:"
1070 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1071 -}
1072
1073 diff --git a/net-libs/nodejs/nodejs-13.8.0.ebuild b/net-libs/nodejs/nodejs-13.8.0.ebuild
1074 deleted file mode 100644
1075 index 9e81066..0000000
1076 --- a/net-libs/nodejs/nodejs-13.8.0.ebuild
1077 +++ /dev/null
1078 @@ -1,208 +0,0 @@
1079 -# Copyright 1999-2020 Gentoo Authors
1080 -# Distributed under the terms of the GNU General Public License v2
1081 -
1082 -EAPI=7
1083 -PYTHON_COMPAT=( python{2_7,3_{6,7}} )
1084 -PYTHON_REQ_USE="threads(+)"
1085 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
1086 -
1087 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1088 -HOMEPAGE="https://nodejs.org/"
1089 -SRC_URI="
1090 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
1091 -"
1092 -
1093 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1094 -SLOT="0"
1095 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1096 -IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm pax_kernel +snapshot +ssl systemtap test"
1097 -REQUIRED_USE="
1098 - bundled-ssl? ( ssl )
1099 - inspector? ( icu ssl )
1100 - libressl? ( bundled-ssl )
1101 - npm? ( ssl )
1102 -"
1103 -
1104 -RDEPEND="
1105 - >=dev-libs/libuv-1.34.1:=
1106 - >=net-dns/c-ares-1.15.0
1107 - >=net-libs/nghttp2-1.40.0
1108 - sys-libs/zlib
1109 - icu? ( >=dev-libs/icu-64.2:= )
1110 - ssl? (
1111 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
1112 - )
1113 -"
1114 -BDEPEND="
1115 - ${PYTHON_DEPS}
1116 - systemtap? ( dev-util/systemtap )
1117 - test? ( net-misc/curl )
1118 - pax_kernel? ( sys-apps/elfix )
1119 -"
1120 -DEPEND="
1121 - ${RDEPEND}
1122 -"
1123 -PATCHES=(
1124 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1125 -)
1126 -RESTRICT="test"
1127 -S="${WORKDIR}/node-v${PV}"
1128 -
1129 -pkg_pretend() {
1130 - (use x86 && ! use cpu_flags_x86_sse2) && \
1131 - die "Your CPU doesn't support the required SSE2 instruction."
1132 -
1133 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1134 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1135 -}
1136 -
1137 -src_prepare() {
1138 - tc-export CC CXX PKG_CONFIG
1139 - export V=1
1140 - export BUILDTYPE=Release
1141 -
1142 - # fix compilation on Darwin
1143 - # https://code.google.com/p/gyp/issues/detail?id=260
1144 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1145 -
1146 - # less verbose install output (stating the same as portage, basically)
1147 - sed -i -e "/print/d" tools/install.py || die
1148 -
1149 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1150 - local LIBDIR=$(get_libdir)
1151 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1152 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1153 -
1154 - # Avoid writing a depfile, not useful
1155 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1156 -
1157 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
1158 -
1159 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1160 - # seem sandbox related either (invoking it from a sandbox works fine).
1161 - # The issue is that no stdin handle is openened when asked for one.
1162 - # It doesn't really belong upstream , so it'll just be removed until someone
1163 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1164 - rm test/parallel/test-stdout-close-unref.js || die
1165 -
1166 - # debug builds. change install path, remove optimisations and override buildtype
1167 - if use debug; then
1168 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1169 - BUILDTYPE=Debug
1170 - fi
1171 -
1172 - # We need to disable mprotect on two files when it builds Bug 694100.
1173 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.2.0-paxmarking.patch )
1174 -
1175 - default
1176 -}
1177 -
1178 -src_configure() {
1179 - xdg_environment_reset
1180 -
1181 - local myconf=(
1182 - --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib
1183 - )
1184 - use debug && myconf+=( --debug )
1185 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1186 - use inspector || myconf+=( --without-inspector )
1187 - use npm || myconf+=( --without-npm )
1188 - use snapshot || myconf+=( --without-node-snapshot )
1189 - use ssl && ( use bundled-ssl || myconf+=( --shared-openssl --openssl-use-def-ca-store ) ) || myconf+=( --without-ssl )
1190 -
1191 - local myarch=""
1192 - case ${ABI} in
1193 - amd64) myarch="x64";;
1194 - arm) myarch="arm";;
1195 - arm64) myarch="arm64";;
1196 - ppc64) myarch="ppc64";;
1197 - x32) myarch="x32";;
1198 - x86) myarch="ia32";;
1199 - *) myarch="${ABI}";;
1200 - esac
1201 -
1202 - GYP_DEFINES="linux_use_gold_flags=0
1203 - linux_use_bundled_binutils=0
1204 - linux_use_bundled_gold=0" \
1205 - "${EPYTHON}" configure.py \
1206 - --prefix="${EPREFIX}"/usr \
1207 - --dest-cpu=${myarch} \
1208 - $(use_with systemtap dtrace) \
1209 - "${myconf[@]}" || die
1210 -}
1211 -
1212 -src_compile() {
1213 - emake -C out
1214 -}
1215 -
1216 -src_install() {
1217 - local LIBDIR="${ED}/usr/$(get_libdir)"
1218 - default
1219 -
1220 - pax-mark -m "${ED}"/usr/bin/node
1221 -
1222 - # set up a symlink structure that node-gyp expects..
1223 - dodir /usr/include/node/deps/{v8,uv}
1224 - dosym . /usr/include/node/src
1225 - for var in deps/{uv,v8}/include; do
1226 - dosym ../.. /usr/include/node/${var}
1227 - done
1228 -
1229 - if use doc; then
1230 - docinto html
1231 - dodoc -r "${S}"/doc/*
1232 - fi
1233 -
1234 - if use npm; then
1235 - dodir /etc/npm
1236 -
1237 - # Install bash completion for `npm`
1238 - # We need to temporarily replace default config path since
1239 - # npm otherwise tries to write outside of the sandbox
1240 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1241 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1242 - local tmp_npm_completion_file="$(emktemp)"
1243 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1244 - newbashcomp "${tmp_npm_completion_file}" npm
1245 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1246 -
1247 - # Move man pages
1248 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1249 -
1250 - # Clean up
1251 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1252 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1253 -
1254 - local find_exp="-or -name"
1255 - local find_name=()
1256 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1257 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1258 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1259 - find_name+=( ${find_exp} "${match}" )
1260 - done
1261 -
1262 - # Remove various development and/or inappropriate files and
1263 - # useless docs of dependend packages.
1264 - find "${LIBDIR}"/node_modules \
1265 - \( -type d -name examples \) -or \( -type f \( \
1266 - -iname "LICEN?E*" \
1267 - "${find_name[@]}" \
1268 - \) \) -exec rm -rf "{}" \;
1269 - fi
1270 -
1271 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1272 -}
1273 -
1274 -src_test() {
1275 - out/${BUILDTYPE}/cctest || die
1276 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1277 -}
1278 -
1279 -pkg_postinst() {
1280 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1281 - elog "from upstream which otherwise would have it live in /usr/etc/."
1282 - elog ""
1283 - elog "Protip: When using node-gyp to install native modules, you can"
1284 - elog "avoid having to download extras by doing the following:"
1285 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1286 -}
1287
1288 diff --git a/net-libs/nodejs/nodejs-13.9.0.ebuild b/net-libs/nodejs/nodejs-13.9.0.ebuild
1289 deleted file mode 100644
1290 index ba1d52f..0000000
1291 --- a/net-libs/nodejs/nodejs-13.9.0.ebuild
1292 +++ /dev/null
1293 @@ -1,208 +0,0 @@
1294 -# Copyright 1999-2020 Gentoo Authors
1295 -# Distributed under the terms of the GNU General Public License v2
1296 -
1297 -EAPI=7
1298 -PYTHON_COMPAT=( python3_{6,7} )
1299 -PYTHON_REQ_USE="threads(+)"
1300 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
1301 -
1302 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1303 -HOMEPAGE="https://nodejs.org/"
1304 -SRC_URI="
1305 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
1306 -"
1307 -
1308 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1309 -SLOT="0"
1310 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1311 -IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm pax_kernel +snapshot +ssl systemtap test"
1312 -REQUIRED_USE="
1313 - bundled-ssl? ( ssl )
1314 - inspector? ( icu ssl )
1315 - libressl? ( bundled-ssl )
1316 - npm? ( ssl )
1317 -"
1318 -
1319 -RDEPEND="
1320 - >=dev-libs/libuv-1.34.2:=
1321 - >=net-dns/c-ares-1.15.0
1322 - >=net-libs/nghttp2-1.40.0
1323 - sys-libs/zlib
1324 - icu? ( >=dev-libs/icu-64.2:= )
1325 - ssl? (
1326 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
1327 - )
1328 -"
1329 -BDEPEND="
1330 - ${PYTHON_DEPS}
1331 - systemtap? ( dev-util/systemtap )
1332 - test? ( net-misc/curl )
1333 - pax_kernel? ( sys-apps/elfix )
1334 -"
1335 -DEPEND="
1336 - ${RDEPEND}
1337 -"
1338 -PATCHES=(
1339 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1340 -)
1341 -RESTRICT="test"
1342 -S="${WORKDIR}/node-v${PV}"
1343 -
1344 -pkg_pretend() {
1345 - (use x86 && ! use cpu_flags_x86_sse2) && \
1346 - die "Your CPU doesn't support the required SSE2 instruction."
1347 -
1348 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1349 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1350 -}
1351 -
1352 -src_prepare() {
1353 - tc-export CC CXX PKG_CONFIG
1354 - export V=1
1355 - export BUILDTYPE=Release
1356 -
1357 - # fix compilation on Darwin
1358 - # https://code.google.com/p/gyp/issues/detail?id=260
1359 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1360 -
1361 - # less verbose install output (stating the same as portage, basically)
1362 - sed -i -e "/print/d" tools/install.py || die
1363 -
1364 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1365 - local LIBDIR=$(get_libdir)
1366 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1367 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1368 -
1369 - # Avoid writing a depfile, not useful
1370 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1371 -
1372 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
1373 -
1374 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1375 - # seem sandbox related either (invoking it from a sandbox works fine).
1376 - # The issue is that no stdin handle is openened when asked for one.
1377 - # It doesn't really belong upstream , so it'll just be removed until someone
1378 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1379 - rm test/parallel/test-stdout-close-unref.js || die
1380 -
1381 - # debug builds. change install path, remove optimisations and override buildtype
1382 - if use debug; then
1383 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1384 - BUILDTYPE=Debug
1385 - fi
1386 -
1387 - # We need to disable mprotect on two files when it builds Bug 694100.
1388 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
1389 -
1390 - default
1391 -}
1392 -
1393 -src_configure() {
1394 - xdg_environment_reset
1395 -
1396 - local myconf=(
1397 - --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib
1398 - )
1399 - use debug && myconf+=( --debug )
1400 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1401 - use inspector || myconf+=( --without-inspector )
1402 - use npm || myconf+=( --without-npm )
1403 - use snapshot || myconf+=( --without-node-snapshot )
1404 - use ssl && ( use bundled-ssl || myconf+=( --shared-openssl --openssl-use-def-ca-store ) ) || myconf+=( --without-ssl )
1405 -
1406 - local myarch=""
1407 - case ${ABI} in
1408 - amd64) myarch="x64";;
1409 - arm) myarch="arm";;
1410 - arm64) myarch="arm64";;
1411 - ppc64) myarch="ppc64";;
1412 - x32) myarch="x32";;
1413 - x86) myarch="ia32";;
1414 - *) myarch="${ABI}";;
1415 - esac
1416 -
1417 - GYP_DEFINES="linux_use_gold_flags=0
1418 - linux_use_bundled_binutils=0
1419 - linux_use_bundled_gold=0" \
1420 - "${EPYTHON}" configure.py \
1421 - --prefix="${EPREFIX}"/usr \
1422 - --dest-cpu=${myarch} \
1423 - $(use_with systemtap dtrace) \
1424 - "${myconf[@]}" || die
1425 -}
1426 -
1427 -src_compile() {
1428 - emake -C out
1429 -}
1430 -
1431 -src_install() {
1432 - local LIBDIR="${ED}/usr/$(get_libdir)"
1433 - default
1434 -
1435 - pax-mark -m "${ED}"/usr/bin/node
1436 -
1437 - # set up a symlink structure that node-gyp expects..
1438 - dodir /usr/include/node/deps/{v8,uv}
1439 - dosym . /usr/include/node/src
1440 - for var in deps/{uv,v8}/include; do
1441 - dosym ../.. /usr/include/node/${var}
1442 - done
1443 -
1444 - if use doc; then
1445 - docinto html
1446 - dodoc -r "${S}"/doc/*
1447 - fi
1448 -
1449 - if use npm; then
1450 - dodir /etc/npm
1451 -
1452 - # Install bash completion for `npm`
1453 - # We need to temporarily replace default config path since
1454 - # npm otherwise tries to write outside of the sandbox
1455 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1456 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1457 - local tmp_npm_completion_file="$(emktemp)"
1458 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1459 - newbashcomp "${tmp_npm_completion_file}" npm
1460 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1461 -
1462 - # Move man pages
1463 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1464 -
1465 - # Clean up
1466 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1467 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1468 -
1469 - local find_exp="-or -name"
1470 - local find_name=()
1471 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1472 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1473 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1474 - find_name+=( ${find_exp} "${match}" )
1475 - done
1476 -
1477 - # Remove various development and/or inappropriate files and
1478 - # useless docs of dependend packages.
1479 - find "${LIBDIR}"/node_modules \
1480 - \( -type d -name examples \) -or \( -type f \( \
1481 - -iname "LICEN?E*" \
1482 - "${find_name[@]}" \
1483 - \) \) -exec rm -rf "{}" \;
1484 - fi
1485 -
1486 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1487 -}
1488 -
1489 -src_test() {
1490 - out/${BUILDTYPE}/cctest || die
1491 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1492 -}
1493 -
1494 -pkg_postinst() {
1495 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1496 - elog "from upstream which otherwise would have it live in /usr/etc/."
1497 - elog ""
1498 - elog "Protip: When using node-gyp to install native modules, you can"
1499 - elog "avoid having to download extras by doing the following:"
1500 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1501 -}