Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/
Date: Thu, 22 Apr 2021 15:27:35
Message-Id: 1619105239.bffa7fb628dc6f053829e7cb203f33f0ed59eee8.marecki@gentoo
1 commit: bffa7fb628dc6f053829e7cb203f33f0ed59eee8
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 22 14:12:21 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 22 15:27:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bffa7fb6
7
8 net-libs/nodejs: drop 15.14.0
9
10 v15 is a development branch, now superseded by v16.
11
12 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
13
14 net-libs/nodejs/Manifest | 1 -
15 net-libs/nodejs/nodejs-15.14.0.ebuild | 204 ----------------------------------
16 2 files changed, 205 deletions(-)
17
18 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
19 index 5d6d3c41c13..fef3a8ebafa 100644
20 --- a/net-libs/nodejs/Manifest
21 +++ b/net-libs/nodejs/Manifest
22 @@ -1,4 +1,3 @@
23 DIST node-v12.22.1.tar.xz 23650180 BLAKE2B 90b0a8ab3842483fea0c776e0245e63539a986c18f55abd8c7cd22ec399ccde22fa5b008d3e07c0f07713b5a45a1ee2a0bc370c04408800db2ee59cd92fcb5be SHA512 eaead633611bda04ab9be200aeddf3b4004b8104e9c6af246023b8008003dd3a7103e1508ea690443e59c6591521b04a2d71c7344343f2a20d1c935ef51c66a0
24 DIST node-v14.16.1.tar.xz 33297064 BLAKE2B 0927434c63cd248e90a4002b50c7a0fd68a5527a4cd7424b451840ddf0c403ba452979b195e598cc3b323e24233248a74a1274519ce8cd3a2f4e71dc7a8f3dcb SHA512 d4f5fbab69592ae555613b2186090b85a458d2211b6035989aee2617bfd0f6768ca767ec45ce12756a9c452d00af7237edee3b1ae526049e9fcd01f8f67680c0
25 -DIST node-v15.14.0.tar.xz 33324232 BLAKE2B 30639a4e87954226de57070457e34caad205d19a4446beb22735383d1576c9e529f7d10fb0da4c808963ae719b00d894cd92838bdd3dbe7ba72e354a22a9455e SHA512 781a18694760b5ef280aa439ac5641ab1bccd3a9ec4733528bd5078bbca4e10da3ebafde9d74580445d193acb7d15d1b9864c0ceee345bc06e956352f59366c4
26 DIST node-v16.0.0.tar.xz 33784448 BLAKE2B 3286cf6522074cb7b17dce8fce642204777fef26fd4bdb904fdef638061913a1eccda13b8e2f170906dd9098500c8fae7eaea7275e41bf97ea6d9fdd644b215c SHA512 6b976a8959079751bfdece15614a6286088d9145fc4db4ae048aca2ede4b7e38e86e91b1722be51eb4c934749a144a745e425ccf118bed9848c30ff254de2557
27
28 diff --git a/net-libs/nodejs/nodejs-15.14.0.ebuild b/net-libs/nodejs/nodejs-15.14.0.ebuild
29 deleted file mode 100644
30 index 9ef4cb031dd..00000000000
31 --- a/net-libs/nodejs/nodejs-15.14.0.ebuild
32 +++ /dev/null
33 @@ -1,204 +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_{7..9} )
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 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
47 -
48 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
49 -SLOT="0/$(ver_cut 1)"
50 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x64-macos"
51 -
52 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector +npm pax_kernel +snapshot +ssl system-icu +system-ssl systemtap test"
53 -REQUIRED_USE="inspector? ( icu ssl )
54 - npm? ( ssl )
55 - system-icu? ( icu )
56 - system-ssl? ( ssl )"
57 -
58 -# FIXME: test-fs-mkdir fails with "no such file or directory". Investigate.
59 -RESTRICT="test"
60 -
61 -RDEPEND=">=app-arch/brotli-1.0.9
62 - >=dev-libs/libuv-1.40.0:=
63 - >=net-dns/c-ares-1.17.0
64 - >=net-libs/nghttp2-1.41.0
65 - sys-libs/zlib
66 - system-icu? ( >=dev-libs/icu-67:= )
67 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )"
68 -BDEPEND="${PYTHON_DEPS}
69 - sys-apps/coreutils
70 - virtual/pkgconfig
71 - systemtap? ( dev-util/systemtap )
72 - test? ( net-misc/curl )
73 - pax_kernel? ( sys-apps/elfix )"
74 -DEPEND="${RDEPEND}"
75 -
76 -PATCHES=(
77 - "${FILESDIR}"/${PN}-14.16.1-v8_icu69.patch
78 - "${FILESDIR}"/${PN}-15.2.0-global-npm-config.patch
79 -)
80 -
81 -S="${WORKDIR}/node-v${PV}"
82 -
83 -pkg_pretend() {
84 - (use x86 && ! use cpu_flags_x86_sse2) && \
85 - die "Your CPU doesn't support the required SSE2 instruction."
86 -}
87 -
88 -src_prepare() {
89 - tc-export AR CC CXX PKG_CONFIG
90 - export V=1
91 - export BUILDTYPE=Release
92 -
93 - # fix compilation on Darwin
94 - # https://code.google.com/p/gyp/issues/detail?id=260
95 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
96 -
97 - # less verbose install output (stating the same as portage, basically)
98 - sed -i -e "/print/d" tools/install.py || die
99 -
100 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
101 - local LIBDIR=$(get_libdir)
102 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
103 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
104 -
105 - # Avoid writing a depfile, not useful
106 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
107 -
108 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
109 -
110 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
111 - # seem sandbox related either (invoking it from a sandbox works fine).
112 - # The issue is that no stdin handle is openened when asked for one.
113 - # It doesn't really belong upstream , so it'll just be removed until someone
114 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
115 - rm test/parallel/test-stdout-close-unref.js || die
116 -
117 - # debug builds. change install path, remove optimisations and override buildtype
118 - if use debug; then
119 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
120 - BUILDTYPE=Debug
121 - fi
122 -
123 - # We need to disable mprotect on two files when it builds Bug 694100.
124 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
125 -
126 - default
127 -}
128 -
129 -src_configure() {
130 - xdg_environment_reset
131 -
132 - local myconf=(
133 - --shared-brotli
134 - --shared-cares
135 - --shared-libuv
136 - --shared-nghttp2
137 - --shared-zlib
138 - )
139 - use debug && myconf+=( --debug )
140 - if use system-icu; then
141 - myconf+=( --with-intl=system-icu )
142 - elif use icu; then
143 - myconf+=( --with-intl=full-icu )
144 - else
145 - myconf+=( --with-intl=none )
146 - fi
147 - use inspector || myconf+=( --without-inspector )
148 - use npm || myconf+=( --without-npm )
149 - use snapshot || myconf+=( --without-node-snapshot )
150 - if use ssl; then
151 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
152 - else
153 - myconf+=( --without-ssl )
154 - fi
155 -
156 - local myarch=""
157 - case ${ABI} in
158 - amd64) myarch="x64";;
159 - arm) myarch="arm";;
160 - arm64) myarch="arm64";;
161 - ppc64) myarch="ppc64";;
162 - x32) myarch="x32";;
163 - x86) myarch="ia32";;
164 - *) myarch="${ABI}";;
165 - esac
166 -
167 - GYP_DEFINES="linux_use_gold_flags=0
168 - linux_use_bundled_binutils=0
169 - linux_use_bundled_gold=0" \
170 - "${EPYTHON}" configure.py \
171 - --prefix="${EPREFIX}"/usr \
172 - --dest-cpu=${myarch} \
173 - $(use_with systemtap dtrace) \
174 - "${myconf[@]}" || die
175 -}
176 -
177 -src_compile() {
178 - emake -C out
179 -}
180 -
181 -src_install() {
182 - local LIBDIR="${ED}/usr/$(get_libdir)"
183 - default
184 -
185 - pax-mark -m "${ED}"/usr/bin/node
186 -
187 - # set up a symlink structure that node-gyp expects..
188 - dodir /usr/include/node/deps/{v8,uv}
189 - dosym . /usr/include/node/src
190 - for var in deps/{uv,v8}/include; do
191 - dosym ../.. /usr/include/node/${var}
192 - done
193 -
194 - if use doc; then
195 - docinto html
196 - dodoc -r "${S}"/doc/*
197 - fi
198 -
199 - if use npm; then
200 - keepdir /etc/npm
201 -
202 - # Install bash completion for `npm`
203 - local tmp_npm_completion_file="$(TMPDIR="${T}" mktemp -t npm.XXXXXXXXXX)"
204 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
205 - newbashcomp "${tmp_npm_completion_file}" npm
206 -
207 - # Move man pages
208 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
209 -
210 - # Clean up
211 - rm -f "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile}
212 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man}
213 -
214 - local find_exp="-or -name"
215 - local find_name=()
216 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
217 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
218 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
219 - find_name+=( ${find_exp} "${match}" )
220 - done
221 -
222 - # Remove various development and/or inappropriate files and
223 - # useless docs of dependend packages.
224 - find "${LIBDIR}"/node_modules \
225 - \( -type d -name examples \) -or \( -type f \( \
226 - -iname "LICEN?E*" \
227 - "${find_name[@]}" \
228 - \) \) -exec rm -rf "{}" \;
229 - fi
230 -
231 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
232 -}
233 -
234 -src_test() {
235 - out/${BUILDTYPE}/cctest || die
236 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
237 -}