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: Fri, 03 Jun 2022 19:31:18
Message-Id: 1654284664.f373de6659e11fcc09bdf6da0a38ae006546f649.williamh@gentoo
1 commit: f373de6659e11fcc09bdf6da0a38ae006546f649
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 19:29:08 2022 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 19:31:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f373de66
7
8 net-libs/nodejs: drop 14.17.5-r1, 14.17.6
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 net-libs/nodejs/Manifest | 2 -
13 net-libs/nodejs/nodejs-14.17.5-r1.ebuild | 243 -------------------------------
14 net-libs/nodejs/nodejs-14.17.6.ebuild | 243 -------------------------------
15 3 files changed, 488 deletions(-)
16
17 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
18 index 87522eb70862..f91312386124 100644
19 --- a/net-libs/nodejs/Manifest
20 +++ b/net-libs/nodejs/Manifest
21 @@ -1,5 +1,3 @@
22 -DIST node-v14.17.5.tar.xz 33585724 BLAKE2B cf79397caad8c81e4096f344f9fdb88d8ecea44b97fe208256dfd4afb750ecdf52142a2dc0430285b9d5117bdd43fa5ce42b4418926eec4d2c7f0a5f5d1a1539 SHA512 9d62c8946d05862d96a13a71b241a097b9f592a9e5f7362c81d8f3c74e7c5546a308b4c74bef34a66cafeef5d1a87d9d3e5ae8bb87d470c1ecf5abb8de0dedb5
23 -DIST node-v14.17.6.tar.xz 33606464 BLAKE2B c2c449e5eaf8214d7ed4bfab8db0208034cee1d08ef0e1fca478c30fc5cf95be037eb141080dbcfbe4fc58ef734457747dcbd0fe585a0536f9c0bec495435f25 SHA512 581c5698112426042fbf54fa793e56a30cae0c54ce8f23af6ac20d73c69a4f1166c5410f357c5a7b0409a773f99e3b9291e4afffd53b3c0e00569725dc4c47d3
24 DIST node-v14.19.0.tar.xz 34486868 BLAKE2B 12e571a366c1d4b2475ef258e338f516bb81e9c08f7e6b7f951decbf371028cdcf32c72181d8504d0890496eaecce0d6b23437b8dad6c6e498d30bf6636bd1e7 SHA512 80573fa3a0882c1f2a40b991f187f49714748ca4c56c78133e2d2be0322f201816eb059a1a7d38ea8a925229c1b1324d0ffc28ff4002d0115bfae44fe87efe97
25 DIST node-v14.19.3.tar.xz 34483792 BLAKE2B 24b598b4c613ad63f8a2ffa15b2ad5663eef68e75842fac4ef988b43f8e6f9c1a242c9b352c411661dc7d1c9f6800426e12934fc4e7788061a8b9f918491a9b7 SHA512 0d03d9efee23664faf368a6ab42fa7d653033aebda1f2730c80692577825e31ff5522f1a940933245050a6f9af4ee64b6d65fc890e3d2ecfced327a909b63b6f
26 DIST node-v16.14.2.tar.xz 34332624 BLAKE2B 756895f81ecabbacf30b1e513890d100192c367443a5d041cd3e383985acb6fae189213f44b7a533b43d1b759d5a2677a5ee787c72d3abdb480879d6d24cc95e SHA512 b97274f6e0d63f19e01497c43af36e6561f019e7b0b5b4f6ea19d0fbe2cb4d3c514c06f49e237d1e327936db03c3f437ae0d0b2f830a35f1b7c3a723fbe2a1be
27
28 diff --git a/net-libs/nodejs/nodejs-14.17.5-r1.ebuild b/net-libs/nodejs/nodejs-14.17.5-r1.ebuild
29 deleted file mode 100644
30 index 07bb48eee028..000000000000
31 --- a/net-libs/nodejs/nodejs-14.17.5-r1.ebuild
32 +++ /dev/null
33 @@ -1,243 +0,0 @@
34 -# Copyright 1999-2021 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -PYTHON_COMPAT=( python3_{8..10} )
40 -PYTHON_REQ_USE="threads(+)"
41 -
42 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
43 -
44 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
45 -HOMEPAGE="https://nodejs.org/"
46 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
47 -
48 -if [[ ${PV} == *9999 ]]; then
49 - inherit git-r3
50 - EGIT_REPO_URI="https://github.com/nodejs/node"
51 - SLOT="0"
52 -else
53 - SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
54 - SLOT="0/$(ver_cut 1)"
55 - KEYWORDS="amd64 arm arm64 ppc64 x86 ~amd64-linux ~x64-macos"
56 - S="${WORKDIR}/node-v${PV}"
57 -fi
58 -
59 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl systemtap test"
60 -REQUIRED_USE="inspector? ( icu ssl )
61 - npm? ( ssl )
62 - system-icu? ( icu )
63 - system-ssl? ( ssl )"
64 -
65 -RESTRICT="!test? ( test )"
66 -
67 -RDEPEND=">=app-arch/brotli-1.0.9:=
68 - >=dev-libs/libuv-1.40.0:=
69 - >=net-dns/c-ares-1.17.2:=
70 - >=net-libs/nghttp2-1.41.0:=
71 - sys-libs/zlib
72 - system-icu? ( >=dev-libs/icu-67:= )
73 - system-ssl? (
74 - >=dev-libs/openssl-1.1.1:0=
75 - <dev-libs/openssl-3.0.0_beta1:0=
76 - )"
77 -BDEPEND="${PYTHON_DEPS}
78 - sys-apps/coreutils
79 - virtual/pkgconfig
80 - systemtap? ( dev-util/systemtap )
81 - test? ( net-misc/curl )
82 - pax-kernel? ( sys-apps/elfix )"
83 -DEPEND="${RDEPEND}"
84 -
85 -PATCHES=(
86 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
87 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
88 - "${FILESDIR}"/${PN}-12.22.1-uvwasi_shared_libuv.patch
89 - "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
90 - "${FILESDIR}"/${PN}-14.15.0-fix_ppc64_crashes.patch
91 -)
92 -
93 -pkg_pretend() {
94 - (use x86 && ! use cpu_flags_x86_sse2) && \
95 - die "Your CPU doesn't support the required SSE2 instruction."
96 -
97 - if [[ ${MERGE_TYPE} != "binary" ]]; then
98 - if use lto; then
99 - if tc-is-gcc; then
100 - if [[ $(gcc-major-version) -ge 11 ]]; then
101 - # Bug #787158
102 - 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"
103 - fi
104 - else
105 - # configure.py will abort on this later if we do not
106 - die "${PN} only supports LTO for gcc"
107 - fi
108 - fi
109 - fi
110 -}
111 -
112 -src_prepare() {
113 - tc-export AR CC CXX PKG_CONFIG
114 - export V=1
115 - export BUILDTYPE=Release
116 -
117 - # fix compilation on Darwin
118 - # https://code.google.com/p/gyp/issues/detail?id=260
119 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
120 -
121 - # less verbose install output (stating the same as portage, basically)
122 - sed -i -e "/print/d" tools/install.py || die
123 -
124 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
125 - local LIBDIR=$(get_libdir)
126 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
127 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
128 -
129 - # Avoid writing a depfile, not useful
130 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
131 -
132 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
133 -
134 - # debug builds. change install path, remove optimisations and override buildtype
135 - if use debug; then
136 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
137 - BUILDTYPE=Debug
138 - fi
139 -
140 - # We need to disable mprotect on two files when it builds Bug 694100.
141 - use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
142 -
143 - # All this test does is check if the npm CLI produces warnings of any sort,
144 - # failing if it does. Overkill, much? Especially given one possible warning
145 - # is that there is a newer version of npm available upstream (yes, it does
146 - # use the network if available), thus making it a real possibility for this
147 - # test to begin failing one day even though it was fine before.
148 - rm -f test/parallel/test-release-npm.js
149 -
150 - default
151 -}
152 -
153 -src_configure() {
154 - xdg_environment_reset
155 -
156 - # LTO compiler flags are handled by configure.py itself
157 - filter-flags '-flto*'
158 -
159 - local myconf=(
160 - --shared-brotli
161 - --shared-cares
162 - --shared-libuv
163 - --shared-nghttp2
164 - --shared-zlib
165 - )
166 - use debug && myconf+=( --debug )
167 - use lto && myconf+=( --enable-lto )
168 - if use system-icu; then
169 - myconf+=( --with-intl=system-icu )
170 - elif use icu; then
171 - myconf+=( --with-intl=full-icu )
172 - else
173 - myconf+=( --with-intl=none )
174 - fi
175 - use inspector || myconf+=( --without-inspector )
176 - use npm || myconf+=( --without-npm )
177 - use snapshot || myconf+=( --without-node-snapshot )
178 - if use ssl; then
179 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
180 - else
181 - myconf+=( --without-ssl )
182 - fi
183 -
184 - local myarch=""
185 - case ${ABI} in
186 - amd64) myarch="x64";;
187 - arm) myarch="arm";;
188 - arm64) myarch="arm64";;
189 - ppc64) myarch="ppc64";;
190 - x32) myarch="x32";;
191 - x86) myarch="ia32";;
192 - *) myarch="${ABI}";;
193 - esac
194 -
195 - GYP_DEFINES="linux_use_gold_flags=0
196 - linux_use_bundled_binutils=0
197 - linux_use_bundled_gold=0" \
198 - "${EPYTHON}" configure.py \
199 - --prefix="${EPREFIX}"/usr \
200 - --dest-cpu=${myarch} \
201 - $(use_with systemtap dtrace) \
202 - "${myconf[@]}" || die
203 -}
204 -
205 -src_compile() {
206 - emake -C out
207 -}
208 -
209 -src_install() {
210 - local LIBDIR="${ED}/usr/$(get_libdir)"
211 - default
212 -
213 - pax-mark -m "${ED}"/usr/bin/node
214 -
215 - # set up a symlink structure that node-gyp expects..
216 - dodir /usr/include/node/deps/{v8,uv}
217 - dosym . /usr/include/node/src
218 - for var in deps/{uv,v8}/include; do
219 - dosym ../.. /usr/include/node/${var}
220 - done
221 -
222 - if use doc; then
223 - docinto html
224 - dodoc -r "${S}"/doc/*
225 - fi
226 -
227 - if use npm; then
228 - dodir /etc/npm
229 -
230 - # Install bash completion for `npm`
231 - # We need to temporarily replace default config path since
232 - # npm otherwise tries to write outside of the sandbox
233 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
234 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
235 - local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
236 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
237 - newbashcomp "${tmp_npm_completion_file}" npm
238 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
239 -
240 - # Move man pages
241 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
242 -
243 - # Clean up
244 - rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
245 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
246 -
247 - local find_exp="-or -name"
248 - local find_name=()
249 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
250 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
251 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
252 - find_name+=( ${find_exp} "${match}" )
253 - done
254 -
255 - # Remove various development and/or inappropriate files and
256 - # useless docs of dependend packages.
257 - find "${LIBDIR}"/node_modules \
258 - \( -type d -name examples \) -or \( -type f \( \
259 - -iname "LICEN?E*" \
260 - "${find_name[@]}" \
261 - \) \) -exec rm -rf "{}" \;
262 - fi
263 -
264 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
265 -}
266 -
267 -src_test() {
268 - if has usersandbox ${FEATURES}; then
269 - rm -f "${S}"/test/parallel/test-fs-mkdir.js
270 - ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
271 - "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
272 - fi
273 -
274 - out/${BUILDTYPE}/cctest || die
275 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die
276 -}
277
278 diff --git a/net-libs/nodejs/nodejs-14.17.6.ebuild b/net-libs/nodejs/nodejs-14.17.6.ebuild
279 deleted file mode 100644
280 index dc855697bb82..000000000000
281 --- a/net-libs/nodejs/nodejs-14.17.6.ebuild
282 +++ /dev/null
283 @@ -1,243 +0,0 @@
284 -# Copyright 1999-2021 Gentoo Authors
285 -# Distributed under the terms of the GNU General Public License v2
286 -
287 -EAPI=7
288 -
289 -PYTHON_COMPAT=( python3_{8..10} )
290 -PYTHON_REQ_USE="threads(+)"
291 -
292 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
293 -
294 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
295 -HOMEPAGE="https://nodejs.org/"
296 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
297 -
298 -if [[ ${PV} == *9999 ]]; then
299 - inherit git-r3
300 - EGIT_REPO_URI="https://github.com/nodejs/node"
301 - SLOT="0"
302 -else
303 - SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
304 - SLOT="0/$(ver_cut 1)"
305 - KEYWORDS="amd64 arm arm64 ppc64 -riscv x86 ~amd64-linux ~x64-macos"
306 - S="${WORKDIR}/node-v${PV}"
307 -fi
308 -
309 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector lto +npm pax-kernel +snapshot +ssl +system-icu +system-ssl systemtap test"
310 -REQUIRED_USE="inspector? ( icu ssl )
311 - npm? ( ssl )
312 - system-icu? ( icu )
313 - system-ssl? ( ssl )"
314 -
315 -RESTRICT="!test? ( test )"
316 -
317 -RDEPEND=">=app-arch/brotli-1.0.9:=
318 - >=dev-libs/libuv-1.40.0:=
319 - >=net-dns/c-ares-1.17.2:=
320 - >=net-libs/nghttp2-1.41.0:=
321 - sys-libs/zlib
322 - system-icu? ( >=dev-libs/icu-67:= )
323 - system-ssl? (
324 - >=dev-libs/openssl-1.1.1:0=
325 - <dev-libs/openssl-3.0.0_beta1:0=
326 - )"
327 -BDEPEND="${PYTHON_DEPS}
328 - sys-apps/coreutils
329 - virtual/pkgconfig
330 - systemtap? ( dev-util/systemtap )
331 - test? ( net-misc/curl )
332 - pax-kernel? ( sys-apps/elfix )"
333 -DEPEND="${RDEPEND}"
334 -
335 -PATCHES=(
336 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
337 - "${FILESDIR}"/${PN}-12.22.1-jinja_collections_abc.patch
338 - "${FILESDIR}"/${PN}-12.22.1-uvwasi_shared_libuv.patch
339 - "${FILESDIR}"/${PN}-12.22.5-shared_c-ares_nameser_h.patch
340 - "${FILESDIR}"/${PN}-14.15.0-fix_ppc64_crashes.patch
341 -)
342 -
343 -pkg_pretend() {
344 - (use x86 && ! use cpu_flags_x86_sse2) && \
345 - die "Your CPU doesn't support the required SSE2 instruction."
346 -
347 - if [[ ${MERGE_TYPE} != "binary" ]]; then
348 - if use lto; then
349 - if tc-is-gcc; then
350 - if [[ $(gcc-major-version) -ge 11 ]]; then
351 - # Bug #787158
352 - 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"
353 - fi
354 - else
355 - # configure.py will abort on this later if we do not
356 - die "${PN} only supports LTO for gcc"
357 - fi
358 - fi
359 - fi
360 -}
361 -
362 -src_prepare() {
363 - tc-export AR CC CXX PKG_CONFIG
364 - export V=1
365 - export BUILDTYPE=Release
366 -
367 - # fix compilation on Darwin
368 - # https://code.google.com/p/gyp/issues/detail?id=260
369 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
370 -
371 - # less verbose install output (stating the same as portage, basically)
372 - sed -i -e "/print/d" tools/install.py || die
373 -
374 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
375 - local LIBDIR=$(get_libdir)
376 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
377 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
378 -
379 - # Avoid writing a depfile, not useful
380 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
381 -
382 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
383 -
384 - # debug builds. change install path, remove optimisations and override buildtype
385 - if use debug; then
386 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
387 - BUILDTYPE=Debug
388 - fi
389 -
390 - # We need to disable mprotect on two files when it builds Bug 694100.
391 - use pax-kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
392 -
393 - # All this test does is check if the npm CLI produces warnings of any sort,
394 - # failing if it does. Overkill, much? Especially given one possible warning
395 - # is that there is a newer version of npm available upstream (yes, it does
396 - # use the network if available), thus making it a real possibility for this
397 - # test to begin failing one day even though it was fine before.
398 - rm -f test/parallel/test-release-npm.js
399 -
400 - default
401 -}
402 -
403 -src_configure() {
404 - xdg_environment_reset
405 -
406 - # LTO compiler flags are handled by configure.py itself
407 - filter-flags '-flto*'
408 -
409 - local myconf=(
410 - --shared-brotli
411 - --shared-cares
412 - --shared-libuv
413 - --shared-nghttp2
414 - --shared-zlib
415 - )
416 - use debug && myconf+=( --debug )
417 - use lto && myconf+=( --enable-lto )
418 - if use system-icu; then
419 - myconf+=( --with-intl=system-icu )
420 - elif use icu; then
421 - myconf+=( --with-intl=full-icu )
422 - else
423 - myconf+=( --with-intl=none )
424 - fi
425 - use inspector || myconf+=( --without-inspector )
426 - use npm || myconf+=( --without-npm )
427 - use snapshot || myconf+=( --without-node-snapshot )
428 - if use ssl; then
429 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
430 - else
431 - myconf+=( --without-ssl )
432 - fi
433 -
434 - local myarch=""
435 - case ${ABI} in
436 - amd64) myarch="x64";;
437 - arm) myarch="arm";;
438 - arm64) myarch="arm64";;
439 - ppc64) myarch="ppc64";;
440 - x32) myarch="x32";;
441 - x86) myarch="ia32";;
442 - *) myarch="${ABI}";;
443 - esac
444 -
445 - GYP_DEFINES="linux_use_gold_flags=0
446 - linux_use_bundled_binutils=0
447 - linux_use_bundled_gold=0" \
448 - "${EPYTHON}" configure.py \
449 - --prefix="${EPREFIX}"/usr \
450 - --dest-cpu=${myarch} \
451 - $(use_with systemtap dtrace) \
452 - "${myconf[@]}" || die
453 -}
454 -
455 -src_compile() {
456 - emake -C out
457 -}
458 -
459 -src_install() {
460 - local LIBDIR="${ED}/usr/$(get_libdir)"
461 - default
462 -
463 - pax-mark -m "${ED}"/usr/bin/node
464 -
465 - # set up a symlink structure that node-gyp expects..
466 - dodir /usr/include/node/deps/{v8,uv}
467 - dosym . /usr/include/node/src
468 - for var in deps/{uv,v8}/include; do
469 - dosym ../.. /usr/include/node/${var}
470 - done
471 -
472 - if use doc; then
473 - docinto html
474 - dodoc -r "${S}"/doc/*
475 - fi
476 -
477 - if use npm; then
478 - dodir /etc/npm
479 -
480 - # Install bash completion for `npm`
481 - # We need to temporarily replace default config path since
482 - # npm otherwise tries to write outside of the sandbox
483 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
484 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
485 - local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
486 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
487 - newbashcomp "${tmp_npm_completion_file}" npm
488 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
489 -
490 - # Move man pages
491 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
492 -
493 - # Clean up
494 - rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
495 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
496 -
497 - local find_exp="-or -name"
498 - local find_name=()
499 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
500 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
501 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
502 - find_name+=( ${find_exp} "${match}" )
503 - done
504 -
505 - # Remove various development and/or inappropriate files and
506 - # useless docs of dependend packages.
507 - find "${LIBDIR}"/node_modules \
508 - \( -type d -name examples \) -or \( -type f \( \
509 - -iname "LICEN?E*" \
510 - "${find_name[@]}" \
511 - \) \) -exec rm -rf "{}" \;
512 - fi
513 -
514 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
515 -}
516 -
517 -src_test() {
518 - if has usersandbox ${FEATURES}; then
519 - rm -f "${S}"/test/parallel/test-fs-mkdir.js
520 - ewarn "You are emerging ${PN} with 'usersandbox' enabled. Excluding tests known to fail in this mode." \
521 - "For full test coverage, emerge =${CATEGORY}/${PF} with 'FEATURES=-usersandbox'."
522 - fi
523 -
524 - out/${BUILDTYPE}/cctest || die
525 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} --flaky-tests=dontcare -J message parallel sequential || die
526 -}