Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/, net-libs/nodejs/files/
Date: Thu, 27 Aug 2020 17:48:27
Message-Id: 1598550502.da795fc618b5ea34652ca7426a025230fbe9d663.jer@gentoo
1 commit: da795fc618b5ea34652ca7426a025230fbe9d663
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 17:42:58 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 17:48:22 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da795fc6
7
8 net-libs/nodejs: Old
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-libs/nodejs/Manifest | 12 --
14 net-libs/nodejs/files/nodejs-99999999-llhttp.patch | 20 --
15 net-libs/nodejs/nodejs-10.19.0.ebuild | 205 --------------------
16 net-libs/nodejs/nodejs-10.20.1.ebuild | 205 --------------------
17 net-libs/nodejs/nodejs-10.21.0.ebuild | 205 --------------------
18 net-libs/nodejs/nodejs-12.16.1.ebuild | 213 ---------------------
19 net-libs/nodejs/nodejs-12.16.2.ebuild | 213 ---------------------
20 net-libs/nodejs/nodejs-12.16.3.ebuild | 213 ---------------------
21 net-libs/nodejs/nodejs-12.17.0.ebuild | 213 ---------------------
22 net-libs/nodejs/nodejs-14.3.0.ebuild | 200 -------------------
23 net-libs/nodejs/nodejs-14.5.0.ebuild | 200 -------------------
24 net-libs/nodejs/nodejs-14.6.0.ebuild | 200 -------------------
25 net-libs/nodejs/nodejs-14.7.0.ebuild | 200 -------------------
26 net-libs/nodejs/nodejs-8.12.0.ebuild | 203 --------------------
27 14 files changed, 2502 deletions(-)
28
29 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
30 index b09aeb4886e..04de0ee0ad3 100644
31 --- a/net-libs/nodejs/Manifest
32 +++ b/net-libs/nodejs/Manifest
33 @@ -1,16 +1,4 @@
34 -DIST node-v10.19.0.tar.xz 21906168 BLAKE2B 395504ef3befa47d8b967114e019e6a76c799871e7eb21e2c6c0453655ffa07f17f42209daddeb5417342cfbad71ba1a35ae15a2d210b692bc60be270c2fc415 SHA512 512efc58415ed789938c434af131d76bdd51772cac9f7e380afaa79d83cc9c433a979068fc7272adba6ba6551d195267978e1fc819236926b0d1fd6cf91c5eee
35 -DIST node-v10.20.1.tar.xz 21947588 BLAKE2B 6078e29a125fc1020de7b62c97174d82273af5f6def1dbd2be7968227400735d62f8427811cced69f6365f3232d8800cad388853c34dc6620dfbbc5a27d7f716 SHA512 be2f87e1089be37caa87f5c109121f3f054ffc5a66c4d468f631fa718e461425fbb2dc397459e252eb66c11a06b60659a449dcdcd9d44506732f3703660b597b
36 -DIST node-v10.21.0.tar.xz 21953796 BLAKE2B 6bdbeafb0f4ceb5c02df96ea74e8796680706756d3cadf48b813c46bdf91e3e1d5c49616ff827f01c17ed3bce1af303a5f7219c1995adb482b11203091d614f4 SHA512 613d3c1bca79ea5f127dc6793de2b5cfdfa056c01ec092e3b7ee79205894b21ca5ec4a367265122641dd1d360c675cfb36a4f7892894194ddd18abd1b2206544
37 -DIST node-v12.16.1.tar.xz 23481768 BLAKE2B 29371b952c14907778c064269108f1da5e3818c32773e73090c61edcd07190c418189db6a505987ca71f99bb868880e297de5d2181b9a880774eaaf515985f26 SHA512 fe1e9fabb6fe52e3bc4275b33e6c5e4a761550b04964c0ae7dbef7172f5d415207bb2985751d068e357ce45a0ba414b07c0abd1531ef839b9463e98eeae8f9a4
38 -DIST node-v12.16.2.tar.xz 23654020 BLAKE2B aa4bb764a8731e32ce07d03d96d573632bbf9af79b127c2acec48fcf335c01ea0ea99532670a46befac42e2e1ce5a4dbd2e4cf0d068bac05749d87af59bb80fa SHA512 81688468bc6e20d83f7f58f0c15f9291a801eb2acc8ba7279e65d81f3eb4ea95e3b6cee0d09738c0d0fa35226ae3d52f2bad5da63a20a3edc9129197d42d000d
39 -DIST node-v12.16.3.tar.xz 23682432 BLAKE2B 91b97c0de9c76f33d080f3f12a42a15140be6e3f4d42022a55305dc2afc04de6a2b8364b9fc5df0dd71c9ec249eb9e4da8ff23f53be43a1f306d2a6fbc6d6bce SHA512 e5d2d1960972f19ef5acc667efb702d534eb436212dea9e0bfd817328c927b55734406f232b32bba366f05c2691e5085e3a6f8c1e2d959398745e60719e731b3
40 -DIST node-v12.17.0.tar.xz 23702040 BLAKE2B 4b35c6f7a3c16a7b737bc5b71f075fe6c66c9c4a5cd3ee240a0c1af9cfd4e10c61520d0489169a74354734083b7f7c68b97eefaa6f40e3320ec5b0126d36169f SHA512 0fc8483c6ae8994ff4f4b2465f1b8b1d3c620c90222fb270fe3d317d967294cc9e6bdcc50277fbe0ab28cb3ce9e73ec122c19adf8a686ecc95de3268b82ca4f7
41 DIST node-v14.2.0.tar.xz 32884616 BLAKE2B 7bcb07cb7623c5e08c20267c320cdf23ad110f124c5ad1f2447ef8b76ab8dc44ed50dab7c5651424d9d3a36f7eeecdf3292b07c02cb2e22c3fbe4ed633c4b842 SHA512 47e5ec0b7a207082d43419a7e0a6ea9242ec43b4d7c2217eb66d0b45e2f4d5cb561b3f6fe35fdc41a8be95c182dc122ba262f696ebd12833596d71b372ec85d2
42 -DIST node-v14.3.0.tar.xz 32985344 BLAKE2B 32ee357e109484422c3b22423ab9a593cd5d4611073c820f90c196dae4df2860573cdd06170879f675b738b01885eb2fe0f25c2328841838bf9367324cc981a7 SHA512 3afcc430bad57150baa8d1c0e5ef0f64691ef6549a052be654a86313fe28f31e7fdfeea4d2b3993798a7141bc6d7b1642747d1bc2636139e2f2fd79441580148
43 DIST node-v14.4.0.tar.xz 33005312 BLAKE2B bc1462d897e24a6b842e6f8146971866c73b54ff5383d76cfc5728a73e2c135d28ced068744174b3fb5af4a6ec05ef1f115ea51c2d65517cbe18e1d733460d04 SHA512 f1a7c788a8a149b942ec2b90a4314baaa5355c381029eda45002728ce7209925c016323b0ec1e0dfe2359fddb24f494df125805d0d266b738a333dcddb3f59c3
44 -DIST node-v14.5.0.tar.xz 33141456 BLAKE2B ff268f44d0a4133a0efe091bec3cac945c656f355b19d8d577ba239aa65c07bf909d6f1b3d7db4f2f5c3c856e3125fe31f9e9e39ca7772f34f47521d5106a101 SHA512 8bcd3d72f294fff60a59815137a193b465b3a901a59fcf08a4840507e2cfc74ee165d7ae0ca6388662dc218213376f559a6c872a92062691c7413351a2ec2b5f
45 -DIST node-v14.6.0.tar.xz 33282140 BLAKE2B 0a7dbc290578ecc8ba008a1f2633df986b24b6d111a3cb9aed136f1160c319fc7b82d8aed7abf071e8ccc0918eb0c1369acb73b233e731d621396b06094b25eb SHA512 2189876d3e60bffbac7089c51b4a9ec78dd94f00dcc38bd0fe0d9a42b7de9b714c46468e3bb0513b60296dfaa6a474d80d14a8fa86a9e977b1ea76a0de02bda2
46 -DIST node-v14.7.0.tar.xz 33317268 BLAKE2B 470dd42338a2b9e7d6f29ccee544c7b3a5a55615556110fc1d12accfae79929f3a44186bd1c8c245d217ba67dcab22d1fd8b158e6595a7fefd2aa342f027961b SHA512 275875f2062d91617705b211fd254cdde61694c6a7ff657b66931f0d507220a9fde5a5f5c9e0e562ce80d531a87050b034d4e11bc3cfc4cf04d26ed15d1e0142
47 DIST node-v14.8.0.tar.xz 33342288 BLAKE2B 4f8129beb16ece09f14c234395b29bc53e84896fdd9877821a27c80d88a0740d42ea4dcf65a0a5c52a98129262be236207f4c07d81f76cc5e4471f21227083e9 SHA512 ebb20f7163e20e8074dd9cc5d3ee7f3cbc536c55a7753d39c482ea90e9314d8fdfe1a88203be7f250f6d77b9f13da04d32d99770d300c2ab0dfdee3d7582f068
48 DIST node-v14.9.0.tar.xz 33356264 BLAKE2B 61e4ad33ad5a80862730a89dbfab5c59395750f38d093944bbedc9ef167e09008e5f5f1545be3e01090d452eee3ab2ce6af9bb0455c731a0c6332c7d7b797e18 SHA512 2e628f4fea9d228e4e13d16166ba4e38a53d9a33edf0c26a63f55f61e99fd9069583613859e9b3ddbc87a6efe70803b723c310d064f9495359b450127b0c01b8
49 -DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42
50
51 diff --git a/net-libs/nodejs/files/nodejs-99999999-llhttp.patch b/net-libs/nodejs/files/nodejs-99999999-llhttp.patch
52 deleted file mode 100644
53 index 1b6eb9fb7fa..00000000000
54 --- a/net-libs/nodejs/files/nodejs-99999999-llhttp.patch
55 +++ /dev/null
56 @@ -1,20 +0,0 @@
57 ---- a/node.gypi
58 -+++ b/node.gypi
59 -@@ -169,11 +169,15 @@
60 -
61 - [ 'node_shared_http_parser=="false"', {
62 - 'dependencies': [
63 -- 'deps/http_parser/http_parser.gyp:http_parser',
64 -- 'deps/llhttp/llhttp.gyp:llhttp'
65 -+ 'deps/http_parser/http_parser.gyp:http_parser'
66 - ],
67 - } ],
68 -
69 -+ [ '"true"', { 'dependencies': [
70 -+ 'deps/llhttp/llhttp.gyp:llhttp'
71 -+ ],
72 -+ }],
73 -+
74 - [ 'node_shared_cares=="false"', {
75 - 'dependencies': [ 'deps/cares/cares.gyp:cares' ],
76 - }],
77
78 diff --git a/net-libs/nodejs/nodejs-10.19.0.ebuild b/net-libs/nodejs/nodejs-10.19.0.ebuild
79 deleted file mode 100644
80 index 409bd25dff5..00000000000
81 --- a/net-libs/nodejs/nodejs-10.19.0.ebuild
82 +++ /dev/null
83 @@ -1,205 +0,0 @@
84 -# Copyright 1999-2020 Gentoo Authors
85 -# Distributed under the terms of the GNU General Public License v2
86 -
87 -EAPI=7
88 -PYTHON_COMPAT=( python2_7 )
89 -PYTHON_REQ_USE="threads"
90 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
91 -
92 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
93 -HOMEPAGE="https://nodejs.org/"
94 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
95 -
96 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
97 -SLOT="0"
98 -KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x64-macos"
99 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test"
100 -REQUIRED_USE="
101 - inspector? ( icu ssl )
102 - npm? ( ssl )
103 - system-ssl? ( ssl )
104 -"
105 -
106 -RDEPEND="
107 - >=dev-libs/libuv-1.28.0:=
108 - >=net-dns/c-ares-1.15.0
109 - >=net-libs/http-parser-2.9.3:=
110 - >=net-libs/nghttp2-1.39.2
111 - sys-libs/zlib
112 - icu? ( >=dev-libs/icu-64.2:= )
113 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
114 -"
115 -DEPEND="
116 - ${RDEPEND}
117 - ${PYTHON_DEPS}
118 - systemtap? ( dev-util/systemtap )
119 - test? ( net-misc/curl )
120 -"
121 -PATCHES=(
122 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
123 -)
124 -RESTRICT="test"
125 -S="${WORKDIR}/node-v${PV}"
126 -
127 -pkg_pretend() {
128 - (use x86 && ! use cpu_flags_x86_sse2) && \
129 - die "Your CPU doesn't support the required SSE2 instruction."
130 -
131 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
132 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
133 -}
134 -
135 -src_prepare() {
136 - tc-export CC CXX PKG_CONFIG
137 - export V=1
138 - export BUILDTYPE=Release
139 -
140 - # fix compilation on Darwin
141 - # https://code.google.com/p/gyp/issues/detail?id=260
142 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
143 -
144 - # make sure we use python2.* while using gyp
145 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
146 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
147 -
148 - # less verbose install output (stating the same as portage, basically)
149 - sed -i -e "/print/d" tools/install.py || die
150 -
151 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
152 - local LIBDIR=$(get_libdir)
153 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
154 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
155 -
156 - # Avoid writing a depfile, not useful
157 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
158 -
159 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
160 -
161 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
162 - # seem sandbox related either (invoking it from a sandbox works fine).
163 - # The issue is that no stdin handle is openened when asked for one.
164 - # It doesn't really belong upstream , so it'll just be removed until someone
165 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
166 - rm test/parallel/test-stdout-close-unref.js || die
167 -
168 - # debug builds. change install path, remove optimisations and override buildtype
169 - if use debug; then
170 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
171 - BUILDTYPE=Debug
172 - fi
173 -
174 - default
175 -}
176 -
177 -src_configure() {
178 - xdg_environment_reset
179 -
180 - local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
181 - use debug && myconf+=( --debug )
182 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
183 - use inspector || myconf+=( --without-inspector )
184 - use npm || myconf+=( --without-npm )
185 - use snapshot && myconf+=( --with-snapshot )
186 - if use ssl; then
187 - use system-ssl && myconf+=( --shared-openssl )
188 - else
189 - myconf+=( --without-ssl )
190 - fi
191 -
192 - local myarch=""
193 - case ${ABI} in
194 - amd64) myarch="x64";;
195 - arm) myarch="arm";;
196 - arm64) myarch="arm64";;
197 - ppc64) myarch="ppc64";;
198 - x32) myarch="x32";;
199 - x86) myarch="ia32";;
200 - *) myarch="${ABI}";;
201 - esac
202 -
203 - GYP_DEFINES="linux_use_gold_flags=0
204 - linux_use_bundled_binutils=0
205 - linux_use_bundled_gold=0" \
206 - "${PYTHON}" configure \
207 - --prefix="${EPREFIX}"/usr \
208 - --dest-cpu=${myarch} \
209 - $(use_with systemtap dtrace) \
210 - "${myconf[@]}" || die
211 -}
212 -
213 -src_compile() {
214 - emake -C out mksnapshot
215 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
216 - emake -C out
217 -}
218 -
219 -src_install() {
220 - local LIBDIR="${ED}/usr/$(get_libdir)"
221 - emake install DESTDIR="${D}"
222 - pax-mark -m "${ED}"/usr/bin/node
223 -
224 - # set up a symlink structure that node-gyp expects..
225 - dodir /usr/include/node/deps/{v8,uv}
226 - dosym . /usr/include/node/src
227 - for var in deps/{uv,v8}/include; do
228 - dosym ../.. /usr/include/node/${var}
229 - done
230 -
231 - if use doc; then
232 - docinto html
233 - dodoc -r "${S}"/doc/*
234 - fi
235 -
236 - if use npm; then
237 - dodir /etc/npm
238 -
239 - # Install bash completion for `npm`
240 - # We need to temporarily replace default config path since
241 - # npm otherwise tries to write outside of the sandbox
242 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
243 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
244 - local tmp_npm_completion_file="$(emktemp)"
245 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
246 - newbashcomp "${tmp_npm_completion_file}" npm
247 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
248 -
249 - # Move man pages
250 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
251 -
252 - # Clean up
253 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
254 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
255 -
256 - local find_exp="-or -name"
257 - local find_name=()
258 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
259 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
260 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
261 - find_name+=( ${find_exp} "${match}" )
262 - done
263 -
264 - # Remove various development and/or inappropriate files and
265 - # useless docs of dependend packages.
266 - find "${LIBDIR}"/node_modules \
267 - \( -type d -name examples \) -or \( -type f \( \
268 - -iname "LICEN?E*" \
269 - "${find_name[@]}" \
270 - \) \) -exec rm -rf "{}" \;
271 - fi
272 -
273 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
274 -}
275 -
276 -src_test() {
277 - out/${BUILDTYPE}/cctest || die
278 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
279 -}
280 -
281 -pkg_postinst() {
282 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
283 - einfo "from upstream which otherwise would have it live in /usr/etc/."
284 - einfo ""
285 - einfo "Protip: When using node-gyp to install native modules, you can"
286 - einfo "avoid having to download extras by doing the following:"
287 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
288 -}
289
290 diff --git a/net-libs/nodejs/nodejs-10.20.1.ebuild b/net-libs/nodejs/nodejs-10.20.1.ebuild
291 deleted file mode 100644
292 index 1f645e5535c..00000000000
293 --- a/net-libs/nodejs/nodejs-10.20.1.ebuild
294 +++ /dev/null
295 @@ -1,205 +0,0 @@
296 -# Copyright 1999-2020 Gentoo Authors
297 -# Distributed under the terms of the GNU General Public License v2
298 -
299 -EAPI=7
300 -PYTHON_COMPAT=( python2_7 )
301 -PYTHON_REQ_USE="threads"
302 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
303 -
304 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
305 -HOMEPAGE="https://nodejs.org/"
306 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
307 -
308 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
309 -SLOT="0"
310 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
311 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test"
312 -REQUIRED_USE="
313 - inspector? ( icu ssl )
314 - npm? ( ssl )
315 - system-ssl? ( ssl )
316 -"
317 -
318 -RDEPEND="
319 - >=dev-libs/libuv-1.34.2:=
320 - >=net-dns/c-ares-1.15.0
321 - >=net-libs/http-parser-2.9.3:=
322 - >=net-libs/nghttp2-1.39.2
323 - sys-libs/zlib
324 - icu? ( >=dev-libs/icu-64.2:= )
325 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
326 -"
327 -DEPEND="
328 - ${RDEPEND}
329 - ${PYTHON_DEPS}
330 - systemtap? ( dev-util/systemtap )
331 - test? ( net-misc/curl )
332 -"
333 -PATCHES=(
334 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
335 -)
336 -RESTRICT="test"
337 -S="${WORKDIR}/node-v${PV}"
338 -
339 -pkg_pretend() {
340 - (use x86 && ! use cpu_flags_x86_sse2) && \
341 - die "Your CPU doesn't support the required SSE2 instruction."
342 -
343 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
344 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
345 -}
346 -
347 -src_prepare() {
348 - tc-export CC CXX PKG_CONFIG
349 - export V=1
350 - export BUILDTYPE=Release
351 -
352 - # fix compilation on Darwin
353 - # https://code.google.com/p/gyp/issues/detail?id=260
354 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
355 -
356 - # make sure we use python2.* while using gyp
357 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
358 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
359 -
360 - # less verbose install output (stating the same as portage, basically)
361 - sed -i -e "/print/d" tools/install.py || die
362 -
363 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
364 - local LIBDIR=$(get_libdir)
365 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
366 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
367 -
368 - # Avoid writing a depfile, not useful
369 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
370 -
371 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
372 -
373 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
374 - # seem sandbox related either (invoking it from a sandbox works fine).
375 - # The issue is that no stdin handle is openened when asked for one.
376 - # It doesn't really belong upstream , so it'll just be removed until someone
377 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
378 - rm test/parallel/test-stdout-close-unref.js || die
379 -
380 - # debug builds. change install path, remove optimisations and override buildtype
381 - if use debug; then
382 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
383 - BUILDTYPE=Debug
384 - fi
385 -
386 - default
387 -}
388 -
389 -src_configure() {
390 - xdg_environment_reset
391 -
392 - local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
393 - use debug && myconf+=( --debug )
394 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
395 - use inspector || myconf+=( --without-inspector )
396 - use npm || myconf+=( --without-npm )
397 - use snapshot && myconf+=( --with-snapshot )
398 - if use ssl; then
399 - use system-ssl && myconf+=( --shared-openssl )
400 - else
401 - myconf+=( --without-ssl )
402 - fi
403 -
404 - local myarch=""
405 - case ${ABI} in
406 - amd64) myarch="x64";;
407 - arm) myarch="arm";;
408 - arm64) myarch="arm64";;
409 - ppc64) myarch="ppc64";;
410 - x32) myarch="x32";;
411 - x86) myarch="ia32";;
412 - *) myarch="${ABI}";;
413 - esac
414 -
415 - GYP_DEFINES="linux_use_gold_flags=0
416 - linux_use_bundled_binutils=0
417 - linux_use_bundled_gold=0" \
418 - "${PYTHON}" configure \
419 - --prefix="${EPREFIX}"/usr \
420 - --dest-cpu=${myarch} \
421 - $(use_with systemtap dtrace) \
422 - "${myconf[@]}" || die
423 -}
424 -
425 -src_compile() {
426 - emake -C out mksnapshot
427 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
428 - emake -C out
429 -}
430 -
431 -src_install() {
432 - local LIBDIR="${ED}/usr/$(get_libdir)"
433 - emake install DESTDIR="${D}"
434 - pax-mark -m "${ED}"/usr/bin/node
435 -
436 - # set up a symlink structure that node-gyp expects..
437 - dodir /usr/include/node/deps/{v8,uv}
438 - dosym . /usr/include/node/src
439 - for var in deps/{uv,v8}/include; do
440 - dosym ../.. /usr/include/node/${var}
441 - done
442 -
443 - if use doc; then
444 - docinto html
445 - dodoc -r "${S}"/doc/*
446 - fi
447 -
448 - if use npm; then
449 - dodir /etc/npm
450 -
451 - # Install bash completion for `npm`
452 - # We need to temporarily replace default config path since
453 - # npm otherwise tries to write outside of the sandbox
454 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
455 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
456 - local tmp_npm_completion_file="$(emktemp)"
457 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
458 - newbashcomp "${tmp_npm_completion_file}" npm
459 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
460 -
461 - # Move man pages
462 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
463 -
464 - # Clean up
465 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
466 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
467 -
468 - local find_exp="-or -name"
469 - local find_name=()
470 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
471 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
472 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
473 - find_name+=( ${find_exp} "${match}" )
474 - done
475 -
476 - # Remove various development and/or inappropriate files and
477 - # useless docs of dependend packages.
478 - find "${LIBDIR}"/node_modules \
479 - \( -type d -name examples \) -or \( -type f \( \
480 - -iname "LICEN?E*" \
481 - "${find_name[@]}" \
482 - \) \) -exec rm -rf "{}" \;
483 - fi
484 -
485 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
486 -}
487 -
488 -src_test() {
489 - out/${BUILDTYPE}/cctest || die
490 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
491 -}
492 -
493 -pkg_postinst() {
494 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
495 - einfo "from upstream which otherwise would have it live in /usr/etc/."
496 - einfo ""
497 - einfo "Protip: When using node-gyp to install native modules, you can"
498 - einfo "avoid having to download extras by doing the following:"
499 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
500 -}
501
502 diff --git a/net-libs/nodejs/nodejs-10.21.0.ebuild b/net-libs/nodejs/nodejs-10.21.0.ebuild
503 deleted file mode 100644
504 index f7ab581674c..00000000000
505 --- a/net-libs/nodejs/nodejs-10.21.0.ebuild
506 +++ /dev/null
507 @@ -1,205 +0,0 @@
508 -# Copyright 1999-2020 Gentoo Authors
509 -# Distributed under the terms of the GNU General Public License v2
510 -
511 -EAPI=7
512 -PYTHON_COMPAT=( python2_7 )
513 -PYTHON_REQ_USE="threads"
514 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
515 -
516 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
517 -HOMEPAGE="https://nodejs.org/"
518 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
519 -
520 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
521 -SLOT="0"
522 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
523 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test"
524 -REQUIRED_USE="
525 - inspector? ( icu ssl )
526 - npm? ( ssl )
527 - system-ssl? ( ssl )
528 -"
529 -
530 -RDEPEND="
531 - >=dev-libs/libuv-1.34.2:=
532 - >=net-dns/c-ares-1.15.0
533 - >=net-libs/http-parser-2.9.3:=
534 - >=net-libs/nghttp2-1.41.0
535 - sys-libs/zlib
536 - icu? ( >=dev-libs/icu-64.2:= )
537 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
538 -"
539 -DEPEND="
540 - ${RDEPEND}
541 - ${PYTHON_DEPS}
542 - systemtap? ( dev-util/systemtap )
543 - test? ( net-misc/curl )
544 -"
545 -PATCHES=(
546 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
547 -)
548 -RESTRICT="test"
549 -S="${WORKDIR}/node-v${PV}"
550 -
551 -pkg_pretend() {
552 - (use x86 && ! use cpu_flags_x86_sse2) && \
553 - die "Your CPU doesn't support the required SSE2 instruction."
554 -
555 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
556 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
557 -}
558 -
559 -src_prepare() {
560 - tc-export CC CXX PKG_CONFIG
561 - export V=1
562 - export BUILDTYPE=Release
563 -
564 - # fix compilation on Darwin
565 - # https://code.google.com/p/gyp/issues/detail?id=260
566 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
567 -
568 - # make sure we use python2.* while using gyp
569 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
570 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
571 -
572 - # less verbose install output (stating the same as portage, basically)
573 - sed -i -e "/print/d" tools/install.py || die
574 -
575 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
576 - local LIBDIR=$(get_libdir)
577 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
578 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
579 -
580 - # Avoid writing a depfile, not useful
581 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
582 -
583 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
584 -
585 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
586 - # seem sandbox related either (invoking it from a sandbox works fine).
587 - # The issue is that no stdin handle is openened when asked for one.
588 - # It doesn't really belong upstream , so it'll just be removed until someone
589 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
590 - rm test/parallel/test-stdout-close-unref.js || die
591 -
592 - # debug builds. change install path, remove optimisations and override buildtype
593 - if use debug; then
594 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
595 - BUILDTYPE=Debug
596 - fi
597 -
598 - default
599 -}
600 -
601 -src_configure() {
602 - xdg_environment_reset
603 -
604 - local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
605 - use debug && myconf+=( --debug )
606 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
607 - use inspector || myconf+=( --without-inspector )
608 - use npm || myconf+=( --without-npm )
609 - use snapshot && myconf+=( --with-snapshot )
610 - if use ssl; then
611 - use system-ssl && myconf+=( --shared-openssl )
612 - else
613 - myconf+=( --without-ssl )
614 - fi
615 -
616 - local myarch=""
617 - case ${ABI} in
618 - amd64) myarch="x64";;
619 - arm) myarch="arm";;
620 - arm64) myarch="arm64";;
621 - ppc64) myarch="ppc64";;
622 - x32) myarch="x32";;
623 - x86) myarch="ia32";;
624 - *) myarch="${ABI}";;
625 - esac
626 -
627 - GYP_DEFINES="linux_use_gold_flags=0
628 - linux_use_bundled_binutils=0
629 - linux_use_bundled_gold=0" \
630 - "${PYTHON}" configure \
631 - --prefix="${EPREFIX}"/usr \
632 - --dest-cpu=${myarch} \
633 - $(use_with systemtap dtrace) \
634 - "${myconf[@]}" || die
635 -}
636 -
637 -src_compile() {
638 - emake -C out mksnapshot
639 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
640 - emake -C out
641 -}
642 -
643 -src_install() {
644 - local LIBDIR="${ED}/usr/$(get_libdir)"
645 - emake install DESTDIR="${D}"
646 - pax-mark -m "${ED}"/usr/bin/node
647 -
648 - # set up a symlink structure that node-gyp expects..
649 - dodir /usr/include/node/deps/{v8,uv}
650 - dosym . /usr/include/node/src
651 - for var in deps/{uv,v8}/include; do
652 - dosym ../.. /usr/include/node/${var}
653 - done
654 -
655 - if use doc; then
656 - docinto html
657 - dodoc -r "${S}"/doc/*
658 - fi
659 -
660 - if use npm; then
661 - dodir /etc/npm
662 -
663 - # Install bash completion for `npm`
664 - # We need to temporarily replace default config path since
665 - # npm otherwise tries to write outside of the sandbox
666 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
667 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
668 - local tmp_npm_completion_file="$(emktemp)"
669 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
670 - newbashcomp "${tmp_npm_completion_file}" npm
671 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
672 -
673 - # Move man pages
674 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
675 -
676 - # Clean up
677 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
678 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
679 -
680 - local find_exp="-or -name"
681 - local find_name=()
682 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
683 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
684 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
685 - find_name+=( ${find_exp} "${match}" )
686 - done
687 -
688 - # Remove various development and/or inappropriate files and
689 - # useless docs of dependend packages.
690 - find "${LIBDIR}"/node_modules \
691 - \( -type d -name examples \) -or \( -type f \( \
692 - -iname "LICEN?E*" \
693 - "${find_name[@]}" \
694 - \) \) -exec rm -rf "{}" \;
695 - fi
696 -
697 - mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die
698 -}
699 -
700 -src_test() {
701 - out/${BUILDTYPE}/cctest || die
702 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
703 -}
704 -
705 -pkg_postinst() {
706 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
707 - einfo "from upstream which otherwise would have it live in /usr/etc/."
708 - einfo ""
709 - einfo "Protip: When using node-gyp to install native modules, you can"
710 - einfo "avoid having to download extras by doing the following:"
711 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
712 -}
713
714 diff --git a/net-libs/nodejs/nodejs-12.16.1.ebuild b/net-libs/nodejs/nodejs-12.16.1.ebuild
715 deleted file mode 100644
716 index 29723942409..00000000000
717 --- a/net-libs/nodejs/nodejs-12.16.1.ebuild
718 +++ /dev/null
719 @@ -1,213 +0,0 @@
720 -# Copyright 1999-2020 Gentoo Authors
721 -# Distributed under the terms of the GNU General Public License v2
722 -
723 -EAPI=7
724 -PYTHON_COMPAT=( python3_{6,7} )
725 -PYTHON_REQ_USE="threads(+)"
726 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
727 -
728 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
729 -HOMEPAGE="https://nodejs.org/"
730 -SRC_URI="
731 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
732 -"
733 -
734 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
735 -SLOT="0"
736 -KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x64-macos"
737 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test"
738 -REQUIRED_USE="
739 - inspector? ( icu ssl )
740 - npm? ( ssl )
741 - system-ssl? ( ssl )
742 -"
743 -
744 -RDEPEND="
745 - >=dev-libs/libuv-1.34.0:=
746 - >=net-dns/c-ares-1.15.0
747 - >=net-libs/http-parser-2.9.3:=
748 - >=net-libs/nghttp2-1.40.0
749 - sys-libs/zlib
750 - icu? ( >=dev-libs/icu-64.2:= )
751 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
752 -"
753 -BDEPEND="
754 - ${PYTHON_DEPS}
755 - systemtap? ( dev-util/systemtap )
756 - test? ( net-misc/curl )
757 -"
758 -DEPEND="
759 - ${RDEPEND}
760 -"
761 -PATCHES=(
762 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
763 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
764 -)
765 -RESTRICT="test"
766 -S="${WORKDIR}/node-v${PV}"
767 -
768 -pkg_pretend() {
769 - (use x86 && ! use cpu_flags_x86_sse2) && \
770 - die "Your CPU doesn't support the required SSE2 instruction."
771 -
772 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
773 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
774 -}
775 -
776 -src_prepare() {
777 - tc-export CC CXX PKG_CONFIG
778 - export V=1
779 - export BUILDTYPE=Release
780 -
781 - # fix compilation on Darwin
782 - # https://code.google.com/p/gyp/issues/detail?id=260
783 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
784 -
785 - # less verbose install output (stating the same as portage, basically)
786 - sed -i -e "/print/d" tools/install.py || die
787 -
788 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
789 - local LIBDIR=$(get_libdir)
790 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
791 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
792 -
793 - # Avoid writing a depfile, not useful
794 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
795 -
796 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
797 -
798 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
799 - # seem sandbox related either (invoking it from a sandbox works fine).
800 - # The issue is that no stdin handle is openened when asked for one.
801 - # It doesn't really belong upstream , so it'll just be removed until someone
802 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
803 - rm test/parallel/test-stdout-close-unref.js || die
804 -
805 - # debug builds. change install path, remove optimisations and override buildtype
806 - if use debug; then
807 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
808 - BUILDTYPE=Debug
809 - fi
810 -
811 - default
812 -}
813 -
814 -src_configure() {
815 - xdg_environment_reset
816 -
817 - local myconf=(
818 - --shared-cares
819 - --shared-http-parser
820 - --shared-libuv
821 - --shared-nghttp2
822 - --shared-zlib
823 - )
824 - use debug && myconf+=( --debug )
825 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
826 - use inspector || myconf+=( --without-inspector )
827 - use npm || myconf+=( --without-npm )
828 - use snapshot || myconf+=( --without-node-snapshot )
829 - if use ssl; then
830 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
831 - else
832 - myconf+=( --without-ssl )
833 - fi
834 -
835 - local myarch=""
836 - case ${ABI} in
837 - amd64) myarch="x64";;
838 - arm) myarch="arm";;
839 - arm64) myarch="arm64";;
840 - ppc64) myarch="ppc64";;
841 - x32) myarch="x32";;
842 - x86) myarch="ia32";;
843 - *) myarch="${ABI}";;
844 - esac
845 -
846 - GYP_DEFINES="linux_use_gold_flags=0
847 - linux_use_bundled_binutils=0
848 - linux_use_bundled_gold=0" \
849 - "${EPYTHON}" configure.py \
850 - --prefix="${EPREFIX}"/usr \
851 - --dest-cpu=${myarch} \
852 - $(use_with systemtap dtrace) \
853 - "${myconf[@]}" || die
854 -}
855 -
856 -src_compile() {
857 - emake -C out mksnapshot
858 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
859 - emake -C out
860 -}
861 -
862 -src_install() {
863 - local LIBDIR="${ED}/usr/$(get_libdir)"
864 - default
865 -
866 - pax-mark -m "${ED}"/usr/bin/node
867 -
868 - # set up a symlink structure that node-gyp expects..
869 - dodir /usr/include/node/deps/{v8,uv}
870 - dosym . /usr/include/node/src
871 - for var in deps/{uv,v8}/include; do
872 - dosym ../.. /usr/include/node/${var}
873 - done
874 -
875 - if use doc; then
876 - docinto html
877 - dodoc -r "${S}"/doc/*
878 - fi
879 -
880 - if use npm; then
881 - dodir /etc/npm
882 -
883 - # Install bash completion for `npm`
884 - # We need to temporarily replace default config path since
885 - # npm otherwise tries to write outside of the sandbox
886 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
887 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
888 - local tmp_npm_completion_file="$(emktemp)"
889 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
890 - newbashcomp "${tmp_npm_completion_file}" npm
891 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
892 -
893 - # Move man pages
894 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
895 -
896 - # Clean up
897 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
898 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
899 -
900 - local find_exp="-or -name"
901 - local find_name=()
902 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
903 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
904 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
905 - find_name+=( ${find_exp} "${match}" )
906 - done
907 -
908 - # Remove various development and/or inappropriate files and
909 - # useless docs of dependend packages.
910 - find "${LIBDIR}"/node_modules \
911 - \( -type d -name examples \) -or \( -type f \( \
912 - -iname "LICEN?E*" \
913 - "${find_name[@]}" \
914 - \) \) -exec rm -rf "{}" \;
915 - fi
916 -
917 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
918 -}
919 -
920 -src_test() {
921 - out/${BUILDTYPE}/cctest || die
922 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
923 -}
924 -
925 -pkg_postinst() {
926 - elog "The global npm config lives in /etc/npm. This deviates slightly"
927 - elog "from upstream which otherwise would have it live in /usr/etc/."
928 - elog ""
929 - elog "Protip: When using node-gyp to install native modules, you can"
930 - elog "avoid having to download extras by doing the following:"
931 - elog "$ node-gyp --nodedir /usr/include/node <command>"
932 -}
933
934 diff --git a/net-libs/nodejs/nodejs-12.16.2.ebuild b/net-libs/nodejs/nodejs-12.16.2.ebuild
935 deleted file mode 100644
936 index 0be68355a99..00000000000
937 --- a/net-libs/nodejs/nodejs-12.16.2.ebuild
938 +++ /dev/null
939 @@ -1,213 +0,0 @@
940 -# Copyright 1999-2020 Gentoo Authors
941 -# Distributed under the terms of the GNU General Public License v2
942 -
943 -EAPI=7
944 -PYTHON_COMPAT=( python3_{6,7} )
945 -PYTHON_REQ_USE="threads(+)"
946 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
947 -
948 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
949 -HOMEPAGE="https://nodejs.org/"
950 -SRC_URI="
951 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
952 -"
953 -
954 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
955 -SLOT="0"
956 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
957 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test"
958 -REQUIRED_USE="
959 - inspector? ( icu ssl )
960 - npm? ( ssl )
961 - system-ssl? ( ssl )
962 -"
963 -
964 -RDEPEND="
965 - >=dev-libs/libuv-1.34.2:=
966 - >=net-dns/c-ares-1.15.0
967 - >=net-libs/http-parser-2.9.3:=
968 - >=net-libs/nghttp2-1.40.0
969 - sys-libs/zlib
970 - icu? ( >=dev-libs/icu-64.2:= )
971 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
972 -"
973 -BDEPEND="
974 - ${PYTHON_DEPS}
975 - systemtap? ( dev-util/systemtap )
976 - test? ( net-misc/curl )
977 -"
978 -DEPEND="
979 - ${RDEPEND}
980 -"
981 -PATCHES=(
982 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
983 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
984 -)
985 -RESTRICT="test"
986 -S="${WORKDIR}/node-v${PV}"
987 -
988 -pkg_pretend() {
989 - (use x86 && ! use cpu_flags_x86_sse2) && \
990 - die "Your CPU doesn't support the required SSE2 instruction."
991 -
992 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
993 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
994 -}
995 -
996 -src_prepare() {
997 - tc-export CC CXX PKG_CONFIG
998 - export V=1
999 - export BUILDTYPE=Release
1000 -
1001 - # fix compilation on Darwin
1002 - # https://code.google.com/p/gyp/issues/detail?id=260
1003 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1004 -
1005 - # less verbose install output (stating the same as portage, basically)
1006 - sed -i -e "/print/d" tools/install.py || die
1007 -
1008 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1009 - local LIBDIR=$(get_libdir)
1010 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1011 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1012 -
1013 - # Avoid writing a depfile, not useful
1014 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1015 -
1016 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
1017 -
1018 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1019 - # seem sandbox related either (invoking it from a sandbox works fine).
1020 - # The issue is that no stdin handle is openened when asked for one.
1021 - # It doesn't really belong upstream , so it'll just be removed until someone
1022 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1023 - rm test/parallel/test-stdout-close-unref.js || die
1024 -
1025 - # debug builds. change install path, remove optimisations and override buildtype
1026 - if use debug; then
1027 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1028 - BUILDTYPE=Debug
1029 - fi
1030 -
1031 - default
1032 -}
1033 -
1034 -src_configure() {
1035 - xdg_environment_reset
1036 -
1037 - local myconf=(
1038 - --shared-cares
1039 - --shared-http-parser
1040 - --shared-libuv
1041 - --shared-nghttp2
1042 - --shared-zlib
1043 - )
1044 - use debug && myconf+=( --debug )
1045 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1046 - use inspector || myconf+=( --without-inspector )
1047 - use npm || myconf+=( --without-npm )
1048 - use snapshot || myconf+=( --without-node-snapshot )
1049 - if use ssl; then
1050 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
1051 - else
1052 - myconf+=( --without-ssl )
1053 - fi
1054 -
1055 - local myarch=""
1056 - case ${ABI} in
1057 - amd64) myarch="x64";;
1058 - arm) myarch="arm";;
1059 - arm64) myarch="arm64";;
1060 - ppc64) myarch="ppc64";;
1061 - x32) myarch="x32";;
1062 - x86) myarch="ia32";;
1063 - *) myarch="${ABI}";;
1064 - esac
1065 -
1066 - GYP_DEFINES="linux_use_gold_flags=0
1067 - linux_use_bundled_binutils=0
1068 - linux_use_bundled_gold=0" \
1069 - "${EPYTHON}" configure.py \
1070 - --prefix="${EPREFIX}"/usr \
1071 - --dest-cpu=${myarch} \
1072 - $(use_with systemtap dtrace) \
1073 - "${myconf[@]}" || die
1074 -}
1075 -
1076 -src_compile() {
1077 - emake -C out mksnapshot
1078 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1079 - emake -C out
1080 -}
1081 -
1082 -src_install() {
1083 - local LIBDIR="${ED}/usr/$(get_libdir)"
1084 - default
1085 -
1086 - pax-mark -m "${ED}"/usr/bin/node
1087 -
1088 - # set up a symlink structure that node-gyp expects..
1089 - dodir /usr/include/node/deps/{v8,uv}
1090 - dosym . /usr/include/node/src
1091 - for var in deps/{uv,v8}/include; do
1092 - dosym ../.. /usr/include/node/${var}
1093 - done
1094 -
1095 - if use doc; then
1096 - docinto html
1097 - dodoc -r "${S}"/doc/*
1098 - fi
1099 -
1100 - if use npm; then
1101 - dodir /etc/npm
1102 -
1103 - # Install bash completion for `npm`
1104 - # We need to temporarily replace default config path since
1105 - # npm otherwise tries to write outside of the sandbox
1106 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1107 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1108 - local tmp_npm_completion_file="$(emktemp)"
1109 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1110 - newbashcomp "${tmp_npm_completion_file}" npm
1111 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1112 -
1113 - # Move man pages
1114 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1115 -
1116 - # Clean up
1117 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1118 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1119 -
1120 - local find_exp="-or -name"
1121 - local find_name=()
1122 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1123 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1124 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1125 - find_name+=( ${find_exp} "${match}" )
1126 - done
1127 -
1128 - # Remove various development and/or inappropriate files and
1129 - # useless docs of dependend packages.
1130 - find "${LIBDIR}"/node_modules \
1131 - \( -type d -name examples \) -or \( -type f \( \
1132 - -iname "LICEN?E*" \
1133 - "${find_name[@]}" \
1134 - \) \) -exec rm -rf "{}" \;
1135 - fi
1136 -
1137 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1138 -}
1139 -
1140 -src_test() {
1141 - out/${BUILDTYPE}/cctest || die
1142 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1143 -}
1144 -
1145 -pkg_postinst() {
1146 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1147 - elog "from upstream which otherwise would have it live in /usr/etc/."
1148 - elog ""
1149 - elog "Protip: When using node-gyp to install native modules, you can"
1150 - elog "avoid having to download extras by doing the following:"
1151 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1152 -}
1153
1154 diff --git a/net-libs/nodejs/nodejs-12.16.3.ebuild b/net-libs/nodejs/nodejs-12.16.3.ebuild
1155 deleted file mode 100644
1156 index 10346fcd3bc..00000000000
1157 --- a/net-libs/nodejs/nodejs-12.16.3.ebuild
1158 +++ /dev/null
1159 @@ -1,213 +0,0 @@
1160 -# Copyright 1999-2020 Gentoo Authors
1161 -# Distributed under the terms of the GNU General Public License v2
1162 -
1163 -EAPI=7
1164 -PYTHON_COMPAT=( python3_{6,7} )
1165 -PYTHON_REQ_USE="threads(+)"
1166 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
1167 -
1168 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1169 -HOMEPAGE="https://nodejs.org/"
1170 -SRC_URI="
1171 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
1172 -"
1173 -
1174 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1175 -SLOT="0"
1176 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1177 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test"
1178 -REQUIRED_USE="
1179 - inspector? ( icu ssl )
1180 - npm? ( ssl )
1181 - system-ssl? ( ssl )
1182 -"
1183 -
1184 -RDEPEND="
1185 - >=dev-libs/libuv-1.34.2:=
1186 - >=net-dns/c-ares-1.16.0
1187 - >=net-libs/http-parser-2.9.3:=
1188 - >=net-libs/nghttp2-1.40.0
1189 - sys-libs/zlib
1190 - icu? ( >=dev-libs/icu-64.2:= )
1191 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
1192 -"
1193 -BDEPEND="
1194 - ${PYTHON_DEPS}
1195 - systemtap? ( dev-util/systemtap )
1196 - test? ( net-misc/curl )
1197 -"
1198 -DEPEND="
1199 - ${RDEPEND}
1200 -"
1201 -PATCHES=(
1202 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1203 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
1204 -)
1205 -RESTRICT="test"
1206 -S="${WORKDIR}/node-v${PV}"
1207 -
1208 -pkg_pretend() {
1209 - (use x86 && ! use cpu_flags_x86_sse2) && \
1210 - die "Your CPU doesn't support the required SSE2 instruction."
1211 -
1212 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1213 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1214 -}
1215 -
1216 -src_prepare() {
1217 - tc-export CC CXX PKG_CONFIG
1218 - export V=1
1219 - export BUILDTYPE=Release
1220 -
1221 - # fix compilation on Darwin
1222 - # https://code.google.com/p/gyp/issues/detail?id=260
1223 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1224 -
1225 - # less verbose install output (stating the same as portage, basically)
1226 - sed -i -e "/print/d" tools/install.py || die
1227 -
1228 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1229 - local LIBDIR=$(get_libdir)
1230 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1231 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1232 -
1233 - # Avoid writing a depfile, not useful
1234 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1235 -
1236 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
1237 -
1238 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1239 - # seem sandbox related either (invoking it from a sandbox works fine).
1240 - # The issue is that no stdin handle is openened when asked for one.
1241 - # It doesn't really belong upstream , so it'll just be removed until someone
1242 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1243 - rm test/parallel/test-stdout-close-unref.js || die
1244 -
1245 - # debug builds. change install path, remove optimisations and override buildtype
1246 - if use debug; then
1247 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1248 - BUILDTYPE=Debug
1249 - fi
1250 -
1251 - default
1252 -}
1253 -
1254 -src_configure() {
1255 - xdg_environment_reset
1256 -
1257 - local myconf=(
1258 - --shared-cares
1259 - --shared-http-parser
1260 - --shared-libuv
1261 - --shared-nghttp2
1262 - --shared-zlib
1263 - )
1264 - use debug && myconf+=( --debug )
1265 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1266 - use inspector || myconf+=( --without-inspector )
1267 - use npm || myconf+=( --without-npm )
1268 - use snapshot || myconf+=( --without-node-snapshot )
1269 - if use ssl; then
1270 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
1271 - else
1272 - myconf+=( --without-ssl )
1273 - fi
1274 -
1275 - local myarch=""
1276 - case ${ABI} in
1277 - amd64) myarch="x64";;
1278 - arm) myarch="arm";;
1279 - arm64) myarch="arm64";;
1280 - ppc64) myarch="ppc64";;
1281 - x32) myarch="x32";;
1282 - x86) myarch="ia32";;
1283 - *) myarch="${ABI}";;
1284 - esac
1285 -
1286 - GYP_DEFINES="linux_use_gold_flags=0
1287 - linux_use_bundled_binutils=0
1288 - linux_use_bundled_gold=0" \
1289 - "${EPYTHON}" configure.py \
1290 - --prefix="${EPREFIX}"/usr \
1291 - --dest-cpu=${myarch} \
1292 - $(use_with systemtap dtrace) \
1293 - "${myconf[@]}" || die
1294 -}
1295 -
1296 -src_compile() {
1297 - emake -C out mksnapshot
1298 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1299 - emake -C out
1300 -}
1301 -
1302 -src_install() {
1303 - local LIBDIR="${ED}/usr/$(get_libdir)"
1304 - default
1305 -
1306 - pax-mark -m "${ED}"/usr/bin/node
1307 -
1308 - # set up a symlink structure that node-gyp expects..
1309 - dodir /usr/include/node/deps/{v8,uv}
1310 - dosym . /usr/include/node/src
1311 - for var in deps/{uv,v8}/include; do
1312 - dosym ../.. /usr/include/node/${var}
1313 - done
1314 -
1315 - if use doc; then
1316 - docinto html
1317 - dodoc -r "${S}"/doc/*
1318 - fi
1319 -
1320 - if use npm; then
1321 - dodir /etc/npm
1322 -
1323 - # Install bash completion for `npm`
1324 - # We need to temporarily replace default config path since
1325 - # npm otherwise tries to write outside of the sandbox
1326 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1327 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1328 - local tmp_npm_completion_file="$(emktemp)"
1329 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1330 - newbashcomp "${tmp_npm_completion_file}" npm
1331 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1332 -
1333 - # Move man pages
1334 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1335 -
1336 - # Clean up
1337 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1338 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1339 -
1340 - local find_exp="-or -name"
1341 - local find_name=()
1342 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1343 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1344 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1345 - find_name+=( ${find_exp} "${match}" )
1346 - done
1347 -
1348 - # Remove various development and/or inappropriate files and
1349 - # useless docs of dependend packages.
1350 - find "${LIBDIR}"/node_modules \
1351 - \( -type d -name examples \) -or \( -type f \( \
1352 - -iname "LICEN?E*" \
1353 - "${find_name[@]}" \
1354 - \) \) -exec rm -rf "{}" \;
1355 - fi
1356 -
1357 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1358 -}
1359 -
1360 -src_test() {
1361 - out/${BUILDTYPE}/cctest || die
1362 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1363 -}
1364 -
1365 -pkg_postinst() {
1366 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1367 - elog "from upstream which otherwise would have it live in /usr/etc/."
1368 - elog ""
1369 - elog "Protip: When using node-gyp to install native modules, you can"
1370 - elog "avoid having to download extras by doing the following:"
1371 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1372 -}
1373
1374 diff --git a/net-libs/nodejs/nodejs-12.17.0.ebuild b/net-libs/nodejs/nodejs-12.17.0.ebuild
1375 deleted file mode 100644
1376 index 8b860166ed5..00000000000
1377 --- a/net-libs/nodejs/nodejs-12.17.0.ebuild
1378 +++ /dev/null
1379 @@ -1,213 +0,0 @@
1380 -# Copyright 1999-2020 Gentoo Authors
1381 -# Distributed under the terms of the GNU General Public License v2
1382 -
1383 -EAPI=7
1384 -PYTHON_COMPAT=( python3_{6,7} )
1385 -PYTHON_REQ_USE="threads(+)"
1386 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
1387 -
1388 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1389 -HOMEPAGE="https://nodejs.org/"
1390 -SRC_URI="
1391 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
1392 -"
1393 -
1394 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1395 -SLOT="0"
1396 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1397 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test"
1398 -REQUIRED_USE="
1399 - inspector? ( icu ssl )
1400 - npm? ( ssl )
1401 - system-ssl? ( ssl )
1402 -"
1403 -
1404 -RDEPEND="
1405 - >=dev-libs/libuv-1.37.0:=
1406 - >=net-dns/c-ares-1.16.0
1407 - >=net-libs/http-parser-2.9.3:=
1408 - >=net-libs/nghttp2-1.40.0
1409 - sys-libs/zlib
1410 - icu? ( >=dev-libs/icu-64.2:= )
1411 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
1412 -"
1413 -BDEPEND="
1414 - ${PYTHON_DEPS}
1415 - systemtap? ( dev-util/systemtap )
1416 - test? ( net-misc/curl )
1417 -"
1418 -DEPEND="
1419 - ${RDEPEND}
1420 -"
1421 -PATCHES=(
1422 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1423 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
1424 -)
1425 -RESTRICT="test"
1426 -S="${WORKDIR}/node-v${PV}"
1427 -
1428 -pkg_pretend() {
1429 - (use x86 && ! use cpu_flags_x86_sse2) && \
1430 - die "Your CPU doesn't support the required SSE2 instruction."
1431 -
1432 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1433 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1434 -}
1435 -
1436 -src_prepare() {
1437 - tc-export CC CXX PKG_CONFIG
1438 - export V=1
1439 - export BUILDTYPE=Release
1440 -
1441 - # fix compilation on Darwin
1442 - # https://code.google.com/p/gyp/issues/detail?id=260
1443 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1444 -
1445 - # less verbose install output (stating the same as portage, basically)
1446 - sed -i -e "/print/d" tools/install.py || die
1447 -
1448 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1449 - local LIBDIR=$(get_libdir)
1450 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1451 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1452 -
1453 - # Avoid writing a depfile, not useful
1454 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1455 -
1456 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
1457 -
1458 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1459 - # seem sandbox related either (invoking it from a sandbox works fine).
1460 - # The issue is that no stdin handle is openened when asked for one.
1461 - # It doesn't really belong upstream , so it'll just be removed until someone
1462 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1463 - rm test/parallel/test-stdout-close-unref.js || die
1464 -
1465 - # debug builds. change install path, remove optimisations and override buildtype
1466 - if use debug; then
1467 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1468 - BUILDTYPE=Debug
1469 - fi
1470 -
1471 - default
1472 -}
1473 -
1474 -src_configure() {
1475 - xdg_environment_reset
1476 -
1477 - local myconf=(
1478 - --shared-cares
1479 - --shared-http-parser
1480 - --shared-libuv
1481 - --shared-nghttp2
1482 - --shared-zlib
1483 - )
1484 - use debug && myconf+=( --debug )
1485 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1486 - use inspector || myconf+=( --without-inspector )
1487 - use npm || myconf+=( --without-npm )
1488 - use snapshot || myconf+=( --without-node-snapshot )
1489 - if use ssl; then
1490 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
1491 - else
1492 - myconf+=( --without-ssl )
1493 - fi
1494 -
1495 - local myarch=""
1496 - case ${ABI} in
1497 - amd64) myarch="x64";;
1498 - arm) myarch="arm";;
1499 - arm64) myarch="arm64";;
1500 - ppc64) myarch="ppc64";;
1501 - x32) myarch="x32";;
1502 - x86) myarch="ia32";;
1503 - *) myarch="${ABI}";;
1504 - esac
1505 -
1506 - GYP_DEFINES="linux_use_gold_flags=0
1507 - linux_use_bundled_binutils=0
1508 - linux_use_bundled_gold=0" \
1509 - "${EPYTHON}" configure.py \
1510 - --prefix="${EPREFIX}"/usr \
1511 - --dest-cpu=${myarch} \
1512 - $(use_with systemtap dtrace) \
1513 - "${myconf[@]}" || die
1514 -}
1515 -
1516 -src_compile() {
1517 - emake -C out mksnapshot
1518 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
1519 - emake -C out
1520 -}
1521 -
1522 -src_install() {
1523 - local LIBDIR="${ED}/usr/$(get_libdir)"
1524 - default
1525 -
1526 - pax-mark -m "${ED}"/usr/bin/node
1527 -
1528 - # set up a symlink structure that node-gyp expects..
1529 - dodir /usr/include/node/deps/{v8,uv}
1530 - dosym . /usr/include/node/src
1531 - for var in deps/{uv,v8}/include; do
1532 - dosym ../.. /usr/include/node/${var}
1533 - done
1534 -
1535 - if use doc; then
1536 - docinto html
1537 - dodoc -r "${S}"/doc/*
1538 - fi
1539 -
1540 - if use npm; then
1541 - dodir /etc/npm
1542 -
1543 - # Install bash completion for `npm`
1544 - # We need to temporarily replace default config path since
1545 - # npm otherwise tries to write outside of the sandbox
1546 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1547 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1548 - local tmp_npm_completion_file="$(emktemp)"
1549 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1550 - newbashcomp "${tmp_npm_completion_file}" npm
1551 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1552 -
1553 - # Move man pages
1554 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1555 -
1556 - # Clean up
1557 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1558 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1559 -
1560 - local find_exp="-or -name"
1561 - local find_name=()
1562 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1563 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1564 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1565 - find_name+=( ${find_exp} "${match}" )
1566 - done
1567 -
1568 - # Remove various development and/or inappropriate files and
1569 - # useless docs of dependend packages.
1570 - find "${LIBDIR}"/node_modules \
1571 - \( -type d -name examples \) -or \( -type f \( \
1572 - -iname "LICEN?E*" \
1573 - "${find_name[@]}" \
1574 - \) \) -exec rm -rf "{}" \;
1575 - fi
1576 -
1577 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1578 -}
1579 -
1580 -src_test() {
1581 - out/${BUILDTYPE}/cctest || die
1582 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1583 -}
1584 -
1585 -pkg_postinst() {
1586 - elog "The global npm config lives in /etc/npm. This deviates slightly"
1587 - elog "from upstream which otherwise would have it live in /usr/etc/."
1588 - elog ""
1589 - elog "Protip: When using node-gyp to install native modules, you can"
1590 - elog "avoid having to download extras by doing the following:"
1591 - elog "$ node-gyp --nodedir /usr/include/node <command>"
1592 -}
1593
1594 diff --git a/net-libs/nodejs/nodejs-14.3.0.ebuild b/net-libs/nodejs/nodejs-14.3.0.ebuild
1595 deleted file mode 100644
1596 index b1523bbc10d..00000000000
1597 --- a/net-libs/nodejs/nodejs-14.3.0.ebuild
1598 +++ /dev/null
1599 @@ -1,200 +0,0 @@
1600 -# Copyright 1999-2020 Gentoo Authors
1601 -# Distributed under the terms of the GNU General Public License v2
1602 -
1603 -EAPI=7
1604 -PYTHON_COMPAT=( python3_{6,7,8} )
1605 -PYTHON_REQ_USE="threads(+)"
1606 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
1607 -
1608 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1609 -HOMEPAGE="https://nodejs.org/"
1610 -SRC_URI="
1611 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
1612 -"
1613 -
1614 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1615 -SLOT="0"
1616 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1617 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test"
1618 -REQUIRED_USE="
1619 - inspector? ( icu ssl )
1620 - npm? ( ssl )
1621 - system-ssl? ( ssl )
1622 -"
1623 -
1624 -RDEPEND="
1625 - >=dev-libs/libuv-1.37.0:=
1626 - >=net-dns/c-ares-1.16.0
1627 - >=net-libs/nghttp2-1.40.0
1628 - sys-libs/zlib
1629 - icu? ( >=dev-libs/icu-65:= )
1630 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
1631 -"
1632 -BDEPEND="
1633 - ${PYTHON_DEPS}
1634 - systemtap? ( dev-util/systemtap )
1635 - test? ( net-misc/curl )
1636 - pax_kernel? ( sys-apps/elfix )
1637 -"
1638 -DEPEND="
1639 - ${RDEPEND}
1640 -"
1641 -PATCHES=(
1642 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1643 -)
1644 -RESTRICT="test"
1645 -S="${WORKDIR}/node-v${PV}"
1646 -
1647 -pkg_pretend() {
1648 - (use x86 && ! use cpu_flags_x86_sse2) && \
1649 - die "Your CPU doesn't support the required SSE2 instruction."
1650 -
1651 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1652 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1653 -}
1654 -
1655 -src_prepare() {
1656 - tc-export CC CXX PKG_CONFIG
1657 - export V=1
1658 - export BUILDTYPE=Release
1659 -
1660 - # fix compilation on Darwin
1661 - # https://code.google.com/p/gyp/issues/detail?id=260
1662 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1663 -
1664 - # less verbose install output (stating the same as portage, basically)
1665 - sed -i -e "/print/d" tools/install.py || die
1666 -
1667 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1668 - local LIBDIR=$(get_libdir)
1669 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1670 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1671 -
1672 - # Avoid writing a depfile, not useful
1673 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1674 -
1675 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
1676 -
1677 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1678 - # seem sandbox related either (invoking it from a sandbox works fine).
1679 - # The issue is that no stdin handle is openened when asked for one.
1680 - # It doesn't really belong upstream , so it'll just be removed until someone
1681 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1682 - rm test/parallel/test-stdout-close-unref.js || die
1683 -
1684 - # debug builds. change install path, remove optimisations and override buildtype
1685 - if use debug; then
1686 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1687 - BUILDTYPE=Debug
1688 - fi
1689 -
1690 - # We need to disable mprotect on two files when it builds Bug 694100.
1691 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
1692 -
1693 - default
1694 -}
1695 -
1696 -src_configure() {
1697 - xdg_environment_reset
1698 -
1699 - local myconf=(
1700 - --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib
1701 - )
1702 - use debug && myconf+=( --debug )
1703 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1704 - use inspector || myconf+=( --without-inspector )
1705 - use npm || myconf+=( --without-npm )
1706 - use snapshot || myconf+=( --without-node-snapshot )
1707 - if use ssl; then
1708 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
1709 - else
1710 - myconf+=( --without-ssl )
1711 - fi
1712 -
1713 - local myarch=""
1714 - case ${ABI} in
1715 - amd64) myarch="x64";;
1716 - arm) myarch="arm";;
1717 - arm64) myarch="arm64";;
1718 - ppc64) myarch="ppc64";;
1719 - x32) myarch="x32";;
1720 - x86) myarch="ia32";;
1721 - *) myarch="${ABI}";;
1722 - esac
1723 -
1724 - GYP_DEFINES="linux_use_gold_flags=0
1725 - linux_use_bundled_binutils=0
1726 - linux_use_bundled_gold=0" \
1727 - "${EPYTHON}" configure.py \
1728 - --prefix="${EPREFIX}"/usr \
1729 - --dest-cpu=${myarch} \
1730 - $(use_with systemtap dtrace) \
1731 - "${myconf[@]}" || die
1732 -}
1733 -
1734 -src_compile() {
1735 - emake -C out
1736 -}
1737 -
1738 -src_install() {
1739 - local LIBDIR="${ED}/usr/$(get_libdir)"
1740 - default
1741 -
1742 - pax-mark -m "${ED}"/usr/bin/node
1743 -
1744 - # set up a symlink structure that node-gyp expects..
1745 - dodir /usr/include/node/deps/{v8,uv}
1746 - dosym . /usr/include/node/src
1747 - for var in deps/{uv,v8}/include; do
1748 - dosym ../.. /usr/include/node/${var}
1749 - done
1750 -
1751 - if use doc; then
1752 - docinto html
1753 - dodoc -r "${S}"/doc/*
1754 - fi
1755 -
1756 - if use npm; then
1757 - dodir /etc/npm
1758 -
1759 - # Install bash completion for `npm`
1760 - # We need to temporarily replace default config path since
1761 - # npm otherwise tries to write outside of the sandbox
1762 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1763 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1764 - local tmp_npm_completion_file="$(emktemp)"
1765 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1766 - newbashcomp "${tmp_npm_completion_file}" npm
1767 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1768 -
1769 - # Move man pages
1770 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1771 -
1772 - # Clean up
1773 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1774 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1775 -
1776 - local find_exp="-or -name"
1777 - local find_name=()
1778 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1779 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1780 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1781 - find_name+=( ${find_exp} "${match}" )
1782 - done
1783 -
1784 - # Remove various development and/or inappropriate files and
1785 - # useless docs of dependend packages.
1786 - find "${LIBDIR}"/node_modules \
1787 - \( -type d -name examples \) -or \( -type f \( \
1788 - -iname "LICEN?E*" \
1789 - "${find_name[@]}" \
1790 - \) \) -exec rm -rf "{}" \;
1791 - fi
1792 -
1793 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
1794 -}
1795 -
1796 -src_test() {
1797 - out/${BUILDTYPE}/cctest || die
1798 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
1799 -}
1800
1801 diff --git a/net-libs/nodejs/nodejs-14.5.0.ebuild b/net-libs/nodejs/nodejs-14.5.0.ebuild
1802 deleted file mode 100644
1803 index e2b60aae3bb..00000000000
1804 --- a/net-libs/nodejs/nodejs-14.5.0.ebuild
1805 +++ /dev/null
1806 @@ -1,200 +0,0 @@
1807 -# Copyright 1999-2020 Gentoo Authors
1808 -# Distributed under the terms of the GNU General Public License v2
1809 -
1810 -EAPI=7
1811 -PYTHON_COMPAT=( python3_{6,7,8} )
1812 -PYTHON_REQ_USE="threads(+)"
1813 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
1814 -
1815 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
1816 -HOMEPAGE="https://nodejs.org/"
1817 -SRC_URI="
1818 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
1819 -"
1820 -
1821 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
1822 -SLOT="0"
1823 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
1824 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test"
1825 -REQUIRED_USE="
1826 - inspector? ( icu ssl )
1827 - npm? ( ssl )
1828 - system-ssl? ( ssl )
1829 -"
1830 -
1831 -RDEPEND="
1832 - >=dev-libs/libuv-1.38.0:=
1833 - >=net-dns/c-ares-1.16.0
1834 - >=net-libs/nghttp2-1.41.0
1835 - sys-libs/zlib
1836 - icu? ( >=dev-libs/icu-65:= )
1837 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
1838 -"
1839 -BDEPEND="
1840 - ${PYTHON_DEPS}
1841 - systemtap? ( dev-util/systemtap )
1842 - test? ( net-misc/curl )
1843 - pax_kernel? ( sys-apps/elfix )
1844 -"
1845 -DEPEND="
1846 - ${RDEPEND}
1847 -"
1848 -PATCHES=(
1849 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
1850 -)
1851 -RESTRICT="test"
1852 -S="${WORKDIR}/node-v${PV}"
1853 -
1854 -pkg_pretend() {
1855 - (use x86 && ! use cpu_flags_x86_sse2) && \
1856 - die "Your CPU doesn't support the required SSE2 instruction."
1857 -
1858 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
1859 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
1860 -}
1861 -
1862 -src_prepare() {
1863 - tc-export AR CC CXX PKG_CONFIG
1864 - export V=1
1865 - export BUILDTYPE=Release
1866 -
1867 - # fix compilation on Darwin
1868 - # https://code.google.com/p/gyp/issues/detail?id=260
1869 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
1870 -
1871 - # less verbose install output (stating the same as portage, basically)
1872 - sed -i -e "/print/d" tools/install.py || die
1873 -
1874 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
1875 - local LIBDIR=$(get_libdir)
1876 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
1877 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
1878 -
1879 - # Avoid writing a depfile, not useful
1880 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
1881 -
1882 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
1883 -
1884 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
1885 - # seem sandbox related either (invoking it from a sandbox works fine).
1886 - # The issue is that no stdin handle is openened when asked for one.
1887 - # It doesn't really belong upstream , so it'll just be removed until someone
1888 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
1889 - rm test/parallel/test-stdout-close-unref.js || die
1890 -
1891 - # debug builds. change install path, remove optimisations and override buildtype
1892 - if use debug; then
1893 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
1894 - BUILDTYPE=Debug
1895 - fi
1896 -
1897 - # We need to disable mprotect on two files when it builds Bug 694100.
1898 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
1899 -
1900 - default
1901 -}
1902 -
1903 -src_configure() {
1904 - xdg_environment_reset
1905 -
1906 - local myconf=(
1907 - --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib
1908 - )
1909 - use debug && myconf+=( --debug )
1910 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
1911 - use inspector || myconf+=( --without-inspector )
1912 - use npm || myconf+=( --without-npm )
1913 - use snapshot || myconf+=( --without-node-snapshot )
1914 - if use ssl; then
1915 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
1916 - else
1917 - myconf+=( --without-ssl )
1918 - fi
1919 -
1920 - local myarch=""
1921 - case ${ABI} in
1922 - amd64) myarch="x64";;
1923 - arm) myarch="arm";;
1924 - arm64) myarch="arm64";;
1925 - ppc64) myarch="ppc64";;
1926 - x32) myarch="x32";;
1927 - x86) myarch="ia32";;
1928 - *) myarch="${ABI}";;
1929 - esac
1930 -
1931 - GYP_DEFINES="linux_use_gold_flags=0
1932 - linux_use_bundled_binutils=0
1933 - linux_use_bundled_gold=0" \
1934 - "${EPYTHON}" configure.py \
1935 - --prefix="${EPREFIX}"/usr \
1936 - --dest-cpu=${myarch} \
1937 - $(use_with systemtap dtrace) \
1938 - "${myconf[@]}" || die
1939 -}
1940 -
1941 -src_compile() {
1942 - emake -C out
1943 -}
1944 -
1945 -src_install() {
1946 - local LIBDIR="${ED}/usr/$(get_libdir)"
1947 - default
1948 -
1949 - pax-mark -m "${ED}"/usr/bin/node
1950 -
1951 - # set up a symlink structure that node-gyp expects..
1952 - dodir /usr/include/node/deps/{v8,uv}
1953 - dosym . /usr/include/node/src
1954 - for var in deps/{uv,v8}/include; do
1955 - dosym ../.. /usr/include/node/${var}
1956 - done
1957 -
1958 - if use doc; then
1959 - docinto html
1960 - dodoc -r "${S}"/doc/*
1961 - fi
1962 -
1963 - if use npm; then
1964 - dodir /etc/npm
1965 -
1966 - # Install bash completion for `npm`
1967 - # We need to temporarily replace default config path since
1968 - # npm otherwise tries to write outside of the sandbox
1969 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
1970 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
1971 - local tmp_npm_completion_file="$(emktemp)"
1972 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
1973 - newbashcomp "${tmp_npm_completion_file}" npm
1974 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
1975 -
1976 - # Move man pages
1977 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
1978 -
1979 - # Clean up
1980 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
1981 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
1982 -
1983 - local find_exp="-or -name"
1984 - local find_name=()
1985 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
1986 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
1987 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
1988 - find_name+=( ${find_exp} "${match}" )
1989 - done
1990 -
1991 - # Remove various development and/or inappropriate files and
1992 - # useless docs of dependend packages.
1993 - find "${LIBDIR}"/node_modules \
1994 - \( -type d -name examples \) -or \( -type f \( \
1995 - -iname "LICEN?E*" \
1996 - "${find_name[@]}" \
1997 - \) \) -exec rm -rf "{}" \;
1998 - fi
1999 -
2000 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
2001 -}
2002 -
2003 -src_test() {
2004 - out/${BUILDTYPE}/cctest || die
2005 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
2006 -}
2007
2008 diff --git a/net-libs/nodejs/nodejs-14.6.0.ebuild b/net-libs/nodejs/nodejs-14.6.0.ebuild
2009 deleted file mode 100644
2010 index 9d912667e48..00000000000
2011 --- a/net-libs/nodejs/nodejs-14.6.0.ebuild
2012 +++ /dev/null
2013 @@ -1,200 +0,0 @@
2014 -# Copyright 1999-2020 Gentoo Authors
2015 -# Distributed under the terms of the GNU General Public License v2
2016 -
2017 -EAPI=7
2018 -PYTHON_COMPAT=( python3_{6,7,8} )
2019 -PYTHON_REQ_USE="threads(+)"
2020 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
2021 -
2022 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
2023 -HOMEPAGE="https://nodejs.org/"
2024 -SRC_URI="
2025 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
2026 -"
2027 -
2028 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
2029 -SLOT="0"
2030 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
2031 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test"
2032 -REQUIRED_USE="
2033 - inspector? ( icu ssl )
2034 - npm? ( ssl )
2035 - system-ssl? ( ssl )
2036 -"
2037 -
2038 -RDEPEND="
2039 - >=dev-libs/libuv-1.38.1:=
2040 - >=net-dns/c-ares-1.16.0
2041 - >=net-libs/nghttp2-1.41.0
2042 - sys-libs/zlib
2043 - icu? ( >=dev-libs/icu-67:= )
2044 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
2045 -"
2046 -BDEPEND="
2047 - ${PYTHON_DEPS}
2048 - systemtap? ( dev-util/systemtap )
2049 - test? ( net-misc/curl )
2050 - pax_kernel? ( sys-apps/elfix )
2051 -"
2052 -DEPEND="
2053 - ${RDEPEND}
2054 -"
2055 -PATCHES=(
2056 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
2057 -)
2058 -RESTRICT="test"
2059 -S="${WORKDIR}/node-v${PV}"
2060 -
2061 -pkg_pretend() {
2062 - (use x86 && ! use cpu_flags_x86_sse2) && \
2063 - die "Your CPU doesn't support the required SSE2 instruction."
2064 -
2065 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
2066 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
2067 -}
2068 -
2069 -src_prepare() {
2070 - tc-export AR CC CXX PKG_CONFIG
2071 - export V=1
2072 - export BUILDTYPE=Release
2073 -
2074 - # fix compilation on Darwin
2075 - # https://code.google.com/p/gyp/issues/detail?id=260
2076 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
2077 -
2078 - # less verbose install output (stating the same as portage, basically)
2079 - sed -i -e "/print/d" tools/install.py || die
2080 -
2081 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
2082 - local LIBDIR=$(get_libdir)
2083 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
2084 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
2085 -
2086 - # Avoid writing a depfile, not useful
2087 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
2088 -
2089 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
2090 -
2091 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
2092 - # seem sandbox related either (invoking it from a sandbox works fine).
2093 - # The issue is that no stdin handle is openened when asked for one.
2094 - # It doesn't really belong upstream , so it'll just be removed until someone
2095 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
2096 - rm test/parallel/test-stdout-close-unref.js || die
2097 -
2098 - # debug builds. change install path, remove optimisations and override buildtype
2099 - if use debug; then
2100 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
2101 - BUILDTYPE=Debug
2102 - fi
2103 -
2104 - # We need to disable mprotect on two files when it builds Bug 694100.
2105 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
2106 -
2107 - default
2108 -}
2109 -
2110 -src_configure() {
2111 - xdg_environment_reset
2112 -
2113 - local myconf=(
2114 - --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib
2115 - )
2116 - use debug && myconf+=( --debug )
2117 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
2118 - use inspector || myconf+=( --without-inspector )
2119 - use npm || myconf+=( --without-npm )
2120 - use snapshot || myconf+=( --without-node-snapshot )
2121 - if use ssl; then
2122 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
2123 - else
2124 - myconf+=( --without-ssl )
2125 - fi
2126 -
2127 - local myarch=""
2128 - case ${ABI} in
2129 - amd64) myarch="x64";;
2130 - arm) myarch="arm";;
2131 - arm64) myarch="arm64";;
2132 - ppc64) myarch="ppc64";;
2133 - x32) myarch="x32";;
2134 - x86) myarch="ia32";;
2135 - *) myarch="${ABI}";;
2136 - esac
2137 -
2138 - GYP_DEFINES="linux_use_gold_flags=0
2139 - linux_use_bundled_binutils=0
2140 - linux_use_bundled_gold=0" \
2141 - "${EPYTHON}" configure.py \
2142 - --prefix="${EPREFIX}"/usr \
2143 - --dest-cpu=${myarch} \
2144 - $(use_with systemtap dtrace) \
2145 - "${myconf[@]}" || die
2146 -}
2147 -
2148 -src_compile() {
2149 - emake -C out
2150 -}
2151 -
2152 -src_install() {
2153 - local LIBDIR="${ED}/usr/$(get_libdir)"
2154 - default
2155 -
2156 - pax-mark -m "${ED}"/usr/bin/node
2157 -
2158 - # set up a symlink structure that node-gyp expects..
2159 - dodir /usr/include/node/deps/{v8,uv}
2160 - dosym . /usr/include/node/src
2161 - for var in deps/{uv,v8}/include; do
2162 - dosym ../.. /usr/include/node/${var}
2163 - done
2164 -
2165 - if use doc; then
2166 - docinto html
2167 - dodoc -r "${S}"/doc/*
2168 - fi
2169 -
2170 - if use npm; then
2171 - dodir /etc/npm
2172 -
2173 - # Install bash completion for `npm`
2174 - # We need to temporarily replace default config path since
2175 - # npm otherwise tries to write outside of the sandbox
2176 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
2177 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
2178 - local tmp_npm_completion_file="$(emktemp)"
2179 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
2180 - newbashcomp "${tmp_npm_completion_file}" npm
2181 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
2182 -
2183 - # Move man pages
2184 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
2185 -
2186 - # Clean up
2187 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
2188 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
2189 -
2190 - local find_exp="-or -name"
2191 - local find_name=()
2192 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
2193 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
2194 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
2195 - find_name+=( ${find_exp} "${match}" )
2196 - done
2197 -
2198 - # Remove various development and/or inappropriate files and
2199 - # useless docs of dependend packages.
2200 - find "${LIBDIR}"/node_modules \
2201 - \( -type d -name examples \) -or \( -type f \( \
2202 - -iname "LICEN?E*" \
2203 - "${find_name[@]}" \
2204 - \) \) -exec rm -rf "{}" \;
2205 - fi
2206 -
2207 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
2208 -}
2209 -
2210 -src_test() {
2211 - out/${BUILDTYPE}/cctest || die
2212 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
2213 -}
2214
2215 diff --git a/net-libs/nodejs/nodejs-14.7.0.ebuild b/net-libs/nodejs/nodejs-14.7.0.ebuild
2216 deleted file mode 100644
2217 index 9d912667e48..00000000000
2218 --- a/net-libs/nodejs/nodejs-14.7.0.ebuild
2219 +++ /dev/null
2220 @@ -1,200 +0,0 @@
2221 -# Copyright 1999-2020 Gentoo Authors
2222 -# Distributed under the terms of the GNU General Public License v2
2223 -
2224 -EAPI=7
2225 -PYTHON_COMPAT=( python3_{6,7,8} )
2226 -PYTHON_REQ_USE="threads(+)"
2227 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
2228 -
2229 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
2230 -HOMEPAGE="https://nodejs.org/"
2231 -SRC_URI="
2232 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
2233 -"
2234 -
2235 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
2236 -SLOT="0"
2237 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
2238 -IUSE="cpu_flags_x86_sse2 debug doc +icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test"
2239 -REQUIRED_USE="
2240 - inspector? ( icu ssl )
2241 - npm? ( ssl )
2242 - system-ssl? ( ssl )
2243 -"
2244 -
2245 -RDEPEND="
2246 - >=dev-libs/libuv-1.38.1:=
2247 - >=net-dns/c-ares-1.16.0
2248 - >=net-libs/nghttp2-1.41.0
2249 - sys-libs/zlib
2250 - icu? ( >=dev-libs/icu-67:= )
2251 - system-ssl? ( >=dev-libs/openssl-1.1.1:0= )
2252 -"
2253 -BDEPEND="
2254 - ${PYTHON_DEPS}
2255 - systemtap? ( dev-util/systemtap )
2256 - test? ( net-misc/curl )
2257 - pax_kernel? ( sys-apps/elfix )
2258 -"
2259 -DEPEND="
2260 - ${RDEPEND}
2261 -"
2262 -PATCHES=(
2263 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
2264 -)
2265 -RESTRICT="test"
2266 -S="${WORKDIR}/node-v${PV}"
2267 -
2268 -pkg_pretend() {
2269 - (use x86 && ! use cpu_flags_x86_sse2) && \
2270 - die "Your CPU doesn't support the required SSE2 instruction."
2271 -
2272 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
2273 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
2274 -}
2275 -
2276 -src_prepare() {
2277 - tc-export AR CC CXX PKG_CONFIG
2278 - export V=1
2279 - export BUILDTYPE=Release
2280 -
2281 - # fix compilation on Darwin
2282 - # https://code.google.com/p/gyp/issues/detail?id=260
2283 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
2284 -
2285 - # less verbose install output (stating the same as portage, basically)
2286 - sed -i -e "/print/d" tools/install.py || die
2287 -
2288 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
2289 - local LIBDIR=$(get_libdir)
2290 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
2291 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
2292 -
2293 - # Avoid writing a depfile, not useful
2294 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
2295 -
2296 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
2297 -
2298 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
2299 - # seem sandbox related either (invoking it from a sandbox works fine).
2300 - # The issue is that no stdin handle is openened when asked for one.
2301 - # It doesn't really belong upstream , so it'll just be removed until someone
2302 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
2303 - rm test/parallel/test-stdout-close-unref.js || die
2304 -
2305 - # debug builds. change install path, remove optimisations and override buildtype
2306 - if use debug; then
2307 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
2308 - BUILDTYPE=Debug
2309 - fi
2310 -
2311 - # We need to disable mprotect on two files when it builds Bug 694100.
2312 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch )
2313 -
2314 - default
2315 -}
2316 -
2317 -src_configure() {
2318 - xdg_environment_reset
2319 -
2320 - local myconf=(
2321 - --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib
2322 - )
2323 - use debug && myconf+=( --debug )
2324 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
2325 - use inspector || myconf+=( --without-inspector )
2326 - use npm || myconf+=( --without-npm )
2327 - use snapshot || myconf+=( --without-node-snapshot )
2328 - if use ssl; then
2329 - use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store )
2330 - else
2331 - myconf+=( --without-ssl )
2332 - fi
2333 -
2334 - local myarch=""
2335 - case ${ABI} in
2336 - amd64) myarch="x64";;
2337 - arm) myarch="arm";;
2338 - arm64) myarch="arm64";;
2339 - ppc64) myarch="ppc64";;
2340 - x32) myarch="x32";;
2341 - x86) myarch="ia32";;
2342 - *) myarch="${ABI}";;
2343 - esac
2344 -
2345 - GYP_DEFINES="linux_use_gold_flags=0
2346 - linux_use_bundled_binutils=0
2347 - linux_use_bundled_gold=0" \
2348 - "${EPYTHON}" configure.py \
2349 - --prefix="${EPREFIX}"/usr \
2350 - --dest-cpu=${myarch} \
2351 - $(use_with systemtap dtrace) \
2352 - "${myconf[@]}" || die
2353 -}
2354 -
2355 -src_compile() {
2356 - emake -C out
2357 -}
2358 -
2359 -src_install() {
2360 - local LIBDIR="${ED}/usr/$(get_libdir)"
2361 - default
2362 -
2363 - pax-mark -m "${ED}"/usr/bin/node
2364 -
2365 - # set up a symlink structure that node-gyp expects..
2366 - dodir /usr/include/node/deps/{v8,uv}
2367 - dosym . /usr/include/node/src
2368 - for var in deps/{uv,v8}/include; do
2369 - dosym ../.. /usr/include/node/${var}
2370 - done
2371 -
2372 - if use doc; then
2373 - docinto html
2374 - dodoc -r "${S}"/doc/*
2375 - fi
2376 -
2377 - if use npm; then
2378 - dodir /etc/npm
2379 -
2380 - # Install bash completion for `npm`
2381 - # We need to temporarily replace default config path since
2382 - # npm otherwise tries to write outside of the sandbox
2383 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
2384 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
2385 - local tmp_npm_completion_file="$(emktemp)"
2386 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
2387 - newbashcomp "${tmp_npm_completion_file}" npm
2388 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
2389 -
2390 - # Move man pages
2391 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
2392 -
2393 - # Clean up
2394 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
2395 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
2396 -
2397 - local find_exp="-or -name"
2398 - local find_name=()
2399 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
2400 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
2401 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
2402 - find_name+=( ${find_exp} "${match}" )
2403 - done
2404 -
2405 - # Remove various development and/or inappropriate files and
2406 - # useless docs of dependend packages.
2407 - find "${LIBDIR}"/node_modules \
2408 - \( -type d -name examples \) -or \( -type f \( \
2409 - -iname "LICEN?E*" \
2410 - "${find_name[@]}" \
2411 - \) \) -exec rm -rf "{}" \;
2412 - fi
2413 -
2414 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
2415 -}
2416 -
2417 -src_test() {
2418 - out/${BUILDTYPE}/cctest || die
2419 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
2420 -}
2421
2422 diff --git a/net-libs/nodejs/nodejs-8.12.0.ebuild b/net-libs/nodejs/nodejs-8.12.0.ebuild
2423 deleted file mode 100644
2424 index 42936ad7d0d..00000000000
2425 --- a/net-libs/nodejs/nodejs-8.12.0.ebuild
2426 +++ /dev/null
2427 @@ -1,203 +0,0 @@
2428 -# Copyright 1999-2020 Gentoo Authors
2429 -# Distributed under the terms of the GNU General Public License v2
2430 -
2431 -EAPI=6
2432 -RESTRICT="test"
2433 -
2434 -PYTHON_COMPAT=( python2_7 )
2435 -PYTHON_REQ_USE="threads"
2436 -
2437 -inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
2438 -
2439 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
2440 -HOMEPAGE="https://nodejs.org/"
2441 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
2442 -
2443 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
2444 -SLOT="0"
2445 -KEYWORDS="arm ppc ppc64 ~amd64-linux ~x64-macos"
2446 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
2447 -REQUIRED_USE="
2448 - inspector? ( icu ssl )
2449 - npm? ( ssl )
2450 -"
2451 -
2452 -RDEPEND="
2453 - >=dev-libs/libuv-1.19.2:=
2454 - >=net-libs/http-parser-2.8.0:=
2455 - >=net-libs/nghttp2-1.32.0
2456 - sys-libs/zlib
2457 - icu? ( >=dev-libs/icu-60.1:= )
2458 - ssl? ( >=dev-libs/openssl-1.0.2n:0=[-bindist] )
2459 -"
2460 -DEPEND="${RDEPEND}
2461 - ${PYTHON_DEPS}
2462 - systemtap? ( dev-util/systemtap )
2463 - test? ( net-misc/curl )"
2464 -
2465 -S="${WORKDIR}/node-v${PV}"
2466 -
2467 -PATCHES=(
2468 - "${FILESDIR}"/nodejs-10.3.0-global-npm-config.patch
2469 -)
2470 -
2471 -pkg_pretend() {
2472 - (use x86 && ! use cpu_flags_x86_sse2) && \
2473 - die "Your CPU doesn't support the required SSE2 instruction."
2474 -
2475 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
2476 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
2477 -}
2478 -
2479 -src_prepare() {
2480 - tc-export CC CXX PKG_CONFIG
2481 - export V=1
2482 - export BUILDTYPE=Release
2483 -
2484 - # fix compilation on Darwin
2485 - # https://code.google.com/p/gyp/issues/detail?id=260
2486 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
2487 -
2488 - # make sure we use python2.* while using gyp
2489 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
2490 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
2491 -
2492 - # less verbose install output (stating the same as portage, basically)
2493 - sed -i -e "/print/d" tools/install.py || die
2494 -
2495 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
2496 - local LIBDIR=$(get_libdir)
2497 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
2498 - sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die
2499 -
2500 - # Avoid writing a depfile, not useful
2501 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
2502 -
2503 - sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die
2504 -
2505 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
2506 - # seem sandbox related either (invoking it from a sandbox works fine).
2507 - # The issue is that no stdin handle is openened when asked for one.
2508 - # It doesn't really belong upstream , so it'll just be removed until someone
2509 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
2510 - rm test/parallel/test-stdout-close-unref.js || die
2511 -
2512 - # debug builds. change install path, remove optimisations and override buildtype
2513 - if use debug; then
2514 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
2515 - BUILDTYPE=Debug
2516 - fi
2517 -
2518 - default
2519 -}
2520 -
2521 -src_configure() {
2522 - xdg_environment_reset
2523 -
2524 - local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib )
2525 - use debug && myconf+=( --debug )
2526 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
2527 - use inspector || myconf+=( --without-inspector )
2528 - use npm || myconf+=( --without-npm )
2529 - use snapshot && myconf+=( --with-snapshot )
2530 - use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl )
2531 -
2532 - local myarch=""
2533 - case ${ABI} in
2534 - amd64) myarch="x64";;
2535 - arm) myarch="arm";;
2536 - arm64) myarch="arm64";;
2537 - ppc64) myarch="ppc64";;
2538 - x32) myarch="x32";;
2539 - x86) myarch="ia32";;
2540 - *) myarch="${ABI}";;
2541 - esac
2542 -
2543 - GYP_DEFINES="linux_use_gold_flags=0
2544 - linux_use_bundled_binutils=0
2545 - linux_use_bundled_gold=0" \
2546 - "${PYTHON}" configure \
2547 - --prefix="${EPREFIX}"/usr \
2548 - --dest-cpu=${myarch} \
2549 - $(use_with systemtap dtrace) \
2550 - "${myconf[@]}" || die
2551 -}
2552 -
2553 -src_compile() {
2554 - emake -C out mksnapshot
2555 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
2556 - emake -C out
2557 -}
2558 -
2559 -src_install() {
2560 - local LIBDIR="${ED}/usr/$(get_libdir)"
2561 - emake install DESTDIR="${D}"
2562 - pax-mark -m "${ED}"usr/bin/node
2563 -
2564 - # set up a symlink structure that node-gyp expects..
2565 - dodir /usr/include/node/deps/{v8,uv}
2566 - dosym . /usr/include/node/src
2567 - for var in deps/{uv,v8}/include; do
2568 - dosym ../.. /usr/include/node/${var}
2569 - done
2570 -
2571 - if use doc; then
2572 - # Patch docs to make them offline readable
2573 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
2574 - sed -i '/fonts.googleapis.com/ d' $i;
2575 - done
2576 - # Install docs!
2577 - dohtml -r "${S}"/doc/*
2578 - fi
2579 -
2580 - if use npm; then
2581 - dodir /etc/npm
2582 -
2583 - # Install bash completion for `npm`
2584 - # We need to temporarily replace default config path since
2585 - # npm otherwise tries to write outside of the sandbox
2586 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
2587 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
2588 - local tmp_npm_completion_file="$(emktemp)"
2589 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
2590 - newbashcomp "${tmp_npm_completion_file}" npm
2591 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
2592 -
2593 - # Move man pages
2594 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
2595 -
2596 - # Clean up
2597 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
2598 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
2599 -
2600 - local find_exp="-or -name"
2601 - local find_name=()
2602 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
2603 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
2604 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
2605 - find_name+=( ${find_exp} "${match}" )
2606 - done
2607 -
2608 - # Remove various development and/or inappropriate files and
2609 - # useless docs of dependend packages.
2610 - find "${LIBDIR}"/node_modules \
2611 - \( -type d -name examples \) -or \( -type f \( \
2612 - -iname "LICEN?E*" \
2613 - "${find_name[@]}" \
2614 - \) \) -exec rm -rf "{}" \;
2615 - fi
2616 -}
2617 -
2618 -src_test() {
2619 - out/${BUILDTYPE}/cctest || die
2620 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
2621 -}
2622 -
2623 -pkg_postinst() {
2624 - einfo "The global npm config lives in /etc/npm. This deviates slightly"
2625 - einfo "from upstream which otherwise would have it live in /usr/etc/."
2626 - einfo ""
2627 - einfo "Protip: When using node-gyp to install native modules, you can"
2628 - einfo "avoid having to download extras by doing the following:"
2629 - einfo "$ node-gyp --nodedir /usr/include/node <command>"
2630 -}