Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/
Date: Thu, 28 Feb 2019 18:49:36
Message-Id: 1551379769.4b211c07382b00b2f639d9c58bf7b3283d74a012.jer@gentoo
1 commit: 4b211c07382b00b2f639d9c58bf7b3283d74a012
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 28 18:49:05 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 28 18:49:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b211c07
7
8 net-libs/nodejs: Old
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-libs/nodejs/Manifest | 8 --
14 net-libs/nodejs/nodejs-10.15.0.ebuild | 205 ---------------------------------
15 net-libs/nodejs/nodejs-10.15.1.ebuild | 205 ---------------------------------
16 net-libs/nodejs/nodejs-11.10.0.ebuild | 210 ----------------------------------
17 net-libs/nodejs/nodejs-11.7.0.ebuild | 210 ----------------------------------
18 net-libs/nodejs/nodejs-11.8.0.ebuild | 210 ----------------------------------
19 net-libs/nodejs/nodejs-11.9.0.ebuild | 210 ----------------------------------
20 net-libs/nodejs/nodejs-6.16.0.ebuild | 200 --------------------------------
21 net-libs/nodejs/nodejs-8.15.0.ebuild | 207 ---------------------------------
22 9 files changed, 1665 deletions(-)
23
24 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
25 index ac946708514..8732e260e34 100644
26 --- a/net-libs/nodejs/Manifest
27 +++ b/net-libs/nodejs/Manifest
28 @@ -1,16 +1,8 @@
29 DIST node-v0.12.18.tar.gz 19842591 BLAKE2B f94f4de6e2875267be194580c645087a262b90da99f10d651a22838c041da07056df81204bb04ce8da083a080062509dcca4d1e3ac2250d651ead8a4cc025028 SHA512 6866608a43eb213f3b715ea0fcc28983fd959ab679c567a1b464f62acd936506f2bce88ea48a60209d8ef8d98259f4b47cd3434893eb4ff82a132775edb37b7b
30 -DIST node-v10.15.0.tar.xz 20217588 BLAKE2B ef7f626bd3b13b11a1cbf21f5c6a2ce08567dddc2fb525c5f10e02f81750a648245c2eb88535d8aac1b055a13d12f9ead72d55c4ccf68062940da09d582344c3 SHA512 6c10ae4070cd8b89d4d31ee2137453fa582cef85c6f002c78d5029ceedddf5caeee8e28a4e75dfc632c3af3c8e2acec403ab17a927ba51fa31175d58b45cbf49
31 -DIST node-v10.15.1.tar.xz 20231024 BLAKE2B 82fec4cf3902cc3b8eba595c969e18ffd2fb468e58eec026308aef2c3dde3c9b96c96997b2710e224c77c373ac72e5cc8dd4e68d937914e014d3f457c7d6afa4 SHA512 823a4703b388275aa86e7ede5c626a918764d6e83bdd9a0cb249ec1f960f3a3020306078d8a4113311303e4c3380d4090c928041ef64189a3cdf67153c7cac95
32 DIST node-v10.15.2.tar.xz 20232972 BLAKE2B 3ffaa0890ddec6b9d00a0b3f32fc62e55a665ea6faba6265df71be601f88a1c948011f908851f1cbb198974ca36f8626fa9a2b4b8827f0155e57ff48f3e25c10 SHA512 2d4ef4758d3a73a160b95249c7dce32307287ef84511f56c3077f18c0d87a53bb73b44dd86131a402c4e86686e5e7cb5aeedb2b075b8ab261fc43d5abbe70ce6
33 -DIST node-v11.10.0.tar.xz 22073588 BLAKE2B d2a58655c7a9a5b5f78abeaeee80747df83408c1ef325aca06b5636fda5a7cde7eb787f70960abfa1bfa9397a3a45d266d72e91359bb9035103e3ebbe88813a8 SHA512 f6701f235b2f95c4c1ba240d0540646cb6268ba795b385126abe915095e8620c90047c192215f8460e903711b0851680faa19d7ea39213d5396f4d56f728500d
34 DIST node-v11.10.1.tar.xz 22074212 BLAKE2B de4c224063050901a3898bb9d2a26dba8027b3722528c402d461f2ca892a80e230e16131e9c8b22d6fefbd44b79a6d78aef631934c80ed53f8601fd2d3405150 SHA512 8da793946d18c8368f12e786bc4fdcff0ac61237c95f896a49895d6433edcd42005d50237095fd2b1c69b51d56900d122528783338dbb97e5fcee9dcc9a5812c
35 -DIST node-v11.7.0.tar.xz 21218124 BLAKE2B a7e69dc8d6ee2f42ea78ec9c4d623b56bfbc2e130fc6b7d33038ce79f03d7b92e78545fa26bb2dbd58c1c25677f0b224077822264fd9cec49e71f18517098563 SHA512 eec2d5e67d94314f1a09f3a1c3407d6b12e9decbdff99d41eb487c4ddc1929fc5661be0b6fbb180961ecb6094311630b19faa0af031d82ff8de7ae213ee35ab7
36 -DIST node-v11.8.0.tar.xz 21253080 BLAKE2B 808df024b7dba628f03b7c6c2fe8c486bb036f02f80aa2184de0a8393afad17dcd19d98fd63f1ffc5f9c1dc4fb078f32d15217322d1608510f291eef456df35f SHA512 7c33984014c2b95bde59affee88bc77caa2788dbdd7db87150acd58c56304932bf4b030994c91fc655f0f32202b8d1ed370c3d19d09569af50ffce91414d62ac
37 -DIST node-v11.9.0.tar.xz 21703796 BLAKE2B 9097a93b749b7a3dee38507ae37ece985872391f86f75a7aefb7820c361e98e708e4629fe2c5c8d76de9e9fac8c9b8d8811b490b63ce31ba57777abf47cc2fe3 SHA512 beb20a9042c990ae8978b5794db21d3461ed41b985ad6a5f163ea9563ed3277953926f83a81f49d7b7ae040bad95d7777ff758a03dd299a0de1014e008767da2
38 DIST node-v4.9.1.tar.xz 13250164 BLAKE2B 7a689b99bb4bf507f7f21dd2c096a5766d023a8174c0f468cab37365af1920b8700da04157e1a406917790524255ef32c243a74662fd50ef7d3567d189dac9cf SHA512 690c9fdf608e5194069a10955bdd94ec87cb1c308f13bc4d2cae92fa01436ace10fadf58f2e51d477dde6c570b23edc1c71fafea79bfc9cab2903eb2fa5f87aa
39 DIST node-v6.14.4.tar.xz 15842824 BLAKE2B fc56364be64fe5824e2bb50d861ebf8f58f9895f2c9c108b8df3315b127ffb2755eac85c28165ac9779adab4611ce8f5ea1a5745f43ebaa1389e82b8215c6396 SHA512 1ead0c097ec125230dd631f19a5c3ec06a1371f9ca3b392b5ad08fcc227dd0142f33ad52f96890c2c17448a4951a635b9099dfff00d7d8b3ffb59b07904d1bfa
40 -DIST node-v6.16.0.tar.xz 15854256 BLAKE2B 0c70ce154639cbae12e0dfd6e7d5705999badb5872d71f388a3bb89f2830ddb096761aed47bdc6e310f2088fa79070d8a3427361206d74f686d86b27f929a4b4 SHA512 e9a222af328c8afb47b4b9c0f39ca5c1e45c5590b2064b3a8994b25f63acd041fba591d390e5a617db08d1212de15c438c66000ddcbc65cd071681311fa3591d
41 DIST node-v6.17.0.tar.xz 15853760 BLAKE2B f1872b2ed43c447beff2b3278e49f9f10bbef58bba2640f6ecd889facfa4c5e5ae142f3b30721faae615df42c0870d7c09147930a259fa81c161b29559e2a340 SHA512 8ae9bfa0336a7d0d9f4a372330de1f877354a3d68bdd6977285787f81999012e42faf4ccef5981fe565ea9e2f18c5490b857bab29359fdf906b5a9fb14628858
42 DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42
43 -DIST node-v8.15.0.tar.xz 18499412 BLAKE2B bba68517358cea14e9ba7c0c14b3f30caa00e358ff79d0602a1a71c9dd80334800ea2fd12086c5bee47cc23b9debe2cb0e36650f6be02e20615047a971297c54 SHA512 9a3d54ee9e22919ab425532ea64336b1dee0ae3ce4afd4eaacc109a2c2d34c98ea8188acd436c55a5dbba30fb4f95f8fcc9000ea60a81224d09b90d2f493cefd
44 DIST node-v8.15.1.tar.xz 18501532 BLAKE2B e6da98902d665997b2e85472424e00f817353dcfc118b1d309f1305099b145eb0eae33429554ab5d563366182b34b24ac78f8b78794f8d21318ebcd137622131 SHA512 23fb4e2580116a69a58514c2dc1f42098c7d594ea9d0cd6e7090f37e12e1805ca6546df66ee68fcb61b803e287ce34422f55129412f6bdcdaa97f515d9581e19
45
46 diff --git a/net-libs/nodejs/nodejs-10.15.0.ebuild b/net-libs/nodejs/nodejs-10.15.0.ebuild
47 deleted file mode 100644
48 index 959fdfa0bf2..00000000000
49 --- a/net-libs/nodejs/nodejs-10.15.0.ebuild
50 +++ /dev/null
51 @@ -1,205 +0,0 @@
52 -# Copyright 1999-2019 Gentoo Authors
53 -# Distributed under the terms of the GNU General Public License v2
54 -
55 -EAPI=6
56 -
57 -PYTHON_COMPAT=( python2_7 )
58 -PYTHON_REQ_USE="threads"
59 -
60 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
61 -
62 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
63 -HOMEPAGE="https://nodejs.org/"
64 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
65 -
66 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
67 -SLOT="0"
68 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
69 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
70 -REQUIRED_USE="
71 - ${PYTHON_REQUIRED_USE}
72 - inspector? ( icu ssl )
73 - npm? ( ssl )
74 -"
75 -
76 -RDEPEND="
77 - >=dev-libs/libuv-1.23.2:=
78 - >=net-dns/c-ares-1.15.0
79 - >=net-libs/http-parser-2.9.0:=
80 - >=net-libs/nghttp2-1.34.0
81 - sys-libs/zlib
82 - icu? ( >=dev-libs/icu-62.1:= )
83 - ssl? ( =dev-libs/openssl-1.1.0*:0= )
84 -"
85 -DEPEND="
86 - ${RDEPEND}
87 - ${PYTHON_DEPS}
88 - systemtap? ( dev-util/systemtap )
89 - test? ( net-misc/curl )
90 -"
91 -PATCHES=(
92 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
93 -)
94 -S="${WORKDIR}/node-v${PV}"
95 -
96 -pkg_pretend() {
97 - (use x86 && ! use cpu_flags_x86_sse2) && \
98 - die "Your CPU doesn't support the required SSE2 instruction."
99 -
100 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
101 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
102 -}
103 -
104 -src_prepare() {
105 - tc-export CC CXX PKG_CONFIG
106 - export V=1
107 - export BUILDTYPE=Release
108 -
109 - # fix compilation on Darwin
110 - # https://code.google.com/p/gyp/issues/detail?id=260
111 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
112 -
113 - # make sure we use python2.* while using gyp
114 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
115 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
116 -
117 - # less verbose install output (stating the same as portage, basically)
118 - sed -i -e "/print/d" tools/install.py || die
119 -
120 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
121 - local LIBDIR=$(get_libdir)
122 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
123 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
124 -
125 - # Avoid writing a depfile, not useful
126 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
127 -
128 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
129 -
130 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
131 - # seem sandbox related either (invoking it from a sandbox works fine).
132 - # The issue is that no stdin handle is openened when asked for one.
133 - # It doesn't really belong upstream , so it'll just be removed until someone
134 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
135 - rm test/parallel/test-stdout-close-unref.js || die
136 -
137 - # debug builds. change install path, remove optimisations and override buildtype
138 - if use debug; then
139 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
140 - BUILDTYPE=Debug
141 - fi
142 -
143 - default
144 -}
145 -
146 -src_configure() {
147 - local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
148 - use debug && myconf+=( --debug )
149 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
150 - use inspector || myconf+=( --without-inspector )
151 - use npm || myconf+=( --without-npm )
152 - use snapshot && myconf+=( --with-snapshot )
153 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
154 -
155 - local myarch=""
156 - case ${ABI} in
157 - amd64) myarch="x64";;
158 - arm) myarch="arm";;
159 - arm64) myarch="arm64";;
160 - ppc64) myarch="ppc64";;
161 - x32) myarch="x32";;
162 - x86) myarch="ia32";;
163 - *) myarch="${ABI}";;
164 - esac
165 -
166 - GYP_DEFINES="linux_use_gold_flags=0
167 - linux_use_bundled_binutils=0
168 - linux_use_bundled_gold=0" \
169 - "${PYTHON}" configure \
170 - --prefix="${EPREFIX}"/usr \
171 - --dest-cpu=${myarch} \
172 - $(use_with systemtap dtrace) \
173 - "${myconf[@]}" || die
174 -}
175 -
176 -src_compile() {
177 - emake -C out mksnapshot
178 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
179 - emake -C out
180 -}
181 -
182 -src_install() {
183 - local LIBDIR="${ED}/usr/$(get_libdir)"
184 - emake install DESTDIR="${D}"
185 - pax-mark -m "${ED}"usr/bin/node
186 -
187 - # set up a symlink structure that node-gyp expects..
188 - dodir /usr/include/node/deps/{v8,uv}
189 - dosym . /usr/include/node/src
190 - for var in deps/{uv,v8}/include; do
191 - dosym ../.. /usr/include/node/${var}
192 - done
193 -
194 - if use doc; then
195 - # Patch docs to make them offline readable
196 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
197 - sed -i '/fonts.googleapis.com/ d' $i;
198 - done
199 - # Install docs
200 - docinto html
201 - dodoc -r "${S}"/doc/*
202 - fi
203 -
204 - if use npm; then
205 - dodir /etc/npm
206 -
207 - # Install bash completion for `npm`
208 - # We need to temporarily replace default config path since
209 - # npm otherwise tries to write outside of the sandbox
210 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
211 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
212 - local tmp_npm_completion_file="$(emktemp)"
213 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
214 - newbashcomp "${tmp_npm_completion_file}" npm
215 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
216 -
217 - # Move man pages
218 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
219 -
220 - # Clean up
221 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
222 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
223 -
224 - local find_exp="-or -name"
225 - local find_name=()
226 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
227 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
228 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
229 - find_name+=( ${find_exp} "${match}" )
230 - done
231 -
232 - # Remove various development and/or inappropriate files and
233 - # useless docs of dependend packages.
234 - find "${LIBDIR}"/node_modules \
235 - \( -type d -name examples \) -or \( -type f \( \
236 - -iname "LICEN?E*" \
237 - "${find_name[@]}" \
238 - \) \) -exec rm -rf "{}" \;
239 - fi
240 -
241 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
242 -}
243 -
244 -src_test() {
245 - out/${BUILDTYPE}/cctest || die
246 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
247 -}
248 -
249 -pkg_postinst() {
250 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
251 - einfo "from upstream which otherwise would have it live in /usr/etc/."
252 - einfo ""
253 - einfo "Protip: When using node-gyp to install native modules, you can"
254 - einfo "avoid having to download extras by doing the following:"
255 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
256 -}
257
258 diff --git a/net-libs/nodejs/nodejs-10.15.1.ebuild b/net-libs/nodejs/nodejs-10.15.1.ebuild
259 deleted file mode 100644
260 index 959fdfa0bf2..00000000000
261 --- a/net-libs/nodejs/nodejs-10.15.1.ebuild
262 +++ /dev/null
263 @@ -1,205 +0,0 @@
264 -# Copyright 1999-2019 Gentoo Authors
265 -# Distributed under the terms of the GNU General Public License v2
266 -
267 -EAPI=6
268 -
269 -PYTHON_COMPAT=( python2_7 )
270 -PYTHON_REQ_USE="threads"
271 -
272 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
273 -
274 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
275 -HOMEPAGE="https://nodejs.org/"
276 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
277 -
278 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
279 -SLOT="0"
280 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
281 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
282 -REQUIRED_USE="
283 - ${PYTHON_REQUIRED_USE}
284 - inspector? ( icu ssl )
285 - npm? ( ssl )
286 -"
287 -
288 -RDEPEND="
289 - >=dev-libs/libuv-1.23.2:=
290 - >=net-dns/c-ares-1.15.0
291 - >=net-libs/http-parser-2.9.0:=
292 - >=net-libs/nghttp2-1.34.0
293 - sys-libs/zlib
294 - icu? ( >=dev-libs/icu-62.1:= )
295 - ssl? ( =dev-libs/openssl-1.1.0*:0= )
296 -"
297 -DEPEND="
298 - ${RDEPEND}
299 - ${PYTHON_DEPS}
300 - systemtap? ( dev-util/systemtap )
301 - test? ( net-misc/curl )
302 -"
303 -PATCHES=(
304 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
305 -)
306 -S="${WORKDIR}/node-v${PV}"
307 -
308 -pkg_pretend() {
309 - (use x86 && ! use cpu_flags_x86_sse2) && \
310 - die "Your CPU doesn't support the required SSE2 instruction."
311 -
312 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
313 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
314 -}
315 -
316 -src_prepare() {
317 - tc-export CC CXX PKG_CONFIG
318 - export V=1
319 - export BUILDTYPE=Release
320 -
321 - # fix compilation on Darwin
322 - # https://code.google.com/p/gyp/issues/detail?id=260
323 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
324 -
325 - # make sure we use python2.* while using gyp
326 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
327 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
328 -
329 - # less verbose install output (stating the same as portage, basically)
330 - sed -i -e "/print/d" tools/install.py || die
331 -
332 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
333 - local LIBDIR=$(get_libdir)
334 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
335 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
336 -
337 - # Avoid writing a depfile, not useful
338 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
339 -
340 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
341 -
342 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
343 - # seem sandbox related either (invoking it from a sandbox works fine).
344 - # The issue is that no stdin handle is openened when asked for one.
345 - # It doesn't really belong upstream , so it'll just be removed until someone
346 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
347 - rm test/parallel/test-stdout-close-unref.js || die
348 -
349 - # debug builds. change install path, remove optimisations and override buildtype
350 - if use debug; then
351 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
352 - BUILDTYPE=Debug
353 - fi
354 -
355 - default
356 -}
357 -
358 -src_configure() {
359 - local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
360 - use debug && myconf+=( --debug )
361 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
362 - use inspector || myconf+=( --without-inspector )
363 - use npm || myconf+=( --without-npm )
364 - use snapshot && myconf+=( --with-snapshot )
365 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
366 -
367 - local myarch=""
368 - case ${ABI} in
369 - amd64) myarch="x64";;
370 - arm) myarch="arm";;
371 - arm64) myarch="arm64";;
372 - ppc64) myarch="ppc64";;
373 - x32) myarch="x32";;
374 - x86) myarch="ia32";;
375 - *) myarch="${ABI}";;
376 - esac
377 -
378 - GYP_DEFINES="linux_use_gold_flags=0
379 - linux_use_bundled_binutils=0
380 - linux_use_bundled_gold=0" \
381 - "${PYTHON}" configure \
382 - --prefix="${EPREFIX}"/usr \
383 - --dest-cpu=${myarch} \
384 - $(use_with systemtap dtrace) \
385 - "${myconf[@]}" || die
386 -}
387 -
388 -src_compile() {
389 - emake -C out mksnapshot
390 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
391 - emake -C out
392 -}
393 -
394 -src_install() {
395 - local LIBDIR="${ED}/usr/$(get_libdir)"
396 - emake install DESTDIR="${D}"
397 - pax-mark -m "${ED}"usr/bin/node
398 -
399 - # set up a symlink structure that node-gyp expects..
400 - dodir /usr/include/node/deps/{v8,uv}
401 - dosym . /usr/include/node/src
402 - for var in deps/{uv,v8}/include; do
403 - dosym ../.. /usr/include/node/${var}
404 - done
405 -
406 - if use doc; then
407 - # Patch docs to make them offline readable
408 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
409 - sed -i '/fonts.googleapis.com/ d' $i;
410 - done
411 - # Install docs
412 - docinto html
413 - dodoc -r "${S}"/doc/*
414 - fi
415 -
416 - if use npm; then
417 - dodir /etc/npm
418 -
419 - # Install bash completion for `npm`
420 - # We need to temporarily replace default config path since
421 - # npm otherwise tries to write outside of the sandbox
422 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
423 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
424 - local tmp_npm_completion_file="$(emktemp)"
425 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
426 - newbashcomp "${tmp_npm_completion_file}" npm
427 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
428 -
429 - # Move man pages
430 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
431 -
432 - # Clean up
433 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
434 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
435 -
436 - local find_exp="-or -name"
437 - local find_name=()
438 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
439 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
440 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
441 - find_name+=( ${find_exp} "${match}" )
442 - done
443 -
444 - # Remove various development and/or inappropriate files and
445 - # useless docs of dependend packages.
446 - find "${LIBDIR}"/node_modules \
447 - \( -type d -name examples \) -or \( -type f \( \
448 - -iname "LICEN?E*" \
449 - "${find_name[@]}" \
450 - \) \) -exec rm -rf "{}" \;
451 - fi
452 -
453 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
454 -}
455 -
456 -src_test() {
457 - out/${BUILDTYPE}/cctest || die
458 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
459 -}
460 -
461 -pkg_postinst() {
462 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
463 - einfo "from upstream which otherwise would have it live in /usr/etc/."
464 - einfo ""
465 - einfo "Protip: When using node-gyp to install native modules, you can"
466 - einfo "avoid having to download extras by doing the following:"
467 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
468 -}
469
470 diff --git a/net-libs/nodejs/nodejs-11.10.0.ebuild b/net-libs/nodejs/nodejs-11.10.0.ebuild
471 deleted file mode 100644
472 index c4b2df6f8bd..00000000000
473 --- a/net-libs/nodejs/nodejs-11.10.0.ebuild
474 +++ /dev/null
475 @@ -1,210 +0,0 @@
476 -# Copyright 1999-2019 Gentoo Authors
477 -# Distributed under the terms of the GNU General Public License v2
478 -
479 -EAPI=6
480 -
481 -PYTHON_COMPAT=( python2_7 )
482 -PYTHON_REQ_USE="threads"
483 -
484 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
485 -
486 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
487 -HOMEPAGE="https://nodejs.org/"
488 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
489 -
490 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
491 -SLOT="0"
492 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
493 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
494 -REQUIRED_USE="
495 - ${PYTHON_REQUIRED_USE}
496 - inspector? ( icu ssl )
497 - npm? ( ssl )
498 -"
499 -
500 -RDEPEND="
501 - >=dev-libs/libuv-1.26.0:=
502 - >=net-dns/c-ares-1.15.0
503 - >=net-libs/http-parser-2.9.0:=
504 - >=net-libs/nghttp2-1.34.0
505 - sys-libs/zlib
506 - icu? ( >=dev-libs/icu-63.1:= )
507 - ssl? ( =dev-libs/openssl-1.1.1*:0= )
508 -"
509 -DEPEND="
510 - ${RDEPEND}
511 - ${PYTHON_DEPS}
512 - systemtap? ( dev-util/systemtap )
513 - test? ( net-misc/curl )
514 -"
515 -PATCHES=(
516 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
517 - "${FILESDIR}"/${PN}-11.4.0-stdarg_h.patch
518 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
519 -)
520 -S="${WORKDIR}/node-v${PV}"
521 -
522 -pkg_pretend() {
523 - (use x86 && ! use cpu_flags_x86_sse2) && \
524 - die "Your CPU doesn't support the required SSE2 instruction."
525 -
526 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
527 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
528 -}
529 -
530 -src_prepare() {
531 - tc-export CC CXX PKG_CONFIG
532 - export V=1
533 - export BUILDTYPE=Release
534 -
535 - # fix compilation on Darwin
536 - # https://code.google.com/p/gyp/issues/detail?id=260
537 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
538 -
539 - # make sure we use python2.* while using gyp
540 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
541 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
542 -
543 - # less verbose install output (stating the same as portage, basically)
544 - sed -i -e "/print/d" tools/install.py || die
545 -
546 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
547 - local LIBDIR=$(get_libdir)
548 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
549 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
550 -
551 - # Avoid writing a depfile, not useful
552 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
553 -
554 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
555 -
556 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
557 - # seem sandbox related either (invoking it from a sandbox works fine).
558 - # The issue is that no stdin handle is openened when asked for one.
559 - # It doesn't really belong upstream , so it'll just be removed until someone
560 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
561 - rm test/parallel/test-stdout-close-unref.js || die
562 -
563 - # debug builds. change install path, remove optimisations and override buildtype
564 - if use debug; then
565 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
566 - BUILDTYPE=Debug
567 - fi
568 -
569 - default
570 -}
571 -
572 -src_configure() {
573 - local myconf=(
574 - --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2
575 - --shared-zlib
576 - )
577 - use debug && myconf+=( --debug )
578 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
579 - use inspector || myconf+=( --without-inspector )
580 - use npm || myconf+=( --without-npm )
581 - use snapshot && myconf+=( --with-snapshot )
582 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
583 -
584 - local myarch=""
585 - case ${ABI} in
586 - amd64) myarch="x64";;
587 - arm) myarch="arm";;
588 - arm64) myarch="arm64";;
589 - ppc64) myarch="ppc64";;
590 - x32) myarch="x32";;
591 - x86) myarch="ia32";;
592 - *) myarch="${ABI}";;
593 - esac
594 -
595 - GYP_DEFINES="linux_use_gold_flags=0
596 - linux_use_bundled_binutils=0
597 - linux_use_bundled_gold=0" \
598 - "${PYTHON}" configure \
599 - --prefix="${EPREFIX}"/usr \
600 - --dest-cpu=${myarch} \
601 - $(use_with systemtap dtrace) \
602 - "${myconf[@]}" || die
603 -}
604 -
605 -src_compile() {
606 - emake -C out mksnapshot
607 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
608 - emake -C out
609 -}
610 -
611 -src_install() {
612 - local LIBDIR="${ED}/usr/$(get_libdir)"
613 - emake install DESTDIR="${D}"
614 - pax-mark -m "${ED}"usr/bin/node
615 -
616 - # set up a symlink structure that node-gyp expects..
617 - dodir /usr/include/node/deps/{v8,uv}
618 - dosym . /usr/include/node/src
619 - for var in deps/{uv,v8}/include; do
620 - dosym ../.. /usr/include/node/${var}
621 - done
622 -
623 - if use doc; then
624 - # Patch docs to make them offline readable
625 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
626 - sed -i '/fonts.googleapis.com/ d' $i;
627 - done
628 - # Install docs
629 - docinto html
630 - dodoc -r "${S}"/doc/*
631 - fi
632 -
633 - if use npm; then
634 - dodir /etc/npm
635 -
636 - # Install bash completion for `npm`
637 - # We need to temporarily replace default config path since
638 - # npm otherwise tries to write outside of the sandbox
639 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
640 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
641 - local tmp_npm_completion_file="$(emktemp)"
642 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
643 - newbashcomp "${tmp_npm_completion_file}" npm
644 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
645 -
646 - # Move man pages
647 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
648 -
649 - # Clean up
650 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
651 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
652 -
653 - local find_exp="-or -name"
654 - local find_name=()
655 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
656 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
657 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
658 - find_name+=( ${find_exp} "${match}" )
659 - done
660 -
661 - # Remove various development and/or inappropriate files and
662 - # useless docs of dependend packages.
663 - find "${LIBDIR}"/node_modules \
664 - \( -type d -name examples \) -or \( -type f \( \
665 - -iname "LICEN?E*" \
666 - "${find_name[@]}" \
667 - \) \) -exec rm -rf "{}" \;
668 - fi
669 -
670 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
671 -}
672 -
673 -src_test() {
674 - out/${BUILDTYPE}/cctest || die
675 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
676 -}
677 -
678 -pkg_postinst() {
679 - elog "The global npm config lives in /etc/npm. This deviates slightly"
680 - elog "from upstream which otherwise would have it live in /usr/etc/."
681 - elog ""
682 - elog "Protip: When using node-gyp to install native modules, you can"
683 - elog "avoid having to download extras by doing the following:"
684 - elog "$ node-gyp --nodedir /usr/include/node <command>"
685 -}
686
687 diff --git a/net-libs/nodejs/nodejs-11.7.0.ebuild b/net-libs/nodejs/nodejs-11.7.0.ebuild
688 deleted file mode 100644
689 index 95473e1a6ce..00000000000
690 --- a/net-libs/nodejs/nodejs-11.7.0.ebuild
691 +++ /dev/null
692 @@ -1,210 +0,0 @@
693 -# Copyright 1999-2019 Gentoo Authors
694 -# Distributed under the terms of the GNU General Public License v2
695 -
696 -EAPI=6
697 -
698 -PYTHON_COMPAT=( python2_7 )
699 -PYTHON_REQ_USE="threads"
700 -
701 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
702 -
703 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
704 -HOMEPAGE="https://nodejs.org/"
705 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
706 -
707 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
708 -SLOT="0"
709 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
710 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
711 -REQUIRED_USE="
712 - ${PYTHON_REQUIRED_USE}
713 - inspector? ( icu ssl )
714 - npm? ( ssl )
715 -"
716 -
717 -RDEPEND="
718 - >=dev-libs/libuv-1.24.1:=
719 - >=net-dns/c-ares-1.15.0
720 - >=net-libs/http-parser-2.9.0:=
721 - >=net-libs/nghttp2-1.34.0
722 - sys-libs/zlib
723 - icu? ( >=dev-libs/icu-63.1:= )
724 - ssl? ( =dev-libs/openssl-1.1.0*:0= )
725 -"
726 -DEPEND="
727 - ${RDEPEND}
728 - ${PYTHON_DEPS}
729 - systemtap? ( dev-util/systemtap )
730 - test? ( net-misc/curl )
731 -"
732 -PATCHES=(
733 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
734 - "${FILESDIR}"/${PN}-11.4.0-stdarg_h.patch
735 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
736 -)
737 -S="${WORKDIR}/node-v${PV}"
738 -
739 -pkg_pretend() {
740 - (use x86 && ! use cpu_flags_x86_sse2) && \
741 - die "Your CPU doesn't support the required SSE2 instruction."
742 -
743 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
744 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
745 -}
746 -
747 -src_prepare() {
748 - tc-export CC CXX PKG_CONFIG
749 - export V=1
750 - export BUILDTYPE=Release
751 -
752 - # fix compilation on Darwin
753 - # https://code.google.com/p/gyp/issues/detail?id=260
754 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
755 -
756 - # make sure we use python2.* while using gyp
757 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
758 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
759 -
760 - # less verbose install output (stating the same as portage, basically)
761 - sed -i -e "/print/d" tools/install.py || die
762 -
763 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
764 - local LIBDIR=$(get_libdir)
765 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
766 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
767 -
768 - # Avoid writing a depfile, not useful
769 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
770 -
771 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
772 -
773 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
774 - # seem sandbox related either (invoking it from a sandbox works fine).
775 - # The issue is that no stdin handle is openened when asked for one.
776 - # It doesn't really belong upstream , so it'll just be removed until someone
777 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
778 - rm test/parallel/test-stdout-close-unref.js || die
779 -
780 - # debug builds. change install path, remove optimisations and override buildtype
781 - if use debug; then
782 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
783 - BUILDTYPE=Debug
784 - fi
785 -
786 - default
787 -}
788 -
789 -src_configure() {
790 - local myconf=(
791 - --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2
792 - --shared-zlib
793 - )
794 - use debug && myconf+=( --debug )
795 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
796 - use inspector || myconf+=( --without-inspector )
797 - use npm || myconf+=( --without-npm )
798 - use snapshot && myconf+=( --with-snapshot )
799 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
800 -
801 - local myarch=""
802 - case ${ABI} in
803 - amd64) myarch="x64";;
804 - arm) myarch="arm";;
805 - arm64) myarch="arm64";;
806 - ppc64) myarch="ppc64";;
807 - x32) myarch="x32";;
808 - x86) myarch="ia32";;
809 - *) myarch="${ABI}";;
810 - esac
811 -
812 - GYP_DEFINES="linux_use_gold_flags=0
813 - linux_use_bundled_binutils=0
814 - linux_use_bundled_gold=0" \
815 - "${PYTHON}" configure \
816 - --prefix="${EPREFIX}"/usr \
817 - --dest-cpu=${myarch} \
818 - $(use_with systemtap dtrace) \
819 - "${myconf[@]}" || die
820 -}
821 -
822 -src_compile() {
823 - emake -C out mksnapshot
824 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
825 - emake -C out
826 -}
827 -
828 -src_install() {
829 - local LIBDIR="${ED}/usr/$(get_libdir)"
830 - emake install DESTDIR="${D}"
831 - pax-mark -m "${ED}"usr/bin/node
832 -
833 - # set up a symlink structure that node-gyp expects..
834 - dodir /usr/include/node/deps/{v8,uv}
835 - dosym . /usr/include/node/src
836 - for var in deps/{uv,v8}/include; do
837 - dosym ../.. /usr/include/node/${var}
838 - done
839 -
840 - if use doc; then
841 - # Patch docs to make them offline readable
842 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
843 - sed -i '/fonts.googleapis.com/ d' $i;
844 - done
845 - # Install docs
846 - docinto html
847 - dodoc -r "${S}"/doc/*
848 - fi
849 -
850 - if use npm; then
851 - dodir /etc/npm
852 -
853 - # Install bash completion for `npm`
854 - # We need to temporarily replace default config path since
855 - # npm otherwise tries to write outside of the sandbox
856 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
857 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
858 - local tmp_npm_completion_file="$(emktemp)"
859 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
860 - newbashcomp "${tmp_npm_completion_file}" npm
861 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
862 -
863 - # Move man pages
864 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
865 -
866 - # Clean up
867 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
868 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
869 -
870 - local find_exp="-or -name"
871 - local find_name=()
872 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
873 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
874 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
875 - find_name+=( ${find_exp} "${match}" )
876 - done
877 -
878 - # Remove various development and/or inappropriate files and
879 - # useless docs of dependend packages.
880 - find "${LIBDIR}"/node_modules \
881 - \( -type d -name examples \) -or \( -type f \( \
882 - -iname "LICEN?E*" \
883 - "${find_name[@]}" \
884 - \) \) -exec rm -rf "{}" \;
885 - fi
886 -
887 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
888 -}
889 -
890 -src_test() {
891 - out/${BUILDTYPE}/cctest || die
892 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
893 -}
894 -
895 -pkg_postinst() {
896 - elog "The global npm config lives in /etc/npm. This deviates slightly"
897 - elog "from upstream which otherwise would have it live in /usr/etc/."
898 - elog ""
899 - elog "Protip: When using node-gyp to install native modules, you can"
900 - elog "avoid having to download extras by doing the following:"
901 - elog "$ node-gyp --nodedir /usr/include/node <command>"
902 -}
903
904 diff --git a/net-libs/nodejs/nodejs-11.8.0.ebuild b/net-libs/nodejs/nodejs-11.8.0.ebuild
905 deleted file mode 100644
906 index b3d856deb7f..00000000000
907 --- a/net-libs/nodejs/nodejs-11.8.0.ebuild
908 +++ /dev/null
909 @@ -1,210 +0,0 @@
910 -# Copyright 1999-2019 Gentoo Authors
911 -# Distributed under the terms of the GNU General Public License v2
912 -
913 -EAPI=6
914 -
915 -PYTHON_COMPAT=( python2_7 )
916 -PYTHON_REQ_USE="threads"
917 -
918 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
919 -
920 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
921 -HOMEPAGE="https://nodejs.org/"
922 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
923 -
924 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
925 -SLOT="0"
926 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
927 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
928 -REQUIRED_USE="
929 - ${PYTHON_REQUIRED_USE}
930 - inspector? ( icu ssl )
931 - npm? ( ssl )
932 -"
933 -
934 -RDEPEND="
935 - >=dev-libs/libuv-1.25.0:=
936 - >=net-dns/c-ares-1.15.0
937 - >=net-libs/http-parser-2.9.0:=
938 - >=net-libs/nghttp2-1.34.0
939 - sys-libs/zlib
940 - icu? ( >=dev-libs/icu-63.1:= )
941 - ssl? ( =dev-libs/openssl-1.1.0*:0= )
942 -"
943 -DEPEND="
944 - ${RDEPEND}
945 - ${PYTHON_DEPS}
946 - systemtap? ( dev-util/systemtap )
947 - test? ( net-misc/curl )
948 -"
949 -PATCHES=(
950 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
951 - "${FILESDIR}"/${PN}-11.4.0-stdarg_h.patch
952 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
953 -)
954 -S="${WORKDIR}/node-v${PV}"
955 -
956 -pkg_pretend() {
957 - (use x86 && ! use cpu_flags_x86_sse2) && \
958 - die "Your CPU doesn't support the required SSE2 instruction."
959 -
960 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
961 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
962 -}
963 -
964 -src_prepare() {
965 - tc-export CC CXX PKG_CONFIG
966 - export V=1
967 - export BUILDTYPE=Release
968 -
969 - # fix compilation on Darwin
970 - # https://code.google.com/p/gyp/issues/detail?id=260
971 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
972 -
973 - # make sure we use python2.* while using gyp
974 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
975 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
976 -
977 - # less verbose install output (stating the same as portage, basically)
978 - sed -i -e "/print/d" tools/install.py || die
979 -
980 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
981 - local LIBDIR=$(get_libdir)
982 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
983 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
984 -
985 - # Avoid writing a depfile, not useful
986 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
987 -
988 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
989 -
990 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
991 - # seem sandbox related either (invoking it from a sandbox works fine).
992 - # The issue is that no stdin handle is openened when asked for one.
993 - # It doesn't really belong upstream , so it'll just be removed until someone
994 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
995 - rm test/parallel/test-stdout-close-unref.js || die
996 -
997 - # debug builds. change install path, remove optimisations and override buildtype
998 - if use debug; then
999 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1000 - BUILDTYPE=Debug
1001 - fi
1002 -
1003 - default
1004 -}
1005 -
1006 -src_configure() {
1007 - local myconf=(
1008 - --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2
1009 - --shared-zlib
1010 - )
1011 - use debug && myconf+=( --debug )
1012 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1013 - use inspector || myconf+=( --without-inspector )
1014 - use npm || myconf+=( --without-npm )
1015 - use snapshot && myconf+=( --with-snapshot )
1016 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
1017 -
1018 - local myarch=""
1019 - case ${ABI} in
1020 - amd64) myarch="x64";;
1021 - arm) myarch="arm";;
1022 - arm64) myarch="arm64";;
1023 - ppc64) myarch="ppc64";;
1024 - x32) myarch="x32";;
1025 - x86) myarch="ia32";;
1026 - *) myarch="${ABI}";;
1027 - esac
1028 -
1029 - GYP_DEFINES="linux_use_gold_flags=0
1030 - linux_use_bundled_binutils=0
1031 - linux_use_bundled_gold=0" \
1032 - "${PYTHON}" configure \
1033 - --prefix="${EPREFIX}"/usr \
1034 - --dest-cpu=${myarch} \
1035 - $(use_with systemtap dtrace) \
1036 - "${myconf[@]}" || die
1037 -}
1038 -
1039 -src_compile() {
1040 - emake -C out mksnapshot
1041 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1042 - emake -C out
1043 -}
1044 -
1045 -src_install() {
1046 - local LIBDIR="${ED}/usr/$(get_libdir)"
1047 - emake install DESTDIR="${D}"
1048 - pax-mark -m "${ED}"usr/bin/node
1049 -
1050 - # set up a symlink structure that node-gyp expects..
1051 - dodir /usr/include/node/deps/{v8,uv}
1052 - dosym . /usr/include/node/src
1053 - for var in deps/{uv,v8}/include; do
1054 - dosym ../.. /usr/include/node/${var}
1055 - done
1056 -
1057 - if use doc; then
1058 - # Patch docs to make them offline readable
1059 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
1060 - sed -i '/fonts.googleapis.com/ d' $i;
1061 - done
1062 - # Install docs
1063 - docinto html
1064 - dodoc -r "${S}"/doc/*
1065 - fi
1066 -
1067 - if use npm; then
1068 - dodir /etc/npm
1069 -
1070 - # Install bash completion for `npm`
1071 - # We need to temporarily replace default config path since
1072 - # npm otherwise tries to write outside of the sandbox
1073 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1074 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1075 - local tmp_npm_completion_file="$(emktemp)"
1076 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1077 - newbashcomp "${tmp_npm_completion_file}" npm
1078 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1079 -
1080 - # Move man pages
1081 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1082 -
1083 - # Clean up
1084 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1085 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1086 -
1087 - local find_exp="-or -name"
1088 - local find_name=()
1089 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1090 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1091 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1092 - find_name+=( ${find_exp} "${match}" )
1093 - done
1094 -
1095 - # Remove various development and/or inappropriate files and
1096 - # useless docs of dependend packages.
1097 - find "${LIBDIR}"/node_modules \
1098 - \( -type d -name examples \) -or \( -type f \( \
1099 - -iname "LICEN?E*" \
1100 - "${find_name[@]}" \
1101 - \) \) -exec rm -rf "{}" \;
1102 - fi
1103 -
1104 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1105 -}
1106 -
1107 -src_test() {
1108 - out/${BUILDTYPE}/cctest || die
1109 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1110 -}
1111 -
1112 -pkg_postinst() {
1113 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1114 - elog "from upstream which otherwise would have it live in /usr/etc/."
1115 - elog ""
1116 - elog "Protip: When using node-gyp to install native modules, you can"
1117 - elog "avoid having to download extras by doing the following:"
1118 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1119 -}
1120
1121 diff --git a/net-libs/nodejs/nodejs-11.9.0.ebuild b/net-libs/nodejs/nodejs-11.9.0.ebuild
1122 deleted file mode 100644
1123 index a72d4a39354..00000000000
1124 --- a/net-libs/nodejs/nodejs-11.9.0.ebuild
1125 +++ /dev/null
1126 @@ -1,210 +0,0 @@
1127 -# Copyright 1999-2019 Gentoo Authors
1128 -# Distributed under the terms of the GNU General Public License v2
1129 -
1130 -EAPI=6
1131 -
1132 -PYTHON_COMPAT=( python2_7 )
1133 -PYTHON_REQ_USE="threads"
1134 -
1135 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
1136 -
1137 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1138 -HOMEPAGE="https://nodejs.org/"
1139 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
1140 -
1141 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1142 -SLOT="0"
1143 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1144 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
1145 -REQUIRED_USE="
1146 - ${PYTHON_REQUIRED_USE}
1147 - inspector? ( icu ssl )
1148 - npm? ( ssl )
1149 -"
1150 -
1151 -RDEPEND="
1152 - >=dev-libs/libuv-1.25.0:=
1153 - >=net-dns/c-ares-1.15.0
1154 - >=net-libs/http-parser-2.9.0:=
1155 - >=net-libs/nghttp2-1.34.0
1156 - sys-libs/zlib
1157 - icu? ( >=dev-libs/icu-63.1:= )
1158 - ssl? ( =dev-libs/openssl-1.1.1*:0= )
1159 -"
1160 -DEPEND="
1161 - ${RDEPEND}
1162 - ${PYTHON_DEPS}
1163 - systemtap? ( dev-util/systemtap )
1164 - test? ( net-misc/curl )
1165 -"
1166 -PATCHES=(
1167 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1168 - "${FILESDIR}"/${PN}-11.4.0-stdarg_h.patch
1169 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
1170 -)
1171 -S="${WORKDIR}/node-v${PV}"
1172 -
1173 -pkg_pretend() {
1174 - (use x86 && ! use cpu_flags_x86_sse2) && \
1175 - die "Your CPU doesn't support the required SSE2 instruction."
1176 -
1177 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1178 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1179 -}
1180 -
1181 -src_prepare() {
1182 - tc-export CC CXX PKG_CONFIG
1183 - export V=1
1184 - export BUILDTYPE=Release
1185 -
1186 - # fix compilation on Darwin
1187 - # https://code.google.com/p/gyp/issues/detail?id=260
1188 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1189 -
1190 - # make sure we use python2.* while using gyp
1191 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
1192 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
1193 -
1194 - # less verbose install output (stating the same as portage, basically)
1195 - sed -i -e "/print/d" tools/install.py || die
1196 -
1197 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1198 - local LIBDIR=$(get_libdir)
1199 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1200 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1201 -
1202 - # Avoid writing a depfile, not useful
1203 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1204 -
1205 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
1206 -
1207 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1208 - # seem sandbox related either (invoking it from a sandbox works fine).
1209 - # The issue is that no stdin handle is openened when asked for one.
1210 - # It doesn't really belong upstream , so it'll just be removed until someone
1211 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1212 - rm test/parallel/test-stdout-close-unref.js || die
1213 -
1214 - # debug builds. change install path, remove optimisations and override buildtype
1215 - if use debug; then
1216 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1217 - BUILDTYPE=Debug
1218 - fi
1219 -
1220 - default
1221 -}
1222 -
1223 -src_configure() {
1224 - local myconf=(
1225 - --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2
1226 - --shared-zlib
1227 - )
1228 - use debug && myconf+=( --debug )
1229 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1230 - use inspector || myconf+=( --without-inspector )
1231 - use npm || myconf+=( --without-npm )
1232 - use snapshot && myconf+=( --with-snapshot )
1233 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
1234 -
1235 - local myarch=""
1236 - case ${ABI} in
1237 - amd64) myarch="x64";;
1238 - arm) myarch="arm";;
1239 - arm64) myarch="arm64";;
1240 - ppc64) myarch="ppc64";;
1241 - x32) myarch="x32";;
1242 - x86) myarch="ia32";;
1243 - *) myarch="${ABI}";;
1244 - esac
1245 -
1246 - GYP_DEFINES="linux_use_gold_flags=0
1247 - linux_use_bundled_binutils=0
1248 - linux_use_bundled_gold=0" \
1249 - "${PYTHON}" configure \
1250 - --prefix="${EPREFIX}"/usr \
1251 - --dest-cpu=${myarch} \
1252 - $(use_with systemtap dtrace) \
1253 - "${myconf[@]}" || die
1254 -}
1255 -
1256 -src_compile() {
1257 - emake -C out mksnapshot
1258 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1259 - emake -C out
1260 -}
1261 -
1262 -src_install() {
1263 - local LIBDIR="${ED}/usr/$(get_libdir)"
1264 - emake install DESTDIR="${D}"
1265 - pax-mark -m "${ED}"usr/bin/node
1266 -
1267 - # set up a symlink structure that node-gyp expects..
1268 - dodir /usr/include/node/deps/{v8,uv}
1269 - dosym . /usr/include/node/src
1270 - for var in deps/{uv,v8}/include; do
1271 - dosym ../.. /usr/include/node/${var}
1272 - done
1273 -
1274 - if use doc; then
1275 - # Patch docs to make them offline readable
1276 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
1277 - sed -i '/fonts.googleapis.com/ d' $i;
1278 - done
1279 - # Install docs
1280 - docinto html
1281 - dodoc -r "${S}"/doc/*
1282 - fi
1283 -
1284 - if use npm; then
1285 - dodir /etc/npm
1286 -
1287 - # Install bash completion for `npm`
1288 - # We need to temporarily replace default config path since
1289 - # npm otherwise tries to write outside of the sandbox
1290 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1291 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1292 - local tmp_npm_completion_file="$(emktemp)"
1293 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1294 - newbashcomp "${tmp_npm_completion_file}" npm
1295 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1296 -
1297 - # Move man pages
1298 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1299 -
1300 - # Clean up
1301 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1302 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1303 -
1304 - local find_exp="-or -name"
1305 - local find_name=()
1306 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1307 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1308 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1309 - find_name+=( ${find_exp} "${match}" )
1310 - done
1311 -
1312 - # Remove various development and/or inappropriate files and
1313 - # useless docs of dependend packages.
1314 - find "${LIBDIR}"/node_modules \
1315 - \( -type d -name examples \) -or \( -type f \( \
1316 - -iname "LICEN?E*" \
1317 - "${find_name[@]}" \
1318 - \) \) -exec rm -rf "{}" \;
1319 - fi
1320 -
1321 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1322 -}
1323 -
1324 -src_test() {
1325 - out/${BUILDTYPE}/cctest || die
1326 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1327 -}
1328 -
1329 -pkg_postinst() {
1330 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1331 - elog "from upstream which otherwise would have it live in /usr/etc/."
1332 - elog ""
1333 - elog "Protip: When using node-gyp to install native modules, you can"
1334 - elog "avoid having to download extras by doing the following:"
1335 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1336 -}
1337
1338 diff --git a/net-libs/nodejs/nodejs-6.16.0.ebuild b/net-libs/nodejs/nodejs-6.16.0.ebuild
1339 deleted file mode 100644
1340 index 8db127221fd..00000000000
1341 --- a/net-libs/nodejs/nodejs-6.16.0.ebuild
1342 +++ /dev/null
1343 @@ -1,200 +0,0 @@
1344 -# Copyright 1999-2019 Gentoo Authors
1345 -# Distributed under the terms of the GNU General Public License v2
1346 -
1347 -EAPI=6
1348 -
1349 -PYTHON_COMPAT=( python2_7 )
1350 -PYTHON_REQ_USE="threads"
1351 -
1352 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
1353 -
1354 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1355 -HOMEPAGE="https://nodejs.org/"
1356 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
1357 -
1358 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1359 -SLOT="0"
1360 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
1361 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl test"
1362 -REQUIRED_USE="
1363 - ${PYTHON_REQUIRED_USE}
1364 - inspector? ( icu ssl )
1365 -"
1366 -
1367 -RDEPEND="
1368 - >=dev-libs/libuv-1.16.1:=
1369 - >=net-libs/http-parser-2.9.0:=
1370 - sys-libs/zlib
1371 - icu? ( >=dev-libs/icu-58.2:= )
1372 - ssl? ( >=dev-libs/openssl-1.0.2n:0=[-bindist] )
1373 -"
1374 -DEPEND="
1375 - ${RDEPEND}
1376 - ${PYTHON_DEPS}
1377 - test? ( net-misc/curl )
1378 -"
1379 -PATCHES=(
1380 - "${FILESDIR}"/gentoo-global-npm-config.patch
1381 -)
1382 -S="${WORKDIR}/node-v${PV}"
1383 -
1384 -pkg_pretend() {
1385 - (use x86 && ! use cpu_flags_x86_sse2) && \
1386 - die "Your CPU doesn't support the required SSE2 instruction."
1387 -
1388 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1389 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1390 -}
1391 -
1392 -src_prepare() {
1393 - tc-export CC CXX PKG_CONFIG
1394 - export V=1
1395 - export BUILDTYPE=Release
1396 -
1397 - # fix compilation on Darwin
1398 - # https://code.google.com/p/gyp/issues/detail?id=260
1399 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1400 -
1401 - # make sure we use python2.* while using gyp
1402 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
1403 - sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
1404 -
1405 - # less verbose install output (stating the same as portage, basically)
1406 - sed -i -e "/print/d" tools/install.py || die
1407 -
1408 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1409 - local LIBDIR=$(get_libdir)
1410 - sed -i \
1411 - -e "s|lib/|${LIBDIR}/|g" \
1412 - -e 's|share/doc/node/|share/doc/'"${PF}"'/|g' \
1413 - tools/install.py || die
1414 - sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
1415 - sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
1416 -
1417 - # Avoid writing a depfile, not useful
1418 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1419 -
1420 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1421 - # seem sandbox related either (invoking it from a sandbox works fine).
1422 - # The issue is that no stdin handle is openened when asked for one.
1423 - # It doesn't really belong upstream , so it'll just be removed until someone
1424 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1425 - rm test/parallel/test-stdout-close-unref.js || die
1426 -
1427 - # debug builds. change install path, remove optimisations and override buildtype
1428 - if use debug; then
1429 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1430 - BUILDTYPE=Debug
1431 - fi
1432 -
1433 - default
1434 -}
1435 -
1436 -src_configure() {
1437 - local myarch=""
1438 - local myconf=( --shared-libuv --shared-http-parser --shared-zlib )
1439 - use debug && myconf+=( --debug )
1440 - use icu && myconf+=( --with-intl=system-icu )
1441 - use inspector || myconf+=( --without-inspector )
1442 - use npm || myconf+=( --without-npm )
1443 - use snapshot && myconf+=( --with-snapshot )
1444 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
1445 -
1446 - case ${ABI} in
1447 - amd64) myarch="x64";;
1448 - arm) myarch="arm";;
1449 - arm64) myarch="arm64";;
1450 - ppc64) myarch="ppc64";;
1451 - x32) myarch="x32";;
1452 - x86) myarch="ia32";;
1453 - *) myarch="${ABI}";;
1454 - esac
1455 -
1456 - GYP_DEFINES="linux_use_gold_flags=0
1457 - linux_use_bundled_binutils=0
1458 - linux_use_bundled_gold=0" \
1459 - "${PYTHON}" configure \
1460 - --prefix="${EPREFIX}"/usr \
1461 - --dest-cpu=${myarch} \
1462 - --without-dtrace \
1463 - "${myconf[@]}" || die
1464 -}
1465 -
1466 -src_compile() {
1467 - emake -C out mksnapshot
1468 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1469 - emake -C out
1470 -}
1471 -
1472 -src_install() {
1473 - local LIBDIR="${ED}/usr/$(get_libdir)"
1474 - emake install DESTDIR="${D}"
1475 - pax-mark -m "${ED}"usr/bin/node
1476 -
1477 - # set up a symlink structure that node-gyp expects..
1478 - dodir /usr/include/node/deps/{v8,uv}
1479 - dosym . /usr/include/node/src
1480 - for var in deps/{uv,v8}/include; do
1481 - dosym ../.. /usr/include/node/${var}
1482 - done
1483 -
1484 - if use doc; then
1485 - # Patch docs to make them offline readable
1486 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
1487 - sed -i '/fonts.googleapis.com/ d' $i;
1488 - done
1489 - # Install docs!
1490 - dohtml -r "${S}"/doc/*
1491 - fi
1492 -
1493 - if use npm; then
1494 - dodir /etc/npm
1495 -
1496 - # Install bash completion for `npm`
1497 - # We need to temporarily replace default config path since
1498 - # npm otherwise tries to write outside of the sandbox
1499 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1500 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1501 - local tmp_npm_completion_file="$(emktemp)"
1502 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1503 - newbashcomp "${tmp_npm_completion_file}" npm
1504 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1505 -
1506 - # Move man pages
1507 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1508 -
1509 - # Clean up
1510 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1511 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1512 -
1513 - local find_exp="-or -name"
1514 - local find_name=()
1515 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1516 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1517 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1518 - find_name+=( ${find_exp} "${match}" )
1519 - done
1520 -
1521 - # Remove various development and/or inappropriate files and
1522 - # useless docs of dependend packages.
1523 - find "${LIBDIR}"/node_modules \
1524 - \( -type d -name examples \) -or \( -type f \( \
1525 - -iname "LICEN?E*" \
1526 - "${find_name[@]}" \
1527 - \) \) -exec rm -rf "{}" \;
1528 - fi
1529 -}
1530 -
1531 -src_test() {
1532 - out/${BUILDTYPE}/cctest || die
1533 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1534 -}
1535 -
1536 -pkg_postinst() {
1537 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
1538 - einfo "from upstream which otherwise would have it live in /usr/etc/."
1539 - einfo ""
1540 - einfo "Protip: When using node-gyp to install native modules, you can"
1541 - einfo "avoid having to download extras by doing the following:"
1542 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
1543 -}
1544
1545 diff --git a/net-libs/nodejs/nodejs-8.15.0.ebuild b/net-libs/nodejs/nodejs-8.15.0.ebuild
1546 deleted file mode 100644
1547 index 059aa2d524e..00000000000
1548 --- a/net-libs/nodejs/nodejs-8.15.0.ebuild
1549 +++ /dev/null
1550 @@ -1,207 +0,0 @@
1551 -# Copyright 1999-2019 Gentoo Authors
1552 -# Distributed under the terms of the GNU General Public License v2
1553 -
1554 -EAPI=6
1555 -RESTRICT="test"
1556 -
1557 -PYTHON_COMPAT=( python2_7 )
1558 -PYTHON_REQ_USE="threads"
1559 -
1560 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
1561 -
1562 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1563 -HOMEPAGE="https://nodejs.org/"
1564 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
1565 -
1566 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1567 -SLOT="0"
1568 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1569 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
1570 -REQUIRED_USE="
1571 - ${PYTHON_REQUIRED_USE}
1572 - inspector? ( icu ssl )
1573 - npm? ( ssl )
1574 -"
1575 -
1576 -RDEPEND="
1577 - >=dev-libs/libuv-1.23.2:=
1578 - >=net-dns/c-ares-1.10.1
1579 - >=net-libs/http-parser-2.9.0:=
1580 - >=net-libs/nghttp2-1.33.0
1581 - sys-libs/zlib
1582 - icu? ( >=dev-libs/icu-60.1:= )
1583 - ssl? ( =dev-libs/openssl-1.0.2*:0=[-bindist] )
1584 -"
1585 -DEPEND="
1586 - ${RDEPEND}
1587 - ${PYTHON_DEPS}
1588 - systemtap? ( dev-util/systemtap )
1589 - test? ( net-misc/curl )
1590 -"
1591 -PATCHES=(
1592 - "${FILESDIR}"/nodejs-10.3.0-global-npm-config.patch
1593 -)
1594 -S="${WORKDIR}/node-v${PV}"
1595 -
1596 -pkg_pretend() {
1597 - (use x86 && ! use cpu_flags_x86_sse2) && \
1598 - die "Your CPU doesn't support the required SSE2 instruction."
1599 -
1600 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1601 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1602 -}
1603 -
1604 -src_prepare() {
1605 - tc-export CC CXX PKG_CONFIG
1606 - export V=1
1607 - export BUILDTYPE=Release
1608 -
1609 - # fix compilation on Darwin
1610 - # https://code.google.com/p/gyp/issues/detail?id=260
1611 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1612 -
1613 - # make sure we use python2.* while using gyp
1614 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
1615 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
1616 -
1617 - # less verbose install output (stating the same as portage, basically)
1618 - sed -i -e "/print/d" tools/install.py || die
1619 -
1620 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1621 - local LIBDIR=$(get_libdir)
1622 - sed -i \
1623 - -e "s|lib/|${LIBDIR}/|g" \
1624 - -e 's|share/doc/node/|share/doc/'"${PF}"'/|g' \
1625 - tools/install.py || die
1626 -
1627 - sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die
1628 -
1629 - # Avoid writing a depfile, not useful
1630 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1631 -
1632 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
1633 -
1634 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1635 - # seem sandbox related either (invoking it from a sandbox works fine).
1636 - # The issue is that no stdin handle is openened when asked for one.
1637 - # It doesn't really belong upstream , so it'll just be removed until someone
1638 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1639 - rm test/parallel/test-stdout-close-unref.js || die
1640 -
1641 - # debug builds. change install path, remove optimisations and override buildtype
1642 - if use debug; then
1643 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1644 - BUILDTYPE=Debug
1645 - fi
1646 -
1647 - default
1648 -}
1649 -
1650 -src_configure() {
1651 - local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
1652 - use debug && myconf+=( --debug )
1653 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1654 - use inspector || myconf+=( --without-inspector )
1655 - use npm || myconf+=( --without-npm )
1656 - use snapshot && myconf+=( --with-snapshot )
1657 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
1658 -
1659 - local myarch=""
1660 - case ${ABI} in
1661 - amd64) myarch="x64";;
1662 - arm) myarch="arm";;
1663 - arm64) myarch="arm64";;
1664 - ppc64) myarch="ppc64";;
1665 - x32) myarch="x32";;
1666 - x86) myarch="ia32";;
1667 - *) myarch="${ABI}";;
1668 - esac
1669 -
1670 - GYP_DEFINES="linux_use_gold_flags=0
1671 - linux_use_bundled_binutils=0
1672 - linux_use_bundled_gold=0" \
1673 - "${PYTHON}" configure \
1674 - --prefix="${EPREFIX}"/usr \
1675 - --dest-cpu=${myarch} \
1676 - $(use_with systemtap dtrace) \
1677 - "${myconf[@]}" || die
1678 -}
1679 -
1680 -src_compile() {
1681 - emake -C out mksnapshot
1682 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1683 - emake -C out
1684 -}
1685 -
1686 -src_test() {
1687 - out/${BUILDTYPE}/cctest || die
1688 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1689 -}
1690 -
1691 -src_install() {
1692 - local LIBDIR="${ED}/usr/$(get_libdir)"
1693 - emake install DESTDIR="${D}"
1694 - pax-mark -m "${ED}"usr/bin/node
1695 -
1696 - # set up a symlink structure that node-gyp expects..
1697 - dodir /usr/include/node/deps/{v8,uv}
1698 - dosym . /usr/include/node/src
1699 - for var in deps/{uv,v8}/include; do
1700 - dosym ../.. /usr/include/node/${var}
1701 - done
1702 -
1703 - if use doc; then
1704 - # Patch docs to make them offline readable
1705 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
1706 - sed -i '/fonts.googleapis.com/ d' $i;
1707 - done
1708 - # Install docs
1709 - dodoc -r "${S}"/doc/*
1710 - fi
1711 -
1712 - if use npm; then
1713 - dodir /etc/npm
1714 -
1715 - # Install bash completion for `npm`
1716 - # We need to temporarily replace default config path since
1717 - # npm otherwise tries to write outside of the sandbox
1718 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1719 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1720 - local tmp_npm_completion_file="$(emktemp)"
1721 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1722 - newbashcomp "${tmp_npm_completion_file}" npm
1723 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1724 -
1725 - # Move man pages
1726 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1727 -
1728 - # Clean up
1729 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1730 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1731 -
1732 - local find_exp="-or -name"
1733 - local find_name=()
1734 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1735 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1736 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1737 - find_name+=( ${find_exp} "${match}" )
1738 - done
1739 -
1740 - # Remove various development and/or inappropriate files and
1741 - # useless docs of dependend packages.
1742 - find "${LIBDIR}"/node_modules \
1743 - \( -type d -name examples \) -or \( -type f \( \
1744 - -iname "LICEN?E*" \
1745 - "${find_name[@]}" \
1746 - \) \) -exec rm -rf "{}" \;
1747 - fi
1748 -}
1749 -
1750 -pkg_postinst() {
1751 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
1752 - einfo "from upstream which otherwise would have it live in /usr/etc/."
1753 - einfo ""
1754 - einfo "Protip: When using node-gyp to install native modules, you can"
1755 - einfo "avoid having to download extras by doing the following:"
1756 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
1757 -}