Gentoo Archives: gentoo-commits

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