Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/
Date: Sun, 18 Nov 2018 22:12:12
Message-Id: 1542579115.1f600648e894e1466614445a0a8f84a66294b77b.whissi@gentoo
1 commit: 1f600648e894e1466614445a0a8f84a66294b77b
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 18 22:01:13 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 18 22:11:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f600648
7
8 net-libs/nodejs: drop old
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 net-libs/nodejs/Manifest | 6 -
14 net-libs/nodejs/nodejs-10.10.0.ebuild | 201 ---------------------------------
15 net-libs/nodejs/nodejs-10.11.0.ebuild | 201 ---------------------------------
16 net-libs/nodejs/nodejs-10.12.0.ebuild | 204 ----------------------------------
17 net-libs/nodejs/nodejs-10.9.0.ebuild | 201 ---------------------------------
18 net-libs/nodejs/nodejs-11.0.0.ebuild | 204 ----------------------------------
19 net-libs/nodejs/nodejs-11.1.0.ebuild | 204 ----------------------------------
20 7 files changed, 1221 deletions(-)
21
22 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
23 index 0a17b5861bd..dcd09fded2e 100644
24 --- a/net-libs/nodejs/Manifest
25 +++ b/net-libs/nodejs/Manifest
26 @@ -1,11 +1,5 @@
27 DIST node-v0.12.18.tar.gz 19842591 BLAKE2B f94f4de6e2875267be194580c645087a262b90da99f10d651a22838c041da07056df81204bb04ce8da083a080062509dcca4d1e3ac2250d651ead8a4cc025028 SHA512 6866608a43eb213f3b715ea0fcc28983fd959ab679c567a1b464f62acd936506f2bce88ea48a60209d8ef8d98259f4b47cd3434893eb4ff82a132775edb37b7b
28 -DIST node-v10.10.0.tar.xz 19960760 BLAKE2B dc16e2afba4be727c5169ac5cd77324e0e8d7270c96da141da21a175cfbd64a38f7b51b86264396f3866174abc9095f7c840303208f7193739a1970818d4ff3a SHA512 482518a72cb0bdd5d987a7855856eadaa4fecea933ff7791918edf3097588246782d86b27568c06764ef9f2bca62b64a4d65e4cbd0e934931a72dc5719db7446
29 -DIST node-v10.11.0.tar.xz 20144576 BLAKE2B 956d940554748f420589adab0f14bd6fcc6a4781cdecd537abd6eb9aa43e9cf754ef009b20d416f1ef4c9a01ef91a27a59a8c080c1c0a49a59388f75713d6286 SHA512 00a678a829de9b836e77dd0806799029b657cf000369ca653540d7e1b82c3895da43dbbfe4d3c2b3b2b1e711bf55b3835a351fad18affdd0c25dcceea8e3406c
30 -DIST node-v10.12.0.tar.xz 20185168 BLAKE2B 1a827ed08222900ef196921a57d64466fc558412bb27a26759553686c69d59d8e6686394a484156d254a01030077b09c9abfec87a7716aee06dbe9937a861efd SHA512 3b59bbe7b795e7a85520f6b4691806d8939d26cc2a5e5d22e6406d3d373ee7758da225bd25b6f6b71b105e3d7ef4c58220bfa5e558afd0cd873fbd7d6ba9efc4
31 DIST node-v10.13.0.tar.xz 20184740 BLAKE2B 4c063889341eb2aa128096466cfdc2c91631a760ec7dea3e06b30990252cf6575b96a6d61dd1ba467c8d134b75ee51c897d4ec5c8f60b64ba51d3bc4113df63c SHA512 90431414f45c858efd6ed6259916b778e29712b57bc758f12fa7d7fafe5073c85fc379e56c86795936515f4c4f772ac308d3f6d0569c46305a7d49dc55c884c8
32 -DIST node-v10.9.0.tar.xz 19987812 BLAKE2B 4a5bd257cd527500b691b15d177bde53158b5e46e710ffeaa45224bae821cfaffdf59f24ad6bdc822cf468b90c1a4422a2f82d29e1d4b2dc0f838e3e0ab5b4ac SHA512 19c7366b4c9d1e255b5ac56e974ff86b9ca87c363534b467ecc3c59e170b891e86c479a2bcda6647c6df686b018caaedea84270e848b93a4f1c80ff04af12461
33 -DIST node-v11.0.0.tar.xz 20142548 BLAKE2B 97fc14392c449abde0c2b4ef27f020ac215747a5cca327b07ed735dd9867a01f1a64bfa19a62758111b0fbdca92b5536c15d7946bf968b5c3eab9c0b55f7dd26 SHA512 232243f37a8344775b2e0302601ec23310a8915e0913dc0cb0133df75cb7aad315ca0a6d039f8f9e6ae0d9f98aa8049532d80d470cf9ea0e309f8183be870000
34 -DIST node-v11.1.0.tar.xz 20207100 BLAKE2B 7ee0912f2fe99ccd2136c6719833b54af59099a2093a8698ebad7a55d4adfc26265e1637b1933e873552c9dbb50387d14c22f6e6785e9b02e866dcca9211c4fb SHA512 faea85516db2063f32ec9c6762ede0e29c8094ea4a52e030d6842df1f42b132d86515e01602510a717c42a69a2684e3758a9f08a4236dd8dd4e0171d71db3380
35 DIST node-v11.2.0.tar.xz 20332812 BLAKE2B 2bb8cd409dc5328faa1404a36bff5c6bf554de397ce1d010886ee5fd7b15d148abb758d54c48e3f7db46e117f2e5cfe2cf8ff4565a551f1424725c75b40d4bf9 SHA512 6251706437c0344bd4994619b7fe09c36a15e99e707d36b3a3746b7b379a03a9a4758a4fc6fdc0214fbd107eef4ec39bd8b75d88ccab207d97cbf21852eb81b2
36 DIST node-v4.8.7.tar.xz 13370828 BLAKE2B b1ee93a586b66f8582783b1be50667547afe4bf48038ebc0b8148db55542cbc0520ac84ef88e4a7f453cabc245f484c32dbc238c1932bbc708791ceeb5c9d2ab SHA512 25837a31023747723b146c45984a5b2096b61c0aa43cbf45fc8ff50b4bd5079bd0bc9f1dfd3fb076817448dc5537eb93ffb2f345280b7756ba93b67ad757c696
37 DIST node-v4.9.1.tar.xz 13250164 BLAKE2B 7a689b99bb4bf507f7f21dd2c096a5766d023a8174c0f468cab37365af1920b8700da04157e1a406917790524255ef32c243a74662fd50ef7d3567d189dac9cf SHA512 690c9fdf608e5194069a10955bdd94ec87cb1c308f13bc4d2cae92fa01436ace10fadf58f2e51d477dde6c570b23edc1c71fafea79bfc9cab2903eb2fa5f87aa
38
39 diff --git a/net-libs/nodejs/nodejs-10.10.0.ebuild b/net-libs/nodejs/nodejs-10.10.0.ebuild
40 deleted file mode 100644
41 index 6590a0a5927..00000000000
42 --- a/net-libs/nodejs/nodejs-10.10.0.ebuild
43 +++ /dev/null
44 @@ -1,201 +0,0 @@
45 -# Copyright 1999-2018 Gentoo Foundation
46 -# Distributed under the terms of the GNU General Public License v2
47 -
48 -EAPI=6
49 -
50 -PYTHON_COMPAT=( python2_7 )
51 -PYTHON_REQ_USE="threads"
52 -
53 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
54 -
55 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
56 -HOMEPAGE="https://nodejs.org/"
57 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
58 -
59 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
60 -SLOT="0"
61 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
62 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
63 -REQUIRED_USE="
64 - ${PYTHON_REQUIRED_USE}
65 - inspector? ( icu ssl )
66 - npm? ( ssl )
67 -"
68 -
69 -RDEPEND="
70 - >=dev-libs/libuv-1.23.0:=
71 - >=net-libs/http-parser-2.8.0:=
72 - >=net-libs/nghttp2-1.33.0
73 - sys-libs/zlib
74 - icu? ( >=dev-libs/icu-62.1:= )
75 - ssl? ( >=dev-libs/openssl-1.1.0:0=[-bindist] )
76 -"
77 -DEPEND="
78 - ${RDEPEND}
79 - ${PYTHON_DEPS}
80 - systemtap? ( dev-util/systemtap )
81 - test? ( net-misc/curl )
82 -"
83 -S="${WORKDIR}/node-v${PV}"
84 -PATCHES=(
85 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
86 -)
87 -
88 -pkg_pretend() {
89 - (use x86 && ! use cpu_flags_x86_sse2) && \
90 - die "Your CPU doesn't support the required SSE2 instruction."
91 -
92 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
93 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
94 -}
95 -
96 -src_prepare() {
97 - tc-export CC CXX PKG_CONFIG
98 - export V=1
99 - export BUILDTYPE=Release
100 -
101 - # fix compilation on Darwin
102 - # https://code.google.com/p/gyp/issues/detail?id=260
103 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
104 -
105 - # make sure we use python2.* while using gyp
106 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
107 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
108 -
109 - # less verbose install output (stating the same as portage, basically)
110 - sed -i -e "/print/d" tools/install.py || die
111 -
112 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
113 - local LIBDIR=$(get_libdir)
114 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
115 - sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die
116 -
117 - # Avoid writing a depfile, not useful
118 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
119 -
120 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
121 -
122 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
123 - # seem sandbox related either (invoking it from a sandbox works fine).
124 - # The issue is that no stdin handle is openened when asked for one.
125 - # It doesn't really belong upstream , so it'll just be removed until someone
126 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
127 - rm test/parallel/test-stdout-close-unref.js || die
128 -
129 - # debug builds. change install path, remove optimisations and override buildtype
130 - if use debug; then
131 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
132 - BUILDTYPE=Debug
133 - fi
134 -
135 - default
136 -}
137 -
138 -src_configure() {
139 - local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
140 - use debug && myconf+=( --debug )
141 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
142 - use inspector || myconf+=( --without-inspector )
143 - use npm || myconf+=( --without-npm )
144 - use snapshot && myconf+=( --with-snapshot )
145 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
146 -
147 - local myarch=""
148 - case ${ABI} in
149 - amd64) myarch="x64";;
150 - arm) myarch="arm";;
151 - arm64) myarch="arm64";;
152 - ppc64) myarch="ppc64";;
153 - x32) myarch="x32";;
154 - x86) myarch="ia32";;
155 - *) myarch="${ABI}";;
156 - esac
157 -
158 - GYP_DEFINES="linux_use_gold_flags=0
159 - linux_use_bundled_binutils=0
160 - linux_use_bundled_gold=0" \
161 - "${PYTHON}" configure \
162 - --prefix="${EPREFIX}"/usr \
163 - --dest-cpu=${myarch} \
164 - $(use_with systemtap dtrace) \
165 - "${myconf[@]}" || die
166 -}
167 -
168 -src_compile() {
169 - emake -C out mksnapshot
170 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
171 - emake -C out
172 -}
173 -
174 -src_install() {
175 - local LIBDIR="${ED}/usr/$(get_libdir)"
176 - emake install DESTDIR="${D}"
177 - pax-mark -m "${ED}"usr/bin/node
178 -
179 - # set up a symlink structure that node-gyp expects..
180 - dodir /usr/include/node/deps/{v8,uv}
181 - dosym . /usr/include/node/src
182 - for var in deps/{uv,v8}/include; do
183 - dosym ../.. /usr/include/node/${var}
184 - done
185 -
186 - if use doc; then
187 - # Patch docs to make them offline readable
188 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
189 - sed -i '/fonts.googleapis.com/ d' $i;
190 - done
191 - # Install docs!
192 - dohtml -r "${S}"/doc/*
193 - fi
194 -
195 - if use npm; then
196 - dodir /etc/npm
197 -
198 - # Install bash completion for `npm`
199 - # We need to temporarily replace default config path since
200 - # npm otherwise tries to write outside of the sandbox
201 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
202 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
203 - local tmp_npm_completion_file="$(emktemp)"
204 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
205 - newbashcomp "${tmp_npm_completion_file}" npm
206 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
207 -
208 - # Move man pages
209 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
210 -
211 - # Clean up
212 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
213 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
214 -
215 - local find_exp="-or -name"
216 - local find_name=()
217 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
218 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
219 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
220 - find_name+=( ${find_exp} "${match}" )
221 - done
222 -
223 - # Remove various development and/or inappropriate files and
224 - # useless docs of dependend packages.
225 - find "${LIBDIR}"/node_modules \
226 - \( -type d -name examples \) -or \( -type f \( \
227 - -iname "LICEN?E*" \
228 - "${find_name[@]}" \
229 - \) \) -exec rm -rf "{}" \;
230 - fi
231 -}
232 -
233 -src_test() {
234 - out/${BUILDTYPE}/cctest || die
235 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
236 -}
237 -
238 -pkg_postinst() {
239 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
240 - einfo "from upstream which otherwise would have it live in /usr/etc/."
241 - einfo ""
242 - einfo "Protip: When using node-gyp to install native modules, you can"
243 - einfo "avoid having to download extras by doing the following:"
244 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
245 -}
246
247 diff --git a/net-libs/nodejs/nodejs-10.11.0.ebuild b/net-libs/nodejs/nodejs-10.11.0.ebuild
248 deleted file mode 100644
249 index 8830ea2264c..00000000000
250 --- a/net-libs/nodejs/nodejs-10.11.0.ebuild
251 +++ /dev/null
252 @@ -1,201 +0,0 @@
253 -# Copyright 1999-2018 Gentoo Foundation
254 -# Distributed under the terms of the GNU General Public License v2
255 -
256 -EAPI=6
257 -
258 -PYTHON_COMPAT=( python2_7 )
259 -PYTHON_REQ_USE="threads"
260 -
261 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
262 -
263 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
264 -HOMEPAGE="https://nodejs.org/"
265 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
266 -
267 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
268 -SLOT="0"
269 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
270 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
271 -REQUIRED_USE="
272 - ${PYTHON_REQUIRED_USE}
273 - inspector? ( icu ssl )
274 - npm? ( ssl )
275 -"
276 -
277 -RDEPEND="
278 - >=dev-libs/libuv-1.23.0:=
279 - >=net-libs/http-parser-2.8.0:=
280 - >=net-libs/nghttp2-1.33.0
281 - sys-libs/zlib
282 - icu? ( >=dev-libs/icu-62.1:= )
283 - ssl? ( =dev-libs/openssl-1.1.0*:0=[-bindist] )
284 -"
285 -DEPEND="
286 - ${RDEPEND}
287 - ${PYTHON_DEPS}
288 - systemtap? ( dev-util/systemtap )
289 - test? ( net-misc/curl )
290 -"
291 -S="${WORKDIR}/node-v${PV}"
292 -PATCHES=(
293 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
294 -)
295 -
296 -pkg_pretend() {
297 - (use x86 && ! use cpu_flags_x86_sse2) && \
298 - die "Your CPU doesn't support the required SSE2 instruction."
299 -
300 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
301 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
302 -}
303 -
304 -src_prepare() {
305 - tc-export CC CXX PKG_CONFIG
306 - export V=1
307 - export BUILDTYPE=Release
308 -
309 - # fix compilation on Darwin
310 - # https://code.google.com/p/gyp/issues/detail?id=260
311 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
312 -
313 - # make sure we use python2.* while using gyp
314 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
315 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
316 -
317 - # less verbose install output (stating the same as portage, basically)
318 - sed -i -e "/print/d" tools/install.py || die
319 -
320 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
321 - local LIBDIR=$(get_libdir)
322 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
323 - sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die
324 -
325 - # Avoid writing a depfile, not useful
326 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
327 -
328 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
329 -
330 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
331 - # seem sandbox related either (invoking it from a sandbox works fine).
332 - # The issue is that no stdin handle is openened when asked for one.
333 - # It doesn't really belong upstream , so it'll just be removed until someone
334 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
335 - rm test/parallel/test-stdout-close-unref.js || die
336 -
337 - # debug builds. change install path, remove optimisations and override buildtype
338 - if use debug; then
339 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
340 - BUILDTYPE=Debug
341 - fi
342 -
343 - default
344 -}
345 -
346 -src_configure() {
347 - local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
348 - use debug && myconf+=( --debug )
349 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
350 - use inspector || myconf+=( --without-inspector )
351 - use npm || myconf+=( --without-npm )
352 - use snapshot && myconf+=( --with-snapshot )
353 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
354 -
355 - local myarch=""
356 - case ${ABI} in
357 - amd64) myarch="x64";;
358 - arm) myarch="arm";;
359 - arm64) myarch="arm64";;
360 - ppc64) myarch="ppc64";;
361 - x32) myarch="x32";;
362 - x86) myarch="ia32";;
363 - *) myarch="${ABI}";;
364 - esac
365 -
366 - GYP_DEFINES="linux_use_gold_flags=0
367 - linux_use_bundled_binutils=0
368 - linux_use_bundled_gold=0" \
369 - "${PYTHON}" configure \
370 - --prefix="${EPREFIX}"/usr \
371 - --dest-cpu=${myarch} \
372 - $(use_with systemtap dtrace) \
373 - "${myconf[@]}" || die
374 -}
375 -
376 -src_compile() {
377 - emake -C out mksnapshot
378 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
379 - emake -C out
380 -}
381 -
382 -src_install() {
383 - local LIBDIR="${ED}/usr/$(get_libdir)"
384 - emake install DESTDIR="${D}"
385 - pax-mark -m "${ED}"usr/bin/node
386 -
387 - # set up a symlink structure that node-gyp expects..
388 - dodir /usr/include/node/deps/{v8,uv}
389 - dosym . /usr/include/node/src
390 - for var in deps/{uv,v8}/include; do
391 - dosym ../.. /usr/include/node/${var}
392 - done
393 -
394 - if use doc; then
395 - # Patch docs to make them offline readable
396 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
397 - sed -i '/fonts.googleapis.com/ d' $i;
398 - done
399 - # Install docs!
400 - dohtml -r "${S}"/doc/*
401 - fi
402 -
403 - if use npm; then
404 - dodir /etc/npm
405 -
406 - # Install bash completion for `npm`
407 - # We need to temporarily replace default config path since
408 - # npm otherwise tries to write outside of the sandbox
409 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
410 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
411 - local tmp_npm_completion_file="$(emktemp)"
412 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
413 - newbashcomp "${tmp_npm_completion_file}" npm
414 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
415 -
416 - # Move man pages
417 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
418 -
419 - # Clean up
420 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
421 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
422 -
423 - local find_exp="-or -name"
424 - local find_name=()
425 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
426 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
427 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
428 - find_name+=( ${find_exp} "${match}" )
429 - done
430 -
431 - # Remove various development and/or inappropriate files and
432 - # useless docs of dependend packages.
433 - find "${LIBDIR}"/node_modules \
434 - \( -type d -name examples \) -or \( -type f \( \
435 - -iname "LICEN?E*" \
436 - "${find_name[@]}" \
437 - \) \) -exec rm -rf "{}" \;
438 - fi
439 -}
440 -
441 -src_test() {
442 - out/${BUILDTYPE}/cctest || die
443 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
444 -}
445 -
446 -pkg_postinst() {
447 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
448 - einfo "from upstream which otherwise would have it live in /usr/etc/."
449 - einfo ""
450 - einfo "Protip: When using node-gyp to install native modules, you can"
451 - einfo "avoid having to download extras by doing the following:"
452 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
453 -}
454
455 diff --git a/net-libs/nodejs/nodejs-10.12.0.ebuild b/net-libs/nodejs/nodejs-10.12.0.ebuild
456 deleted file mode 100644
457 index c543c3b59b1..00000000000
458 --- a/net-libs/nodejs/nodejs-10.12.0.ebuild
459 +++ /dev/null
460 @@ -1,204 +0,0 @@
461 -# Copyright 1999-2018 Gentoo Authors
462 -# Distributed under the terms of the GNU General Public License v2
463 -
464 -EAPI=6
465 -
466 -PYTHON_COMPAT=( python2_7 )
467 -PYTHON_REQ_USE="threads"
468 -
469 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
470 -
471 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
472 -HOMEPAGE="https://nodejs.org/"
473 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
474 -
475 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
476 -SLOT="0"
477 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
478 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
479 -REQUIRED_USE="
480 - ${PYTHON_REQUIRED_USE}
481 - inspector? ( icu ssl )
482 - npm? ( ssl )
483 -"
484 -
485 -RDEPEND="
486 - >=dev-libs/libuv-1.23.1:=
487 - >=net-libs/http-parser-2.8.0:=
488 - >=net-libs/nghttp2-1.34.0
489 - sys-libs/zlib
490 - icu? ( >=dev-libs/icu-62.1:= )
491 - ssl? ( =dev-libs/openssl-1.1.0*:0=[-bindist] )
492 -"
493 -DEPEND="
494 - ${RDEPEND}
495 - ${PYTHON_DEPS}
496 - systemtap? ( dev-util/systemtap )
497 - test? ( net-misc/curl )
498 -"
499 -S="${WORKDIR}/node-v${PV}"
500 -PATCHES=(
501 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
502 -)
503 -
504 -pkg_pretend() {
505 - (use x86 && ! use cpu_flags_x86_sse2) && \
506 - die "Your CPU doesn't support the required SSE2 instruction."
507 -
508 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
509 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
510 -}
511 -
512 -src_prepare() {
513 - tc-export CC CXX PKG_CONFIG
514 - export V=1
515 - export BUILDTYPE=Release
516 -
517 - # fix compilation on Darwin
518 - # https://code.google.com/p/gyp/issues/detail?id=260
519 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
520 -
521 - # make sure we use python2.* while using gyp
522 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
523 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
524 -
525 - # less verbose install output (stating the same as portage, basically)
526 - sed -i -e "/print/d" tools/install.py || die
527 -
528 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
529 - local LIBDIR=$(get_libdir)
530 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
531 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
532 -
533 - # Avoid writing a depfile, not useful
534 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
535 -
536 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
537 -
538 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
539 - # seem sandbox related either (invoking it from a sandbox works fine).
540 - # The issue is that no stdin handle is openened when asked for one.
541 - # It doesn't really belong upstream , so it'll just be removed until someone
542 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
543 - rm test/parallel/test-stdout-close-unref.js || die
544 -
545 - # debug builds. change install path, remove optimisations and override buildtype
546 - if use debug; then
547 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
548 - BUILDTYPE=Debug
549 - fi
550 -
551 - default
552 -}
553 -
554 -src_configure() {
555 - local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
556 - use debug && myconf+=( --debug )
557 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
558 - use inspector || myconf+=( --without-inspector )
559 - use npm || myconf+=( --without-npm )
560 - use snapshot && myconf+=( --with-snapshot )
561 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
562 -
563 - local myarch=""
564 - case ${ABI} in
565 - amd64) myarch="x64";;
566 - arm) myarch="arm";;
567 - arm64) myarch="arm64";;
568 - ppc64) myarch="ppc64";;
569 - x32) myarch="x32";;
570 - x86) myarch="ia32";;
571 - *) myarch="${ABI}";;
572 - esac
573 -
574 - GYP_DEFINES="linux_use_gold_flags=0
575 - linux_use_bundled_binutils=0
576 - linux_use_bundled_gold=0" \
577 - "${PYTHON}" configure \
578 - --prefix="${EPREFIX}"/usr \
579 - --dest-cpu=${myarch} \
580 - $(use_with systemtap dtrace) \
581 - "${myconf[@]}" || die
582 -}
583 -
584 -src_compile() {
585 - emake -C out mksnapshot
586 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
587 - emake -C out
588 -}
589 -
590 -src_install() {
591 - local LIBDIR="${ED}/usr/$(get_libdir)"
592 - emake install DESTDIR="${D}"
593 - pax-mark -m "${ED}"usr/bin/node
594 -
595 - # set up a symlink structure that node-gyp expects..
596 - dodir /usr/include/node/deps/{v8,uv}
597 - dosym . /usr/include/node/src
598 - for var in deps/{uv,v8}/include; do
599 - dosym ../.. /usr/include/node/${var}
600 - done
601 -
602 - if use doc; then
603 - # Patch docs to make them offline readable
604 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
605 - sed -i '/fonts.googleapis.com/ d' $i;
606 - done
607 - # Install docs
608 - docinto html
609 - dodoc -r "${S}"/doc/*
610 - fi
611 -
612 - if use npm; then
613 - dodir /etc/npm
614 -
615 - # Install bash completion for `npm`
616 - # We need to temporarily replace default config path since
617 - # npm otherwise tries to write outside of the sandbox
618 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
619 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
620 - local tmp_npm_completion_file="$(emktemp)"
621 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
622 - newbashcomp "${tmp_npm_completion_file}" npm
623 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
624 -
625 - # Move man pages
626 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
627 -
628 - # Clean up
629 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
630 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
631 -
632 - local find_exp="-or -name"
633 - local find_name=()
634 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
635 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
636 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
637 - find_name+=( ${find_exp} "${match}" )
638 - done
639 -
640 - # Remove various development and/or inappropriate files and
641 - # useless docs of dependend packages.
642 - find "${LIBDIR}"/node_modules \
643 - \( -type d -name examples \) -or \( -type f \( \
644 - -iname "LICEN?E*" \
645 - "${find_name[@]}" \
646 - \) \) -exec rm -rf "{}" \;
647 - fi
648 -
649 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
650 -}
651 -
652 -src_test() {
653 - out/${BUILDTYPE}/cctest || die
654 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
655 -}
656 -
657 -pkg_postinst() {
658 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
659 - einfo "from upstream which otherwise would have it live in /usr/etc/."
660 - einfo ""
661 - einfo "Protip: When using node-gyp to install native modules, you can"
662 - einfo "avoid having to download extras by doing the following:"
663 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
664 -}
665
666 diff --git a/net-libs/nodejs/nodejs-10.9.0.ebuild b/net-libs/nodejs/nodejs-10.9.0.ebuild
667 deleted file mode 100644
668 index 34e08649c75..00000000000
669 --- a/net-libs/nodejs/nodejs-10.9.0.ebuild
670 +++ /dev/null
671 @@ -1,201 +0,0 @@
672 -# Copyright 1999-2018 Gentoo Foundation
673 -# Distributed under the terms of the GNU General Public License v2
674 -
675 -EAPI=6
676 -
677 -PYTHON_COMPAT=( python2_7 )
678 -PYTHON_REQ_USE="threads"
679 -
680 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
681 -
682 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
683 -HOMEPAGE="https://nodejs.org/"
684 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
685 -
686 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
687 -SLOT="0"
688 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
689 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
690 -REQUIRED_USE="
691 - ${PYTHON_REQUIRED_USE}
692 - inspector? ( icu ssl )
693 - npm? ( ssl )
694 -"
695 -
696 -RDEPEND="
697 - >=dev-libs/libuv-1.22.0:=
698 - >=net-libs/http-parser-2.8.0:=
699 - >=net-libs/nghttp2-1.29.0
700 - sys-libs/zlib
701 - icu? ( >=dev-libs/icu-62.1:= )
702 - ssl? ( >=dev-libs/openssl-1.1.0:0=[-bindist] )
703 -"
704 -DEPEND="
705 - ${RDEPEND}
706 - ${PYTHON_DEPS}
707 - systemtap? ( dev-util/systemtap )
708 - test? ( net-misc/curl )
709 -"
710 -S="${WORKDIR}/node-v${PV}"
711 -PATCHES=(
712 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
713 -)
714 -
715 -pkg_pretend() {
716 - (use x86 && ! use cpu_flags_x86_sse2) && \
717 - die "Your CPU doesn't support the required SSE2 instruction."
718 -
719 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
720 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
721 -}
722 -
723 -src_prepare() {
724 - tc-export CC CXX PKG_CONFIG
725 - export V=1
726 - export BUILDTYPE=Release
727 -
728 - # fix compilation on Darwin
729 - # https://code.google.com/p/gyp/issues/detail?id=260
730 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
731 -
732 - # make sure we use python2.* while using gyp
733 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
734 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
735 -
736 - # less verbose install output (stating the same as portage, basically)
737 - sed -i -e "/print/d" tools/install.py || die
738 -
739 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
740 - local LIBDIR=$(get_libdir)
741 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
742 - sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die
743 -
744 - # Avoid writing a depfile, not useful
745 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
746 -
747 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
748 -
749 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
750 - # seem sandbox related either (invoking it from a sandbox works fine).
751 - # The issue is that no stdin handle is openened when asked for one.
752 - # It doesn't really belong upstream , so it'll just be removed until someone
753 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
754 - rm test/parallel/test-stdout-close-unref.js || die
755 -
756 - # debug builds. change install path, remove optimisations and override buildtype
757 - if use debug; then
758 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
759 - BUILDTYPE=Debug
760 - fi
761 -
762 - default
763 -}
764 -
765 -src_configure() {
766 - local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
767 - use debug && myconf+=( --debug )
768 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
769 - use inspector || myconf+=( --without-inspector )
770 - use npm || myconf+=( --without-npm )
771 - use snapshot && myconf+=( --with-snapshot )
772 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
773 -
774 - local myarch=""
775 - case ${ABI} in
776 - amd64) myarch="x64";;
777 - arm) myarch="arm";;
778 - arm64) myarch="arm64";;
779 - ppc64) myarch="ppc64";;
780 - x32) myarch="x32";;
781 - x86) myarch="ia32";;
782 - *) myarch="${ABI}";;
783 - esac
784 -
785 - GYP_DEFINES="linux_use_gold_flags=0
786 - linux_use_bundled_binutils=0
787 - linux_use_bundled_gold=0" \
788 - "${PYTHON}" configure \
789 - --prefix="${EPREFIX}"/usr \
790 - --dest-cpu=${myarch} \
791 - $(use_with systemtap dtrace) \
792 - "${myconf[@]}" || die
793 -}
794 -
795 -src_compile() {
796 - emake -C out mksnapshot
797 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
798 - emake -C out
799 -}
800 -
801 -src_install() {
802 - local LIBDIR="${ED}/usr/$(get_libdir)"
803 - emake install DESTDIR="${D}"
804 - pax-mark -m "${ED}"usr/bin/node
805 -
806 - # set up a symlink structure that node-gyp expects..
807 - dodir /usr/include/node/deps/{v8,uv}
808 - dosym . /usr/include/node/src
809 - for var in deps/{uv,v8}/include; do
810 - dosym ../.. /usr/include/node/${var}
811 - done
812 -
813 - if use doc; then
814 - # Patch docs to make them offline readable
815 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
816 - sed -i '/fonts.googleapis.com/ d' $i;
817 - done
818 - # Install docs!
819 - dohtml -r "${S}"/doc/*
820 - fi
821 -
822 - if use npm; then
823 - dodir /etc/npm
824 -
825 - # Install bash completion for `npm`
826 - # We need to temporarily replace default config path since
827 - # npm otherwise tries to write outside of the sandbox
828 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
829 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
830 - local tmp_npm_completion_file="$(emktemp)"
831 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
832 - newbashcomp "${tmp_npm_completion_file}" npm
833 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
834 -
835 - # Move man pages
836 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
837 -
838 - # Clean up
839 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
840 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
841 -
842 - local find_exp="-or -name"
843 - local find_name=()
844 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
845 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
846 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
847 - find_name+=( ${find_exp} "${match}" )
848 - done
849 -
850 - # Remove various development and/or inappropriate files and
851 - # useless docs of dependend packages.
852 - find "${LIBDIR}"/node_modules \
853 - \( -type d -name examples \) -or \( -type f \( \
854 - -iname "LICEN?E*" \
855 - "${find_name[@]}" \
856 - \) \) -exec rm -rf "{}" \;
857 - fi
858 -}
859 -
860 -src_test() {
861 - out/${BUILDTYPE}/cctest || die
862 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
863 -}
864 -
865 -pkg_postinst() {
866 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
867 - einfo "from upstream which otherwise would have it live in /usr/etc/."
868 - einfo ""
869 - einfo "Protip: When using node-gyp to install native modules, you can"
870 - einfo "avoid having to download extras by doing the following:"
871 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
872 -}
873
874 diff --git a/net-libs/nodejs/nodejs-11.0.0.ebuild b/net-libs/nodejs/nodejs-11.0.0.ebuild
875 deleted file mode 100644
876 index e032286ea2d..00000000000
877 --- a/net-libs/nodejs/nodejs-11.0.0.ebuild
878 +++ /dev/null
879 @@ -1,204 +0,0 @@
880 -# Copyright 1999-2018 Gentoo Authors
881 -# Distributed under the terms of the GNU General Public License v2
882 -
883 -EAPI=6
884 -
885 -PYTHON_COMPAT=( python2_7 )
886 -PYTHON_REQ_USE="threads"
887 -
888 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
889 -
890 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
891 -HOMEPAGE="https://nodejs.org/"
892 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
893 -
894 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
895 -SLOT="0"
896 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
897 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
898 -REQUIRED_USE="
899 - ${PYTHON_REQUIRED_USE}
900 - inspector? ( icu ssl )
901 - npm? ( ssl )
902 -"
903 -
904 -RDEPEND="
905 - >=dev-libs/libuv-1.23.2:=
906 - >=net-libs/http-parser-2.8.0:=
907 - >=net-libs/nghttp2-1.34.0
908 - sys-libs/zlib
909 - icu? ( >=dev-libs/icu-62.1:= )
910 - ssl? ( =dev-libs/openssl-1.1.0*:0=[-bindist] )
911 -"
912 -DEPEND="
913 - ${RDEPEND}
914 - ${PYTHON_DEPS}
915 - systemtap? ( dev-util/systemtap )
916 - test? ( net-misc/curl )
917 -"
918 -S="${WORKDIR}/node-v${PV}"
919 -PATCHES=(
920 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
921 -)
922 -
923 -pkg_pretend() {
924 - (use x86 && ! use cpu_flags_x86_sse2) && \
925 - die "Your CPU doesn't support the required SSE2 instruction."
926 -
927 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
928 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
929 -}
930 -
931 -src_prepare() {
932 - tc-export CC CXX PKG_CONFIG
933 - export V=1
934 - export BUILDTYPE=Release
935 -
936 - # fix compilation on Darwin
937 - # https://code.google.com/p/gyp/issues/detail?id=260
938 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
939 -
940 - # make sure we use python2.* while using gyp
941 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
942 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
943 -
944 - # less verbose install output (stating the same as portage, basically)
945 - sed -i -e "/print/d" tools/install.py || die
946 -
947 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
948 - local LIBDIR=$(get_libdir)
949 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
950 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
951 -
952 - # Avoid writing a depfile, not useful
953 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
954 -
955 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
956 -
957 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
958 - # seem sandbox related either (invoking it from a sandbox works fine).
959 - # The issue is that no stdin handle is openened when asked for one.
960 - # It doesn't really belong upstream , so it'll just be removed until someone
961 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
962 - rm test/parallel/test-stdout-close-unref.js || die
963 -
964 - # debug builds. change install path, remove optimisations and override buildtype
965 - if use debug; then
966 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
967 - BUILDTYPE=Debug
968 - fi
969 -
970 - default
971 -}
972 -
973 -src_configure() {
974 - local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
975 - use debug && myconf+=( --debug )
976 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
977 - use inspector || myconf+=( --without-inspector )
978 - use npm || myconf+=( --without-npm )
979 - use snapshot && myconf+=( --with-snapshot )
980 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
981 -
982 - local myarch=""
983 - case ${ABI} in
984 - amd64) myarch="x64";;
985 - arm) myarch="arm";;
986 - arm64) myarch="arm64";;
987 - ppc64) myarch="ppc64";;
988 - x32) myarch="x32";;
989 - x86) myarch="ia32";;
990 - *) myarch="${ABI}";;
991 - esac
992 -
993 - GYP_DEFINES="linux_use_gold_flags=0
994 - linux_use_bundled_binutils=0
995 - linux_use_bundled_gold=0" \
996 - "${PYTHON}" configure \
997 - --prefix="${EPREFIX}"/usr \
998 - --dest-cpu=${myarch} \
999 - $(use_with systemtap dtrace) \
1000 - "${myconf[@]}" || die
1001 -}
1002 -
1003 -src_compile() {
1004 - emake -C out mksnapshot
1005 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1006 - emake -C out
1007 -}
1008 -
1009 -src_install() {
1010 - local LIBDIR="${ED}/usr/$(get_libdir)"
1011 - emake install DESTDIR="${D}"
1012 - pax-mark -m "${ED}"usr/bin/node
1013 -
1014 - # set up a symlink structure that node-gyp expects..
1015 - dodir /usr/include/node/deps/{v8,uv}
1016 - dosym . /usr/include/node/src
1017 - for var in deps/{uv,v8}/include; do
1018 - dosym ../.. /usr/include/node/${var}
1019 - done
1020 -
1021 - if use doc; then
1022 - # Patch docs to make them offline readable
1023 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
1024 - sed -i '/fonts.googleapis.com/ d' $i;
1025 - done
1026 - # Install docs
1027 - docinto html
1028 - dodoc -r "${S}"/doc/*
1029 - fi
1030 -
1031 - if use npm; then
1032 - dodir /etc/npm
1033 -
1034 - # Install bash completion for `npm`
1035 - # We need to temporarily replace default config path since
1036 - # npm otherwise tries to write outside of the sandbox
1037 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1038 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1039 - local tmp_npm_completion_file="$(emktemp)"
1040 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1041 - newbashcomp "${tmp_npm_completion_file}" npm
1042 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1043 -
1044 - # Move man pages
1045 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1046 -
1047 - # Clean up
1048 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1049 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1050 -
1051 - local find_exp="-or -name"
1052 - local find_name=()
1053 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1054 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1055 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1056 - find_name+=( ${find_exp} "${match}" )
1057 - done
1058 -
1059 - # Remove various development and/or inappropriate files and
1060 - # useless docs of dependend packages.
1061 - find "${LIBDIR}"/node_modules \
1062 - \( -type d -name examples \) -or \( -type f \( \
1063 - -iname "LICEN?E*" \
1064 - "${find_name[@]}" \
1065 - \) \) -exec rm -rf "{}" \;
1066 - fi
1067 -
1068 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
1069 -}
1070 -
1071 -src_test() {
1072 - out/${BUILDTYPE}/cctest || die
1073 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1074 -}
1075 -
1076 -pkg_postinst() {
1077 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
1078 - einfo "from upstream which otherwise would have it live in /usr/etc/."
1079 - einfo ""
1080 - einfo "Protip: When using node-gyp to install native modules, you can"
1081 - einfo "avoid having to download extras by doing the following:"
1082 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
1083 -}
1084
1085 diff --git a/net-libs/nodejs/nodejs-11.1.0.ebuild b/net-libs/nodejs/nodejs-11.1.0.ebuild
1086 deleted file mode 100644
1087 index 4bbb68a8177..00000000000
1088 --- a/net-libs/nodejs/nodejs-11.1.0.ebuild
1089 +++ /dev/null
1090 @@ -1,204 +0,0 @@
1091 -# Copyright 1999-2018 Gentoo Authors
1092 -# Distributed under the terms of the GNU General Public License v2
1093 -
1094 -EAPI=6
1095 -
1096 -PYTHON_COMPAT=( python2_7 )
1097 -PYTHON_REQ_USE="threads"
1098 -
1099 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs
1100 -
1101 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1102 -HOMEPAGE="https://nodejs.org/"
1103 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
1104 -
1105 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1106 -SLOT="0"
1107 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1108 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
1109 -REQUIRED_USE="
1110 - ${PYTHON_REQUIRED_USE}
1111 - inspector? ( icu ssl )
1112 - npm? ( ssl )
1113 -"
1114 -
1115 -RDEPEND="
1116 - >=dev-libs/libuv-1.23.2:=
1117 - >=net-libs/http-parser-2.8.0:=
1118 - >=net-libs/nghttp2-1.34.0
1119 - sys-libs/zlib
1120 - icu? ( >=dev-libs/icu-63.1:= )
1121 - ssl? ( =dev-libs/openssl-1.1.0*:0=[-bindist] )
1122 -"
1123 -DEPEND="
1124 - ${RDEPEND}
1125 - ${PYTHON_DEPS}
1126 - systemtap? ( dev-util/systemtap )
1127 - test? ( net-misc/curl )
1128 -"
1129 -S="${WORKDIR}/node-v${PV}"
1130 -PATCHES=(
1131 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1132 -)
1133 -
1134 -pkg_pretend() {
1135 - (use x86 && ! use cpu_flags_x86_sse2) && \
1136 - die "Your CPU doesn't support the required SSE2 instruction."
1137 -
1138 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1139 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1140 -}
1141 -
1142 -src_prepare() {
1143 - tc-export CC CXX PKG_CONFIG
1144 - export V=1
1145 - export BUILDTYPE=Release
1146 -
1147 - # fix compilation on Darwin
1148 - # https://code.google.com/p/gyp/issues/detail?id=260
1149 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1150 -
1151 - # make sure we use python2.* while using gyp
1152 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
1153 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
1154 -
1155 - # less verbose install output (stating the same as portage, basically)
1156 - sed -i -e "/print/d" tools/install.py || die
1157 -
1158 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1159 - local LIBDIR=$(get_libdir)
1160 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1161 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1162 -
1163 - # Avoid writing a depfile, not useful
1164 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1165 -
1166 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
1167 -
1168 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1169 - # seem sandbox related either (invoking it from a sandbox works fine).
1170 - # The issue is that no stdin handle is openened when asked for one.
1171 - # It doesn't really belong upstream , so it'll just be removed until someone
1172 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1173 - rm test/parallel/test-stdout-close-unref.js || die
1174 -
1175 - # debug builds. change install path, remove optimisations and override buildtype
1176 - if use debug; then
1177 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1178 - BUILDTYPE=Debug
1179 - fi
1180 -
1181 - default
1182 -}
1183 -
1184 -src_configure() {
1185 - local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
1186 - use debug && myconf+=( --debug )
1187 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1188 - use inspector || myconf+=( --without-inspector )
1189 - use npm || myconf+=( --without-npm )
1190 - use snapshot && myconf+=( --with-snapshot )
1191 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
1192 -
1193 - local myarch=""
1194 - case ${ABI} in
1195 - amd64) myarch="x64";;
1196 - arm) myarch="arm";;
1197 - arm64) myarch="arm64";;
1198 - ppc64) myarch="ppc64";;
1199 - x32) myarch="x32";;
1200 - x86) myarch="ia32";;
1201 - *) myarch="${ABI}";;
1202 - esac
1203 -
1204 - GYP_DEFINES="linux_use_gold_flags=0
1205 - linux_use_bundled_binutils=0
1206 - linux_use_bundled_gold=0" \
1207 - "${PYTHON}" configure \
1208 - --prefix="${EPREFIX}"/usr \
1209 - --dest-cpu=${myarch} \
1210 - $(use_with systemtap dtrace) \
1211 - "${myconf[@]}" || die
1212 -}
1213 -
1214 -src_compile() {
1215 - emake -C out mksnapshot
1216 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1217 - emake -C out
1218 -}
1219 -
1220 -src_install() {
1221 - local LIBDIR="${ED}/usr/$(get_libdir)"
1222 - emake install DESTDIR="${D}"
1223 - pax-mark -m "${ED}"usr/bin/node
1224 -
1225 - # set up a symlink structure that node-gyp expects..
1226 - dodir /usr/include/node/deps/{v8,uv}
1227 - dosym . /usr/include/node/src
1228 - for var in deps/{uv,v8}/include; do
1229 - dosym ../.. /usr/include/node/${var}
1230 - done
1231 -
1232 - if use doc; then
1233 - # Patch docs to make them offline readable
1234 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
1235 - sed -i '/fonts.googleapis.com/ d' $i;
1236 - done
1237 - # Install docs
1238 - docinto html
1239 - dodoc -r "${S}"/doc/*
1240 - fi
1241 -
1242 - if use npm; then
1243 - dodir /etc/npm
1244 -
1245 - # Install bash completion for `npm`
1246 - # We need to temporarily replace default config path since
1247 - # npm otherwise tries to write outside of the sandbox
1248 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1249 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1250 - local tmp_npm_completion_file="$(emktemp)"
1251 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1252 - newbashcomp "${tmp_npm_completion_file}" npm
1253 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1254 -
1255 - # Move man pages
1256 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1257 -
1258 - # Clean up
1259 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1260 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1261 -
1262 - local find_exp="-or -name"
1263 - local find_name=()
1264 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1265 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1266 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1267 - find_name+=( ${find_exp} "${match}" )
1268 - done
1269 -
1270 - # Remove various development and/or inappropriate files and
1271 - # useless docs of dependend packages.
1272 - find "${LIBDIR}"/node_modules \
1273 - \( -type d -name examples \) -or \( -type f \( \
1274 - -iname "LICEN?E*" \
1275 - "${find_name[@]}" \
1276 - \) \) -exec rm -rf "{}" \;
1277 - fi
1278 -
1279 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
1280 -}
1281 -
1282 -src_test() {
1283 - out/${BUILDTYPE}/cctest || die
1284 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1285 -}
1286 -
1287 -pkg_postinst() {
1288 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
1289 - einfo "from upstream which otherwise would have it live in /usr/etc/."
1290 - einfo ""
1291 - einfo "Protip: When using node-gyp to install native modules, you can"
1292 - einfo "avoid having to download extras by doing the following:"
1293 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
1294 -}