Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/
Date: Tue, 03 May 2022 17:48:08
Message-Id: 1651600080.e9294941c0cfb2a4119b15b13461426256a4a883.williamh@gentoo
1 commit: e9294941c0cfb2a4119b15b13461426256a4a883
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 3 17:46:42 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue May 3 17:48:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9294941
7
8 net-libs/nodejs: drop 12.22.7, 14.18.0, 14.18.1
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 net-libs/nodejs/Manifest | 3 -
13 net-libs/nodejs/nodejs-12.22.7.ebuild | 249 ----------------------------------
14 net-libs/nodejs/nodejs-14.18.0.ebuild | 242 ---------------------------------
15 net-libs/nodejs/nodejs-14.18.1.ebuild | 242 ---------------------------------
16 4 files changed, 736 deletions(-)
17
18 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
19 index 8438541ebfed..b7f49695e375 100644
20 --- a/net-libs/nodejs/Manifest
21 +++ b/net-libs/nodejs/Manifest
22 @@ -1,11 +1,8 @@
23 DIST node-v12.22.10.tar.xz 24089580 BLAKE2B 0ecf0b2ed64cba1bbcab287ccf7e524bd08ce787399d01fb792fd5232983289403a85810bc6eccd090b6d15796c48dc6ea3baf0cb3154e392dc343da53086b81 SHA512 da984e98856ef89eb259346d9d1eae60ff3d255d964f3b09d59851a9c21c86acd0c56b9c888f61423de07afab1c09946c00856c832a1f1a8abc4c671c31e23b1
24 DIST node-v12.22.5.tar.xz 23654908 BLAKE2B ca4f304e31f091ae656142035851d6e4427d8b2ddd2a69506dec96efbb1269a19a08e9ab8d44dfe10f8429bc239e4102f3f030adb25e9c41901c7d94b53e88c8 SHA512 80f3c673a1f2af7fffd6aaa556c06b8225034c8413e1a738c19d491aff1b3e6ed388df66ecbff88e4bfbefe1013dac7e3beb301456c2099b6a954ba468b21883
25 DIST node-v12.22.6.tar.xz 23664904 BLAKE2B 04dd4fd4cbe39642a1c3dd8639a4d9e3362055f56bc2565303d0095cda1655033ba4e0ce5a969647d2be73df13ddbcccc4907825a94a41b45c0723b3c02ca980 SHA512 d107f1ff7073d2db9f0198f14b0523870e9b262c71055de2e03fba54f87bc98a57dad43d902c0b349957df21de71dc066133d4831eb7eb07f4e548d0ac724fb2
26 -DIST node-v12.22.7.tar.xz 23661696 BLAKE2B aa162e2aee98568c207b11a27651cefdf6444568ad0c0dc602d63a6767fc7d00d10e93626168b334d6fe1774fc8da420ed05b9d2ce485f0ec3544d992bfb5b83 SHA512 7697b409537114abf14a3847fffd8952fd35f54569bfa84ba527f231ac1defced5d11fe7bc39ff8ec7cccb282d584ff50a33bcbba16474c6a125808a29104222
27 DIST node-v14.17.5.tar.xz 33585724 BLAKE2B cf79397caad8c81e4096f344f9fdb88d8ecea44b97fe208256dfd4afb750ecdf52142a2dc0430285b9d5117bdd43fa5ce42b4418926eec4d2c7f0a5f5d1a1539 SHA512 9d62c8946d05862d96a13a71b241a097b9f592a9e5f7362c81d8f3c74e7c5546a308b4c74bef34a66cafeef5d1a87d9d3e5ae8bb87d470c1ecf5abb8de0dedb5
28 DIST node-v14.17.6.tar.xz 33606464 BLAKE2B c2c449e5eaf8214d7ed4bfab8db0208034cee1d08ef0e1fca478c30fc5cf95be037eb141080dbcfbe4fc58ef734457747dcbd0fe585a0536f9c0bec495435f25 SHA512 581c5698112426042fbf54fa793e56a30cae0c54ce8f23af6ac20d73c69a4f1166c5410f357c5a7b0409a773f99e3b9291e4afffd53b3c0e00569725dc4c47d3
29 -DIST node-v14.18.0.tar.xz 33698388 BLAKE2B 0a26aac559f2cd44d863b5375bc26692f1abf121c368df040041c9916e56410c3c919be377f099651e9a5e27bad972705d02a20f108f527cf23044e8ba95dd78 SHA512 0603e2466bf89b57e404e2992dda25012866a347489fb811a9757aea07056fc4f346236adf44a56d52c442f5f298f4dfdfc961f8582cd194d062beeb80c60cbf
30 -DIST node-v14.18.1.tar.xz 33693816 BLAKE2B 310a53a7319620d8ff77b4e5947c7f2196efe96eb0d4311c8fb91b500331128750096e7b0471def73bee00cfa6a9da968cc8176b1d46d06d14c3409dedb9203b SHA512 a92d6f392e960008efd0c1f48471a3e294aa5292065fb31acc62723e8924f7f1a22bb02f3ab51a440f6e190bdee3c1667a275808c6b76d053a77aa6d7ad68aef
31 DIST node-v14.19.0.tar.xz 34486868 BLAKE2B 12e571a366c1d4b2475ef258e338f516bb81e9c08f7e6b7f951decbf371028cdcf32c72181d8504d0890496eaecce0d6b23437b8dad6c6e498d30bf6636bd1e7 SHA512 80573fa3a0882c1f2a40b991f187f49714748ca4c56c78133e2d2be0322f201816eb059a1a7d38ea8a925229c1b1324d0ffc28ff4002d0115bfae44fe87efe97
32 DIST node-v16.14.2.tar.xz 34332624 BLAKE2B 756895f81ecabbacf30b1e513890d100192c367443a5d041cd3e383985acb6fae189213f44b7a533b43d1b759d5a2677a5ee787c72d3abdb480879d6d24cc95e SHA512 b97274f6e0d63f19e01497c43af36e6561f019e7b0b5b4f6ea19d0fbe2cb4d3c514c06f49e237d1e327936db03c3f437ae0d0b2f830a35f1b7c3a723fbe2a1be
33 DIST node-v18.0.0.tar.xz 36826840 BLAKE2B 658b6a4872779c648b1c10b952403892a4ea846525737daba222aeb7d1467f797345c2e07bfb28320d593810617541b893dd37006dcbd13e5e69313455045ff0 SHA512 801ee56e22490453f259ab92bfcd1b13da3f9510fb70078da1e680d0a27971d4ee4b4b4344b2a969d230e661fd9a8b35e9104c5fe0a594222be3a20583a59f3e
34
35 diff --git a/net-libs/nodejs/nodejs-12.22.7.ebuild b/net-libs/nodejs/nodejs-12.22.7.ebuild
36 deleted file mode 100644
37 index b76dbf7ea807..000000000000
38 --- a/net-libs/nodejs/nodejs-12.22.7.ebuild
39 +++ /dev/null
40 @@ -1,249 +0,0 @@
41 -# Copyright 1999-2021 Gentoo Authors
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=8
45 -
46 -PYTHON_COMPAT=( python3_{8..10} )
47 -PYTHON_REQ_USE="threads(+)"
48 -
49 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
50 -
51 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
52 -HOMEPAGE="https://nodejs.org/"
53 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
54 -
55 -if [[ ${PV} == *9999 ]]; then
56 - inherit git-r3
57 - EGIT_REPO_URI="https://github.com/nodejs/node"
58 - SLOT="0"
59 -else
60 - SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
61 - SLOT="0/$(ver_cut 1)"
62 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 -riscv ~x86 ~amd64-linux ~x64-macos"
63 - S="${WORKDIR}/node-v${PV}"
64 -fi
65 -
66 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector lto +npm +snapshot +ssl +system-ssl systemtap test"
67 -REQUIRED_USE="
68 - inspector? ( icu ssl )
69 - npm? ( ssl )
70 - system-ssl? ( ssl )
71 -"
72 -
73 -RESTRICT="!test? ( test )"
74 -
75 -RDEPEND="
76 - >=app-arch/brotli-1.0.9:=
77 - >=dev-libs/libuv-1.39.0:=
78 - >=net-dns/c-ares-1.17.2:=
79 - >=net-libs/http-parser-2.9.3:=
80 - >=net-libs/nghttp2-1.40.0:=
81 - sys-libs/zlib
82 - icu? ( >=dev-libs/icu-64.2:= )
83 - system-ssl? (
84 - >=dev-libs/openssl-1.1.1:0=
85 - <dev-libs/openssl-3.0.0_beta1:0=
86 - )
87 -"
88 -BDEPEND="
89 - ${PYTHON_DEPS}
90 - sys-apps/coreutils
91 - virtual/pkgconfig
92 - systemtap? ( dev-util/systemtap )
93 - test? ( net-misc/curl )
94 -"
95 -DEPEND="
96 - ${RDEPEND}
97 -"
98 -PATCHES=(
99 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
100 - "${FILESDIR}"/${PN}-12.20.1-fix_ppc64_crashes.patch
101 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
102 - "${FILESDIR}"/${PN}-12.22.1-uvwasi_shared_libuv.patch
103 - "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
104 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
105 -)
106 -
107 -pkg_pretend() {
108 - (use x86 && ! use cpu_flags_x86_sse2) && \
109 - die "Your CPU doesn't support the required SSE2 instruction."
110 -
111 - if [[ ${MERGE_TYPE} != "binary" ]]; then
112 - if use lto; then
113 - if tc-is-gcc; then
114 - if [[ $(gcc-major-version) -ge 11 ]]; then
115 - # Bug #787158
116 - die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild"
117 - fi
118 - else
119 - # configure.py will abort on this later if we do not
120 - die "${PN} only supports LTO for gcc"
121 - fi
122 - fi
123 - fi
124 -}
125 -
126 -src_prepare() {
127 - tc-export CC CXX PKG_CONFIG
128 - export V=1
129 - export BUILDTYPE=Release
130 -
131 - # fix compilation on Darwin
132 - # https://code.google.com/p/gyp/issues/detail?id=260
133 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
134 -
135 - # less verbose install output (stating the same as portage, basically)
136 - sed -i -e "/print/d" tools/install.py || die
137 -
138 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
139 - local LIBDIR=$(get_libdir)
140 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
141 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
142 -
143 - # Avoid writing a depfile, not useful
144 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
145 -
146 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
147 -
148 - # Known-to-fail test of a deprecated, legacy HTTP parser. Just don't bother.
149 - rm -f test/parallel/test-http-transfer-encoding-smuggling-legacy.js
150 -
151 - # debug builds. change install path, remove optimisations and override buildtype
152 - if use debug; then
153 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
154 - BUILDTYPE=Debug
155 - fi
156 -
157 - default
158 -}
159 -
160 -src_configure() {
161 - xdg_environment_reset
162 -
163 - # LTO compiler flags are handled by configure.py itself
164 - filter-flags '-flto*'
165 -
166 - local myconf=(
167 - --shared-brotli
168 - --shared-cares
169 - --shared-http-parser
170 - --shared-libuv
171 - --shared-nghttp2
172 - --shared-zlib
173 - )
174 - use debug && myconf+=( --debug )
175 - use lto && myconf+=( --enable-lto )
176 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
177 - use inspector || myconf+=( --without-inspector )
178 - use npm || myconf+=( --without-npm )
179 - use snapshot || myconf+=( --without-node-snapshot )
180 - if use ssl; then
181 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
182 - else
183 - myconf+=( --without-ssl )
184 - fi
185 -
186 - local myarch=""
187 - case ${ABI} in
188 - amd64) myarch="x64";;
189 - arm) myarch="arm";;
190 - arm64) myarch="arm64";;
191 - ppc64) myarch="ppc64";;
192 - x32) myarch="x32";;
193 - x86) myarch="ia32";;
194 - *) myarch="${ABI}";;
195 - esac
196 -
197 - GYP_DEFINES="linux_use_gold_flags=0
198 - linux_use_bundled_binutils=0
199 - linux_use_bundled_gold=0" \
200 - "${EPYTHON}" configure.py \
201 - --prefix="${EPREFIX}"/usr \
202 - --dest-cpu=${myarch} \
203 - $(use_with systemtap dtrace) \
204 - "${myconf[@]}" || die
205 -}
206 -
207 -src_compile() {
208 - emake -C out mksnapshot
209 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
210 - emake -C out
211 -}
212 -
213 -src_install() {
214 - local LIBDIR="${ED}/usr/$(get_libdir)"
215 - default
216 -
217 - pax-mark -m "${ED}"/usr/bin/node
218 -
219 - # set up a symlink structure that node-gyp expects..
220 - dodir /usr/include/node/deps/{v8,uv}
221 - dosym . /usr/include/node/src
222 - for var in deps/{uv,v8}/include; do
223 - dosym ../.. /usr/include/node/${var}
224 - done
225 -
226 - if use doc; then
227 - docinto html
228 - dodoc -r "${S}"/doc/*
229 - fi
230 -
231 - if use npm; then
232 - dodir /etc/npm
233 -
234 - # Install bash completion for `npm`
235 - # We need to temporarily replace default config path since
236 - # npm otherwise tries to write outside of the sandbox
237 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
238 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
239 - local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
240 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
241 - newbashcomp "${tmp_npm_completion_file}" npm
242 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
243 -
244 - # Move man pages
245 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
246 -
247 - # Clean up
248 - rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
249 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
250 -
251 - local find_exp="-or -name"
252 - local find_name=()
253 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
254 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
255 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
256 - find_name+=( ${find_exp} "${match}" )
257 - done
258 -
259 - # Remove various development and/or inappropriate files and
260 - # useless docs of dependend packages.
261 - find "${LIBDIR}"/node_modules \
262 - \( -type d -name examples \) -or \( -type f \( \
263 - -iname "LICEN?E*" \
264 - "${find_name[@]}" \
265 - \) \) -exec rm -rf "{}" \;
266 - fi
267 -
268 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
269 -}
270 -
271 -src_test() {
272 - if has usersandbox ${FEATURES}; then
273 - rm -f "${S}"/test/parallel/test-fs-mkdir.js
274 - ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
275 - "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
276 - fi
277 -
278 - out/${BUILDTYPE}/cctest || die
279 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die
280 -}
281 -
282 -pkg_postinst() {
283 - elog "The global npm config lives in /etc/npm. This deviates slightly"
284 - elog "from upstream which otherwise would have it live in /usr/etc/."
285 - elog ""
286 - elog "Protip: When using node-gyp to install native modules, you can"
287 - elog "avoid having to download extras by doing the following:"
288 - elog "$ node-gyp --nodedir /usr/include/node <command>"
289 -}
290
291 diff --git a/net-libs/nodejs/nodejs-14.18.0.ebuild b/net-libs/nodejs/nodejs-14.18.0.ebuild
292 deleted file mode 100644
293 index 745a7dace6a9..000000000000
294 --- a/net-libs/nodejs/nodejs-14.18.0.ebuild
295 +++ /dev/null
296 @@ -1,242 +0,0 @@
297 -# Copyright 1999-2021 Gentoo Authors
298 -# Distributed under the terms of the GNU General Public License v2
299 -
300 -EAPI=7
301 -
302 -PYTHON_COMPAT=( python3_{8..10} )
303 -PYTHON_REQ_USE="threads(+)"
304 -
305 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
306 -
307 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
308 -HOMEPAGE="https://nodejs.org/"
309 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
310 -
311 -if [[ ${PV} == *9999 ]]; then
312 - inherit git-r3
313 - EGIT_REPO_URI="https://github.com/nodejs/node"
314 - SLOT="0"
315 -else
316 - SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
317 - SLOT="0/$(ver_cut 1)"
318 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 -riscv ~x86 ~amd64-linux ~x64-macos"
319 - S="${WORKDIR}/node-v${PV}"
320 -fi
321 -
322 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl systemtap test"
323 -REQUIRED_USE="inspector? ( icu ssl )
324 - npm? ( ssl )
325 - system-icu? ( icu )
326 - system-ssl? ( ssl )"
327 -
328 -RESTRICT="!test? ( test )"
329 -
330 -RDEPEND=">=app-arch/brotli-1.0.9:=
331 - >=dev-libs/libuv-1.40.0:=
332 - >=net-dns/c-ares-1.17.2:=
333 - >=net-libs/nghttp2-1.41.0:=
334 - sys-libs/zlib
335 - system-icu? ( >=dev-libs/icu-67:= )
336 - system-ssl? (
337 - >=dev-libs/openssl-1.1.1:0=
338 - <dev-libs/openssl-3.0.0_beta1:0=
339 - )"
340 -BDEPEND="${PYTHON_DEPS}
341 - sys-apps/coreutils
342 - virtual/pkgconfig
343 - systemtap? ( dev-util/systemtap )
344 - test? ( net-misc/curl )
345 - pax-kernel? ( sys-apps/elfix )"
346 -DEPEND="${RDEPEND}"
347 -
348 -PATCHES=(
349 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
350 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
351 - "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
352 - "${FILESDIR}"/${PN}-14.15.0-fix_ppc64_crashes.patch
353 -)
354 -
355 -pkg_pretend() {
356 - (use x86 && ! use cpu_flags_x86_sse2) && \
357 - die "Your CPU doesn't support the required SSE2 instruction."
358 -
359 - if [[ ${MERGE_TYPE} != "binary" ]]; then
360 - if use lto; then
361 - if tc-is-gcc; then
362 - if [[ $(gcc-major-version) -ge 11 ]]; then
363 - # Bug #787158
364 - die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild"
365 - fi
366 - else
367 - # configure.py will abort on this later if we do not
368 - die "${PN} only supports LTO for gcc"
369 - fi
370 - fi
371 - fi
372 -}
373 -
374 -src_prepare() {
375 - tc-export AR CC CXX PKG_CONFIG
376 - export V=1
377 - export BUILDTYPE=Release
378 -
379 - # fix compilation on Darwin
380 - # https://code.google.com/p/gyp/issues/detail?id=260
381 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
382 -
383 - # less verbose install output (stating the same as portage, basically)
384 - sed -i -e "/print/d" tools/install.py || die
385 -
386 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
387 - local LIBDIR=$(get_libdir)
388 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
389 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
390 -
391 - # Avoid writing a depfile, not useful
392 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
393 -
394 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
395 -
396 - # debug builds. change install path, remove optimisations and override buildtype
397 - if use debug; then
398 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
399 - BUILDTYPE=Debug
400 - fi
401 -
402 - # We need to disable mprotect on two files when it builds Bug 694100.
403 - use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
404 -
405 - # All this test does is check if the npm CLI produces warnings of any sort,
406 - # failing if it does. Overkill, much? Especially given one possible warning
407 - # is that there is a newer version of npm available upstream (yes, it does
408 - # use the network if available), thus making it a real possibility for this
409 - # test to begin failing one day even though it was fine before.
410 - rm -f test/parallel/test-release-npm.js
411 -
412 - default
413 -}
414 -
415 -src_configure() {
416 - xdg_environment_reset
417 -
418 - # LTO compiler flags are handled by configure.py itself
419 - filter-flags '-flto*'
420 -
421 - local myconf=(
422 - --shared-brotli
423 - --shared-cares
424 - --shared-libuv
425 - --shared-nghttp2
426 - --shared-zlib
427 - )
428 - use debug && myconf+=( --debug )
429 - use lto && myconf+=( --enable-lto )
430 - if use system-icu; then
431 - myconf+=( --with-intl=system-icu )
432 - elif use icu; then
433 - myconf+=( --with-intl=full-icu )
434 - else
435 - myconf+=( --with-intl=none )
436 - fi
437 - use inspector || myconf+=( --without-inspector )
438 - use npm || myconf+=( --without-npm )
439 - use snapshot || myconf+=( --without-node-snapshot )
440 - if use ssl; then
441 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
442 - else
443 - myconf+=( --without-ssl )
444 - fi
445 -
446 - local myarch=""
447 - case ${ABI} in
448 - amd64) myarch="x64";;
449 - arm) myarch="arm";;
450 - arm64) myarch="arm64";;
451 - ppc64) myarch="ppc64";;
452 - x32) myarch="x32";;
453 - x86) myarch="ia32";;
454 - *) myarch="${ABI}";;
455 - esac
456 -
457 - GYP_DEFINES="linux_use_gold_flags=0
458 - linux_use_bundled_binutils=0
459 - linux_use_bundled_gold=0" \
460 - "${EPYTHON}" configure.py \
461 - --prefix="${EPREFIX}"/usr \
462 - --dest-cpu=${myarch} \
463 - $(use_with systemtap dtrace) \
464 - "${myconf[@]}" || die
465 -}
466 -
467 -src_compile() {
468 - emake -C out
469 -}
470 -
471 -src_install() {
472 - local LIBDIR="${ED}/usr/$(get_libdir)"
473 - default
474 -
475 - pax-mark -m "${ED}"/usr/bin/node
476 -
477 - # set up a symlink structure that node-gyp expects..
478 - dodir /usr/include/node/deps/{v8,uv}
479 - dosym . /usr/include/node/src
480 - for var in deps/{uv,v8}/include; do
481 - dosym ../.. /usr/include/node/${var}
482 - done
483 -
484 - if use doc; then
485 - docinto html
486 - dodoc -r "${S}"/doc/*
487 - fi
488 -
489 - if use npm; then
490 - dodir /etc/npm
491 -
492 - # Install bash completion for `npm`
493 - # We need to temporarily replace default config path since
494 - # npm otherwise tries to write outside of the sandbox
495 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
496 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
497 - local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
498 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
499 - newbashcomp "${tmp_npm_completion_file}" npm
500 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
501 -
502 - # Move man pages
503 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
504 -
505 - # Clean up
506 - rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
507 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
508 -
509 - local find_exp="-or -name"
510 - local find_name=()
511 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
512 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
513 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
514 - find_name+=( ${find_exp} "${match}" )
515 - done
516 -
517 - # Remove various development and/or inappropriate files and
518 - # useless docs of dependend packages.
519 - find "${LIBDIR}"/node_modules \
520 - \( -type d -name examples \) -or \( -type f \( \
521 - -iname "LICEN?E*" \
522 - "${find_name[@]}" \
523 - \) \) -exec rm -rf "{}" \;
524 - fi
525 -
526 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
527 -}
528 -
529 -src_test() {
530 - if has usersandbox ${FEATURES}; then
531 - rm -f "${S}"/test/parallel/test-fs-mkdir.js
532 - ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
533 - "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
534 - fi
535 -
536 - out/${BUILDTYPE}/cctest || die
537 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die
538 -}
539
540 diff --git a/net-libs/nodejs/nodejs-14.18.1.ebuild b/net-libs/nodejs/nodejs-14.18.1.ebuild
541 deleted file mode 100644
542 index 745a7dace6a9..000000000000
543 --- a/net-libs/nodejs/nodejs-14.18.1.ebuild
544 +++ /dev/null
545 @@ -1,242 +0,0 @@
546 -# Copyright 1999-2021 Gentoo Authors
547 -# Distributed under the terms of the GNU General Public License v2
548 -
549 -EAPI=7
550 -
551 -PYTHON_COMPAT=( python3_{8..10} )
552 -PYTHON_REQ_USE="threads(+)"
553 -
554 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
555 -
556 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
557 -HOMEPAGE="https://nodejs.org/"
558 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
559 -
560 -if [[ ${PV} == *9999 ]]; then
561 - inherit git-r3
562 - EGIT_REPO_URI="https://github.com/nodejs/node"
563 - SLOT="0"
564 -else
565 - SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
566 - SLOT="0/$(ver_cut 1)"
567 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 -riscv ~x86 ~amd64-linux ~x64-macos"
568 - S="${WORKDIR}/node-v${PV}"
569 -fi
570 -
571 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl systemtap test"
572 -REQUIRED_USE="inspector? ( icu ssl )
573 - npm? ( ssl )
574 - system-icu? ( icu )
575 - system-ssl? ( ssl )"
576 -
577 -RESTRICT="!test? ( test )"
578 -
579 -RDEPEND=">=app-arch/brotli-1.0.9:=
580 - >=dev-libs/libuv-1.40.0:=
581 - >=net-dns/c-ares-1.17.2:=
582 - >=net-libs/nghttp2-1.41.0:=
583 - sys-libs/zlib
584 - system-icu? ( >=dev-libs/icu-67:= )
585 - system-ssl? (
586 - >=dev-libs/openssl-1.1.1:0=
587 - <dev-libs/openssl-3.0.0_beta1:0=
588 - )"
589 -BDEPEND="${PYTHON_DEPS}
590 - sys-apps/coreutils
591 - virtual/pkgconfig
592 - systemtap? ( dev-util/systemtap )
593 - test? ( net-misc/curl )
594 - pax-kernel? ( sys-apps/elfix )"
595 -DEPEND="${RDEPEND}"
596 -
597 -PATCHES=(
598 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
599 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
600 - "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
601 - "${FILESDIR}"/${PN}-14.15.0-fix_ppc64_crashes.patch
602 -)
603 -
604 -pkg_pretend() {
605 - (use x86 && ! use cpu_flags_x86_sse2) && \
606 - die "Your CPU doesn't support the required SSE2 instruction."
607 -
608 - if [[ ${MERGE_TYPE} != "binary" ]]; then
609 - if use lto; then
610 - if tc-is-gcc; then
611 - if [[ $(gcc-major-version) -ge 11 ]]; then
612 - # Bug #787158
613 - die "LTO builds of ${PN} using gcc-11+ currently fail tests and produce runtime errors. Either switch to gcc-10 or unset USE=lto for this ebuild"
614 - fi
615 - else
616 - # configure.py will abort on this later if we do not
617 - die "${PN} only supports LTO for gcc"
618 - fi
619 - fi
620 - fi
621 -}
622 -
623 -src_prepare() {
624 - tc-export AR CC CXX PKG_CONFIG
625 - export V=1
626 - export BUILDTYPE=Release
627 -
628 - # fix compilation on Darwin
629 - # https://code.google.com/p/gyp/issues/detail?id=260
630 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
631 -
632 - # less verbose install output (stating the same as portage, basically)
633 - sed -i -e "/print/d" tools/install.py || die
634 -
635 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
636 - local LIBDIR=$(get_libdir)
637 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
638 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
639 -
640 - # Avoid writing a depfile, not useful
641 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
642 -
643 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
644 -
645 - # debug builds. change install path, remove optimisations and override buildtype
646 - if use debug; then
647 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
648 - BUILDTYPE=Debug
649 - fi
650 -
651 - # We need to disable mprotect on two files when it builds Bug 694100.
652 - use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
653 -
654 - # All this test does is check if the npm CLI produces warnings of any sort,
655 - # failing if it does. Overkill, much? Especially given one possible warning
656 - # is that there is a newer version of npm available upstream (yes, it does
657 - # use the network if available), thus making it a real possibility for this
658 - # test to begin failing one day even though it was fine before.
659 - rm -f test/parallel/test-release-npm.js
660 -
661 - default
662 -}
663 -
664 -src_configure() {
665 - xdg_environment_reset
666 -
667 - # LTO compiler flags are handled by configure.py itself
668 - filter-flags '-flto*'
669 -
670 - local myconf=(
671 - --shared-brotli
672 - --shared-cares
673 - --shared-libuv
674 - --shared-nghttp2
675 - --shared-zlib
676 - )
677 - use debug && myconf+=( --debug )
678 - use lto && myconf+=( --enable-lto )
679 - if use system-icu; then
680 - myconf+=( --with-intl=system-icu )
681 - elif use icu; then
682 - myconf+=( --with-intl=full-icu )
683 - else
684 - myconf+=( --with-intl=none )
685 - fi
686 - use inspector || myconf+=( --without-inspector )
687 - use npm || myconf+=( --without-npm )
688 - use snapshot || myconf+=( --without-node-snapshot )
689 - if use ssl; then
690 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
691 - else
692 - myconf+=( --without-ssl )
693 - fi
694 -
695 - local myarch=""
696 - case ${ABI} in
697 - amd64) myarch="x64";;
698 - arm) myarch="arm";;
699 - arm64) myarch="arm64";;
700 - ppc64) myarch="ppc64";;
701 - x32) myarch="x32";;
702 - x86) myarch="ia32";;
703 - *) myarch="${ABI}";;
704 - esac
705 -
706 - GYP_DEFINES="linux_use_gold_flags=0
707 - linux_use_bundled_binutils=0
708 - linux_use_bundled_gold=0" \
709 - "${EPYTHON}" configure.py \
710 - --prefix="${EPREFIX}"/usr \
711 - --dest-cpu=${myarch} \
712 - $(use_with systemtap dtrace) \
713 - "${myconf[@]}" || die
714 -}
715 -
716 -src_compile() {
717 - emake -C out
718 -}
719 -
720 -src_install() {
721 - local LIBDIR="${ED}/usr/$(get_libdir)"
722 - default
723 -
724 - pax-mark -m "${ED}"/usr/bin/node
725 -
726 - # set up a symlink structure that node-gyp expects..
727 - dodir /usr/include/node/deps/{v8,uv}
728 - dosym . /usr/include/node/src
729 - for var in deps/{uv,v8}/include; do
730 - dosym ../.. /usr/include/node/${var}
731 - done
732 -
733 - if use doc; then
734 - docinto html
735 - dodoc -r "${S}"/doc/*
736 - fi
737 -
738 - if use npm; then
739 - dodir /etc/npm
740 -
741 - # Install bash completion for `npm`
742 - # We need to temporarily replace default config path since
743 - # npm otherwise tries to write outside of the sandbox
744 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
745 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
746 - local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
747 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
748 - newbashcomp "${tmp_npm_completion_file}" npm
749 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
750 -
751 - # Move man pages
752 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
753 -
754 - # Clean up
755 - rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
756 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
757 -
758 - local find_exp="-or -name"
759 - local find_name=()
760 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
761 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
762 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
763 - find_name+=( ${find_exp} "${match}" )
764 - done
765 -
766 - # Remove various development and/or inappropriate files and
767 - # useless docs of dependend packages.
768 - find "${LIBDIR}"/node_modules \
769 - \( -type d -name examples \) -or \( -type f \( \
770 - -iname "LICEN?E*" \
771 - "${find_name[@]}" \
772 - \) \) -exec rm -rf "{}" \;
773 - fi
774 -
775 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
776 -}
777 -
778 -src_test() {
779 - if has usersandbox ${FEATURES}; then
780 - rm -f "${S}"/test/parallel/test-fs-mkdir.js
781 - ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
782 - "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
783 - fi
784 -
785 - out/${BUILDTYPE}/cctest || die
786 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die
787 -}