1 |
commit: f24bd899dfd17e32c9763f22269b25a9dd143395 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 21 06:49:52 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 21 06:50:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f24bd899 |
7 |
|
8 |
net-libs/nodejs: Old |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-libs/nodejs/Manifest | 4 - |
14 |
net-libs/nodejs/nodejs-13.13.0.ebuild | 209 ---------------------------------- |
15 |
net-libs/nodejs/nodejs-13.14.0.ebuild | 209 ---------------------------------- |
16 |
net-libs/nodejs/nodejs-14.0.0.ebuild | 209 ---------------------------------- |
17 |
net-libs/nodejs/nodejs-14.1.0.ebuild | 209 ---------------------------------- |
18 |
5 files changed, 840 deletions(-) |
19 |
|
20 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
21 |
index f60462dcf83..8ae6f4e4c01 100644 |
22 |
--- a/net-libs/nodejs/Manifest |
23 |
+++ b/net-libs/nodejs/Manifest |
24 |
@@ -3,10 +3,6 @@ DIST node-v10.20.1.tar.xz 21947588 BLAKE2B 6078e29a125fc1020de7b62c97174d82273af |
25 |
DIST node-v12.16.1.tar.xz 23481768 BLAKE2B 29371b952c14907778c064269108f1da5e3818c32773e73090c61edcd07190c418189db6a505987ca71f99bb868880e297de5d2181b9a880774eaaf515985f26 SHA512 fe1e9fabb6fe52e3bc4275b33e6c5e4a761550b04964c0ae7dbef7172f5d415207bb2985751d068e357ce45a0ba414b07c0abd1531ef839b9463e98eeae8f9a4 |
26 |
DIST node-v12.16.2.tar.xz 23654020 BLAKE2B aa4bb764a8731e32ce07d03d96d573632bbf9af79b127c2acec48fcf335c01ea0ea99532670a46befac42e2e1ce5a4dbd2e4cf0d068bac05749d87af59bb80fa SHA512 81688468bc6e20d83f7f58f0c15f9291a801eb2acc8ba7279e65d81f3eb4ea95e3b6cee0d09738c0d0fa35226ae3d52f2bad5da63a20a3edc9129197d42d000d |
27 |
DIST node-v12.16.3.tar.xz 23682432 BLAKE2B 91b97c0de9c76f33d080f3f12a42a15140be6e3f4d42022a55305dc2afc04de6a2b8364b9fc5df0dd71c9ec249eb9e4da8ff23f53be43a1f306d2a6fbc6d6bce SHA512 e5d2d1960972f19ef5acc667efb702d534eb436212dea9e0bfd817328c927b55734406f232b32bba366f05c2691e5085e3a6f8c1e2d959398745e60719e731b3 |
28 |
-DIST node-v13.13.0.tar.xz 32862040 BLAKE2B de2802543421049d225b9eab5f1edd3f3d483cf50839fd646cc5756f272b42baaf56c58c3c31c498cb79abf8ed678cd5dbe6c5622b6dd4564ed22dbde11ce1ae SHA512 344d364fd39c9497ff7d2829b271b572f3f997fc3eb01744c9ba533b4ba1e8a1fbd08ad28909e74504f4bf84de95d0197a0b5e8b9cf07180a1457fdd2e95775e |
29 |
-DIST node-v13.14.0.tar.xz 32862504 BLAKE2B 2e74e1d8afd508aade66db2e4c251be18308932502db5c3f556a233ce863faaa5279b5fa758c9b4aa76b7fa0469b9440b696695787ca58092ad8fc0389b8a029 SHA512 c0da3e7742dddbead71c321157fdd5790de688a98c0c6016e06e6a26babea7347595d74cc8b9ac7e033daf8bd23d0306316e41f138e7b9220ce25b05403602d2 |
30 |
-DIST node-v14.0.0.tar.xz 32850900 BLAKE2B ef24e6559246f64d9a54d1e6c9ac390bb416af2ac494547f4171db014e2213cd0b11a482ab611865ca3f61a60a9d793207c53f1779d687a7ba7a32fc4d9f29cc SHA512 030dff2bc46594e5e86e0383185030980ae486bbdab2fd2cf65e591c80a9426cf4e6f16c384d36e6094b8a58e8511d7019bef379c44650507d1352a680505710 |
31 |
-DIST node-v14.1.0.tar.xz 32861052 BLAKE2B 34727e0c615b08941edf29da6cc88cfb039f25321b25ea2e544dc6b844520e9174572b5ada5719d73fdb55dbacc156726fdfb7a552defd02f2bfebd3a2cc3835 SHA512 90c981ea198dca59aa1e2b8e528d6e7ea0bf13066ae0d9ffdd9018d8923496e029f0e3ddc0bbf8e0eb67e1087a26a41e16101c83297e086b904a4a92865e7101 |
32 |
DIST node-v14.2.0.tar.xz 32884616 BLAKE2B 7bcb07cb7623c5e08c20267c320cdf23ad110f124c5ad1f2447ef8b76ab8dc44ed50dab7c5651424d9d3a36f7eeecdf3292b07c02cb2e22c3fbe4ed633c4b842 SHA512 47e5ec0b7a207082d43419a7e0a6ea9242ec43b4d7c2217eb66d0b45e2f4d5cb561b3f6fe35fdc41a8be95c182dc122ba262f696ebd12833596d71b372ec85d2 |
33 |
DIST node-v14.3.0.tar.xz 32985344 BLAKE2B 32ee357e109484422c3b22423ab9a593cd5d4611073c820f90c196dae4df2860573cdd06170879f675b738b01885eb2fe0f25c2328841838bf9367324cc981a7 SHA512 3afcc430bad57150baa8d1c0e5ef0f64691ef6549a052be654a86313fe28f31e7fdfeea4d2b3993798a7141bc6d7b1642747d1bc2636139e2f2fd79441580148 |
34 |
DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42 |
35 |
|
36 |
diff --git a/net-libs/nodejs/nodejs-13.13.0.ebuild b/net-libs/nodejs/nodejs-13.13.0.ebuild |
37 |
deleted file mode 100644 |
38 |
index fa899478932..00000000000 |
39 |
--- a/net-libs/nodejs/nodejs-13.13.0.ebuild |
40 |
+++ /dev/null |
41 |
@@ -1,209 +0,0 @@ |
42 |
-# Copyright 1999-2020 Gentoo Authors |
43 |
-# Distributed under the terms of the GNU General Public License v2 |
44 |
- |
45 |
-EAPI=7 |
46 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
47 |
-PYTHON_REQ_USE="threads(+)" |
48 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
49 |
- |
50 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
51 |
-HOMEPAGE="https://nodejs.org/" |
52 |
-SRC_URI=" |
53 |
- https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz |
54 |
-" |
55 |
- |
56 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
57 |
-SLOT="0" |
58 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
59 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test" |
60 |
-REQUIRED_USE=" |
61 |
- inspector? ( icu ssl ) |
62 |
- npm? ( ssl ) |
63 |
- system-ssl? ( ssl ) |
64 |
-" |
65 |
- |
66 |
-RDEPEND=" |
67 |
- >=dev-libs/libuv-1.35.0:= |
68 |
- >=net-dns/c-ares-1.16.0 |
69 |
- >=net-libs/nghttp2-1.40.0 |
70 |
- sys-libs/zlib |
71 |
- icu? ( >=dev-libs/icu-66.1:= ) |
72 |
- system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
73 |
-" |
74 |
-BDEPEND=" |
75 |
- ${PYTHON_DEPS} |
76 |
- systemtap? ( dev-util/systemtap ) |
77 |
- test? ( net-misc/curl ) |
78 |
- pax_kernel? ( sys-apps/elfix ) |
79 |
-" |
80 |
-DEPEND=" |
81 |
- ${RDEPEND} |
82 |
-" |
83 |
-PATCHES=( |
84 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
85 |
-) |
86 |
-RESTRICT="test" |
87 |
-S="${WORKDIR}/node-v${PV}" |
88 |
- |
89 |
-pkg_pretend() { |
90 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
91 |
- die "Your CPU doesn't support the required SSE2 instruction." |
92 |
- |
93 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
94 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
95 |
-} |
96 |
- |
97 |
-src_prepare() { |
98 |
- tc-export CC CXX PKG_CONFIG |
99 |
- export V=1 |
100 |
- export BUILDTYPE=Release |
101 |
- |
102 |
- # fix compilation on Darwin |
103 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
104 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
105 |
- |
106 |
- # less verbose install output (stating the same as portage, basically) |
107 |
- sed -i -e "/print/d" tools/install.py || die |
108 |
- |
109 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
110 |
- local LIBDIR=$(get_libdir) |
111 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
112 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
113 |
- |
114 |
- # Avoid writing a depfile, not useful |
115 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
116 |
- |
117 |
- sed -i -e "/'-O3'/d" common.gypi node.gypi || die |
118 |
- |
119 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
120 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
121 |
- # The issue is that no stdin handle is openened when asked for one. |
122 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
123 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
124 |
- rm test/parallel/test-stdout-close-unref.js || die |
125 |
- |
126 |
- # debug builds. change install path, remove optimisations and override buildtype |
127 |
- if use debug; then |
128 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
129 |
- BUILDTYPE=Debug |
130 |
- fi |
131 |
- |
132 |
- # We need to disable mprotect on two files when it builds Bug 694100. |
133 |
- use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch ) |
134 |
- |
135 |
- default |
136 |
-} |
137 |
- |
138 |
-src_configure() { |
139 |
- xdg_environment_reset |
140 |
- |
141 |
- local myconf=( |
142 |
- --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib |
143 |
- ) |
144 |
- use debug && myconf+=( --debug ) |
145 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
146 |
- use inspector || myconf+=( --without-inspector ) |
147 |
- use npm || myconf+=( --without-npm ) |
148 |
- use snapshot || myconf+=( --without-node-snapshot ) |
149 |
- if use ssl; then |
150 |
- use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) |
151 |
- else |
152 |
- myconf+=( --without-ssl ) |
153 |
- fi |
154 |
- |
155 |
- local myarch="" |
156 |
- case ${ABI} in |
157 |
- amd64) myarch="x64";; |
158 |
- arm) myarch="arm";; |
159 |
- arm64) myarch="arm64";; |
160 |
- ppc64) myarch="ppc64";; |
161 |
- x32) myarch="x32";; |
162 |
- x86) myarch="ia32";; |
163 |
- *) myarch="${ABI}";; |
164 |
- esac |
165 |
- |
166 |
- GYP_DEFINES="linux_use_gold_flags=0 |
167 |
- linux_use_bundled_binutils=0 |
168 |
- linux_use_bundled_gold=0" \ |
169 |
- "${EPYTHON}" configure.py \ |
170 |
- --prefix="${EPREFIX}"/usr \ |
171 |
- --dest-cpu=${myarch} \ |
172 |
- $(use_with systemtap dtrace) \ |
173 |
- "${myconf[@]}" || die |
174 |
-} |
175 |
- |
176 |
-src_compile() { |
177 |
- emake -C out |
178 |
-} |
179 |
- |
180 |
-src_install() { |
181 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
182 |
- default |
183 |
- |
184 |
- pax-mark -m "${ED}"/usr/bin/node |
185 |
- |
186 |
- # set up a symlink structure that node-gyp expects.. |
187 |
- dodir /usr/include/node/deps/{v8,uv} |
188 |
- dosym . /usr/include/node/src |
189 |
- for var in deps/{uv,v8}/include; do |
190 |
- dosym ../.. /usr/include/node/${var} |
191 |
- done |
192 |
- |
193 |
- if use doc; then |
194 |
- docinto html |
195 |
- dodoc -r "${S}"/doc/* |
196 |
- fi |
197 |
- |
198 |
- if use npm; then |
199 |
- dodir /etc/npm |
200 |
- |
201 |
- # Install bash completion for `npm` |
202 |
- # We need to temporarily replace default config path since |
203 |
- # npm otherwise tries to write outside of the sandbox |
204 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
205 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
206 |
- local tmp_npm_completion_file="$(emktemp)" |
207 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
208 |
- newbashcomp "${tmp_npm_completion_file}" npm |
209 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
210 |
- |
211 |
- # Move man pages |
212 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
213 |
- |
214 |
- # Clean up |
215 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
216 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
217 |
- |
218 |
- local find_exp="-or -name" |
219 |
- local find_name=() |
220 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
221 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
222 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
223 |
- find_name+=( ${find_exp} "${match}" ) |
224 |
- done |
225 |
- |
226 |
- # Remove various development and/or inappropriate files and |
227 |
- # useless docs of dependend packages. |
228 |
- find "${LIBDIR}"/node_modules \ |
229 |
- \( -type d -name examples \) -or \( -type f \( \ |
230 |
- -iname "LICEN?E*" \ |
231 |
- "${find_name[@]}" \ |
232 |
- \) \) -exec rm -rf "{}" \; |
233 |
- fi |
234 |
- |
235 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
236 |
-} |
237 |
- |
238 |
-src_test() { |
239 |
- out/${BUILDTYPE}/cctest || die |
240 |
- "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
241 |
-} |
242 |
- |
243 |
-pkg_postinst() { |
244 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
245 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
246 |
- elog "" |
247 |
- elog "Protip: When using node-gyp to install native modules, you can" |
248 |
- elog "avoid having to download extras by doing the following:" |
249 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
250 |
-} |
251 |
|
252 |
diff --git a/net-libs/nodejs/nodejs-13.14.0.ebuild b/net-libs/nodejs/nodejs-13.14.0.ebuild |
253 |
deleted file mode 100644 |
254 |
index 625eb14589d..00000000000 |
255 |
--- a/net-libs/nodejs/nodejs-13.14.0.ebuild |
256 |
+++ /dev/null |
257 |
@@ -1,209 +0,0 @@ |
258 |
-# Copyright 1999-2020 Gentoo Authors |
259 |
-# Distributed under the terms of the GNU General Public License v2 |
260 |
- |
261 |
-EAPI=7 |
262 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
263 |
-PYTHON_REQ_USE="threads(+)" |
264 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
265 |
- |
266 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
267 |
-HOMEPAGE="https://nodejs.org/" |
268 |
-SRC_URI=" |
269 |
- https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz |
270 |
-" |
271 |
- |
272 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
273 |
-SLOT="0" |
274 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
275 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test" |
276 |
-REQUIRED_USE=" |
277 |
- inspector? ( icu ssl ) |
278 |
- npm? ( ssl ) |
279 |
- system-ssl? ( ssl ) |
280 |
-" |
281 |
- |
282 |
-RDEPEND=" |
283 |
- >=dev-libs/libuv-1.37.0:= |
284 |
- >=net-dns/c-ares-1.16.0 |
285 |
- >=net-libs/nghttp2-1.40.0 |
286 |
- sys-libs/zlib |
287 |
- icu? ( >=dev-libs/icu-64.1:= ) |
288 |
- system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
289 |
-" |
290 |
-BDEPEND=" |
291 |
- ${PYTHON_DEPS} |
292 |
- systemtap? ( dev-util/systemtap ) |
293 |
- test? ( net-misc/curl ) |
294 |
- pax_kernel? ( sys-apps/elfix ) |
295 |
-" |
296 |
-DEPEND=" |
297 |
- ${RDEPEND} |
298 |
-" |
299 |
-PATCHES=( |
300 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
301 |
-) |
302 |
-RESTRICT="test" |
303 |
-S="${WORKDIR}/node-v${PV}" |
304 |
- |
305 |
-pkg_pretend() { |
306 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
307 |
- die "Your CPU doesn't support the required SSE2 instruction." |
308 |
- |
309 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
310 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
311 |
-} |
312 |
- |
313 |
-src_prepare() { |
314 |
- tc-export CC CXX PKG_CONFIG |
315 |
- export V=1 |
316 |
- export BUILDTYPE=Release |
317 |
- |
318 |
- # fix compilation on Darwin |
319 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
320 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
321 |
- |
322 |
- # less verbose install output (stating the same as portage, basically) |
323 |
- sed -i -e "/print/d" tools/install.py || die |
324 |
- |
325 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
326 |
- local LIBDIR=$(get_libdir) |
327 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
328 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
329 |
- |
330 |
- # Avoid writing a depfile, not useful |
331 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
332 |
- |
333 |
- sed -i -e "/'-O3'/d" common.gypi node.gypi || die |
334 |
- |
335 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
336 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
337 |
- # The issue is that no stdin handle is openened when asked for one. |
338 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
339 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
340 |
- rm test/parallel/test-stdout-close-unref.js || die |
341 |
- |
342 |
- # debug builds. change install path, remove optimisations and override buildtype |
343 |
- if use debug; then |
344 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
345 |
- BUILDTYPE=Debug |
346 |
- fi |
347 |
- |
348 |
- # We need to disable mprotect on two files when it builds Bug 694100. |
349 |
- use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch ) |
350 |
- |
351 |
- default |
352 |
-} |
353 |
- |
354 |
-src_configure() { |
355 |
- xdg_environment_reset |
356 |
- |
357 |
- local myconf=( |
358 |
- --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib |
359 |
- ) |
360 |
- use debug && myconf+=( --debug ) |
361 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
362 |
- use inspector || myconf+=( --without-inspector ) |
363 |
- use npm || myconf+=( --without-npm ) |
364 |
- use snapshot || myconf+=( --without-node-snapshot ) |
365 |
- if use ssl; then |
366 |
- use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) |
367 |
- else |
368 |
- myconf+=( --without-ssl ) |
369 |
- fi |
370 |
- |
371 |
- local myarch="" |
372 |
- case ${ABI} in |
373 |
- amd64) myarch="x64";; |
374 |
- arm) myarch="arm";; |
375 |
- arm64) myarch="arm64";; |
376 |
- ppc64) myarch="ppc64";; |
377 |
- x32) myarch="x32";; |
378 |
- x86) myarch="ia32";; |
379 |
- *) myarch="${ABI}";; |
380 |
- esac |
381 |
- |
382 |
- GYP_DEFINES="linux_use_gold_flags=0 |
383 |
- linux_use_bundled_binutils=0 |
384 |
- linux_use_bundled_gold=0" \ |
385 |
- "${EPYTHON}" configure.py \ |
386 |
- --prefix="${EPREFIX}"/usr \ |
387 |
- --dest-cpu=${myarch} \ |
388 |
- $(use_with systemtap dtrace) \ |
389 |
- "${myconf[@]}" || die |
390 |
-} |
391 |
- |
392 |
-src_compile() { |
393 |
- emake -C out |
394 |
-} |
395 |
- |
396 |
-src_install() { |
397 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
398 |
- default |
399 |
- |
400 |
- pax-mark -m "${ED}"/usr/bin/node |
401 |
- |
402 |
- # set up a symlink structure that node-gyp expects.. |
403 |
- dodir /usr/include/node/deps/{v8,uv} |
404 |
- dosym . /usr/include/node/src |
405 |
- for var in deps/{uv,v8}/include; do |
406 |
- dosym ../.. /usr/include/node/${var} |
407 |
- done |
408 |
- |
409 |
- if use doc; then |
410 |
- docinto html |
411 |
- dodoc -r "${S}"/doc/* |
412 |
- fi |
413 |
- |
414 |
- if use npm; then |
415 |
- dodir /etc/npm |
416 |
- |
417 |
- # Install bash completion for `npm` |
418 |
- # We need to temporarily replace default config path since |
419 |
- # npm otherwise tries to write outside of the sandbox |
420 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
421 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
422 |
- local tmp_npm_completion_file="$(emktemp)" |
423 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
424 |
- newbashcomp "${tmp_npm_completion_file}" npm |
425 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
426 |
- |
427 |
- # Move man pages |
428 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
429 |
- |
430 |
- # Clean up |
431 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
432 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
433 |
- |
434 |
- local find_exp="-or -name" |
435 |
- local find_name=() |
436 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
437 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
438 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
439 |
- find_name+=( ${find_exp} "${match}" ) |
440 |
- done |
441 |
- |
442 |
- # Remove various development and/or inappropriate files and |
443 |
- # useless docs of dependend packages. |
444 |
- find "${LIBDIR}"/node_modules \ |
445 |
- \( -type d -name examples \) -or \( -type f \( \ |
446 |
- -iname "LICEN?E*" \ |
447 |
- "${find_name[@]}" \ |
448 |
- \) \) -exec rm -rf "{}" \; |
449 |
- fi |
450 |
- |
451 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
452 |
-} |
453 |
- |
454 |
-src_test() { |
455 |
- out/${BUILDTYPE}/cctest || die |
456 |
- "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
457 |
-} |
458 |
- |
459 |
-pkg_postinst() { |
460 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
461 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
462 |
- elog "" |
463 |
- elog "Protip: When using node-gyp to install native modules, you can" |
464 |
- elog "avoid having to download extras by doing the following:" |
465 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
466 |
-} |
467 |
|
468 |
diff --git a/net-libs/nodejs/nodejs-14.0.0.ebuild b/net-libs/nodejs/nodejs-14.0.0.ebuild |
469 |
deleted file mode 100644 |
470 |
index ddd7391838e..00000000000 |
471 |
--- a/net-libs/nodejs/nodejs-14.0.0.ebuild |
472 |
+++ /dev/null |
473 |
@@ -1,209 +0,0 @@ |
474 |
-# Copyright 1999-2020 Gentoo Authors |
475 |
-# Distributed under the terms of the GNU General Public License v2 |
476 |
- |
477 |
-EAPI=7 |
478 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
479 |
-PYTHON_REQ_USE="threads(+)" |
480 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
481 |
- |
482 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
483 |
-HOMEPAGE="https://nodejs.org/" |
484 |
-SRC_URI=" |
485 |
- https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz |
486 |
-" |
487 |
- |
488 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
489 |
-SLOT="0" |
490 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
491 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test" |
492 |
-REQUIRED_USE=" |
493 |
- inspector? ( icu ssl ) |
494 |
- npm? ( ssl ) |
495 |
- system-ssl? ( ssl ) |
496 |
-" |
497 |
- |
498 |
-RDEPEND=" |
499 |
- >=dev-libs/libuv-1.37.0:= |
500 |
- >=net-dns/c-ares-1.16.0 |
501 |
- >=net-libs/nghttp2-1.40.0 |
502 |
- sys-libs/zlib |
503 |
- icu? ( >=dev-libs/icu-65:= ) |
504 |
- system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
505 |
-" |
506 |
-BDEPEND=" |
507 |
- ${PYTHON_DEPS} |
508 |
- systemtap? ( dev-util/systemtap ) |
509 |
- test? ( net-misc/curl ) |
510 |
- pax_kernel? ( sys-apps/elfix ) |
511 |
-" |
512 |
-DEPEND=" |
513 |
- ${RDEPEND} |
514 |
-" |
515 |
-PATCHES=( |
516 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
517 |
-) |
518 |
-RESTRICT="test" |
519 |
-S="${WORKDIR}/node-v${PV}" |
520 |
- |
521 |
-pkg_pretend() { |
522 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
523 |
- die "Your CPU doesn't support the required SSE2 instruction." |
524 |
- |
525 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
526 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
527 |
-} |
528 |
- |
529 |
-src_prepare() { |
530 |
- tc-export CC CXX PKG_CONFIG |
531 |
- export V=1 |
532 |
- export BUILDTYPE=Release |
533 |
- |
534 |
- # fix compilation on Darwin |
535 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
536 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
537 |
- |
538 |
- # less verbose install output (stating the same as portage, basically) |
539 |
- sed -i -e "/print/d" tools/install.py || die |
540 |
- |
541 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
542 |
- local LIBDIR=$(get_libdir) |
543 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
544 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
545 |
- |
546 |
- # Avoid writing a depfile, not useful |
547 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
548 |
- |
549 |
- sed -i -e "/'-O3'/d" common.gypi node.gypi || die |
550 |
- |
551 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
552 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
553 |
- # The issue is that no stdin handle is openened when asked for one. |
554 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
555 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
556 |
- rm test/parallel/test-stdout-close-unref.js || die |
557 |
- |
558 |
- # debug builds. change install path, remove optimisations and override buildtype |
559 |
- if use debug; then |
560 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
561 |
- BUILDTYPE=Debug |
562 |
- fi |
563 |
- |
564 |
- # We need to disable mprotect on two files when it builds Bug 694100. |
565 |
- use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch ) |
566 |
- |
567 |
- default |
568 |
-} |
569 |
- |
570 |
-src_configure() { |
571 |
- xdg_environment_reset |
572 |
- |
573 |
- local myconf=( |
574 |
- --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib |
575 |
- ) |
576 |
- use debug && myconf+=( --debug ) |
577 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
578 |
- use inspector || myconf+=( --without-inspector ) |
579 |
- use npm || myconf+=( --without-npm ) |
580 |
- use snapshot || myconf+=( --without-node-snapshot ) |
581 |
- if use ssl; then |
582 |
- use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) |
583 |
- else |
584 |
- myconf+=( --without-ssl ) |
585 |
- fi |
586 |
- |
587 |
- local myarch="" |
588 |
- case ${ABI} in |
589 |
- amd64) myarch="x64";; |
590 |
- arm) myarch="arm";; |
591 |
- arm64) myarch="arm64";; |
592 |
- ppc64) myarch="ppc64";; |
593 |
- x32) myarch="x32";; |
594 |
- x86) myarch="ia32";; |
595 |
- *) myarch="${ABI}";; |
596 |
- esac |
597 |
- |
598 |
- GYP_DEFINES="linux_use_gold_flags=0 |
599 |
- linux_use_bundled_binutils=0 |
600 |
- linux_use_bundled_gold=0" \ |
601 |
- "${EPYTHON}" configure.py \ |
602 |
- --prefix="${EPREFIX}"/usr \ |
603 |
- --dest-cpu=${myarch} \ |
604 |
- $(use_with systemtap dtrace) \ |
605 |
- "${myconf[@]}" || die |
606 |
-} |
607 |
- |
608 |
-src_compile() { |
609 |
- emake -C out |
610 |
-} |
611 |
- |
612 |
-src_install() { |
613 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
614 |
- default |
615 |
- |
616 |
- pax-mark -m "${ED}"/usr/bin/node |
617 |
- |
618 |
- # set up a symlink structure that node-gyp expects.. |
619 |
- dodir /usr/include/node/deps/{v8,uv} |
620 |
- dosym . /usr/include/node/src |
621 |
- for var in deps/{uv,v8}/include; do |
622 |
- dosym ../.. /usr/include/node/${var} |
623 |
- done |
624 |
- |
625 |
- if use doc; then |
626 |
- docinto html |
627 |
- dodoc -r "${S}"/doc/* |
628 |
- fi |
629 |
- |
630 |
- if use npm; then |
631 |
- dodir /etc/npm |
632 |
- |
633 |
- # Install bash completion for `npm` |
634 |
- # We need to temporarily replace default config path since |
635 |
- # npm otherwise tries to write outside of the sandbox |
636 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
637 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
638 |
- local tmp_npm_completion_file="$(emktemp)" |
639 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
640 |
- newbashcomp "${tmp_npm_completion_file}" npm |
641 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
642 |
- |
643 |
- # Move man pages |
644 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
645 |
- |
646 |
- # Clean up |
647 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
648 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
649 |
- |
650 |
- local find_exp="-or -name" |
651 |
- local find_name=() |
652 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
653 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
654 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
655 |
- find_name+=( ${find_exp} "${match}" ) |
656 |
- done |
657 |
- |
658 |
- # Remove various development and/or inappropriate files and |
659 |
- # useless docs of dependend packages. |
660 |
- find "${LIBDIR}"/node_modules \ |
661 |
- \( -type d -name examples \) -or \( -type f \( \ |
662 |
- -iname "LICEN?E*" \ |
663 |
- "${find_name[@]}" \ |
664 |
- \) \) -exec rm -rf "{}" \; |
665 |
- fi |
666 |
- |
667 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
668 |
-} |
669 |
- |
670 |
-src_test() { |
671 |
- out/${BUILDTYPE}/cctest || die |
672 |
- "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
673 |
-} |
674 |
- |
675 |
-pkg_postinst() { |
676 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
677 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
678 |
- elog "" |
679 |
- elog "Protip: When using node-gyp to install native modules, you can" |
680 |
- elog "avoid having to download extras by doing the following:" |
681 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
682 |
-} |
683 |
|
684 |
diff --git a/net-libs/nodejs/nodejs-14.1.0.ebuild b/net-libs/nodejs/nodejs-14.1.0.ebuild |
685 |
deleted file mode 100644 |
686 |
index ddd7391838e..00000000000 |
687 |
--- a/net-libs/nodejs/nodejs-14.1.0.ebuild |
688 |
+++ /dev/null |
689 |
@@ -1,209 +0,0 @@ |
690 |
-# Copyright 1999-2020 Gentoo Authors |
691 |
-# Distributed under the terms of the GNU General Public License v2 |
692 |
- |
693 |
-EAPI=7 |
694 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
695 |
-PYTHON_REQ_USE="threads(+)" |
696 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
697 |
- |
698 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
699 |
-HOMEPAGE="https://nodejs.org/" |
700 |
-SRC_URI=" |
701 |
- https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz |
702 |
-" |
703 |
- |
704 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
705 |
-SLOT="0" |
706 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
707 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test" |
708 |
-REQUIRED_USE=" |
709 |
- inspector? ( icu ssl ) |
710 |
- npm? ( ssl ) |
711 |
- system-ssl? ( ssl ) |
712 |
-" |
713 |
- |
714 |
-RDEPEND=" |
715 |
- >=dev-libs/libuv-1.37.0:= |
716 |
- >=net-dns/c-ares-1.16.0 |
717 |
- >=net-libs/nghttp2-1.40.0 |
718 |
- sys-libs/zlib |
719 |
- icu? ( >=dev-libs/icu-65:= ) |
720 |
- system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
721 |
-" |
722 |
-BDEPEND=" |
723 |
- ${PYTHON_DEPS} |
724 |
- systemtap? ( dev-util/systemtap ) |
725 |
- test? ( net-misc/curl ) |
726 |
- pax_kernel? ( sys-apps/elfix ) |
727 |
-" |
728 |
-DEPEND=" |
729 |
- ${RDEPEND} |
730 |
-" |
731 |
-PATCHES=( |
732 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
733 |
-) |
734 |
-RESTRICT="test" |
735 |
-S="${WORKDIR}/node-v${PV}" |
736 |
- |
737 |
-pkg_pretend() { |
738 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
739 |
- die "Your CPU doesn't support the required SSE2 instruction." |
740 |
- |
741 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
742 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
743 |
-} |
744 |
- |
745 |
-src_prepare() { |
746 |
- tc-export CC CXX PKG_CONFIG |
747 |
- export V=1 |
748 |
- export BUILDTYPE=Release |
749 |
- |
750 |
- # fix compilation on Darwin |
751 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
752 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
753 |
- |
754 |
- # less verbose install output (stating the same as portage, basically) |
755 |
- sed -i -e "/print/d" tools/install.py || die |
756 |
- |
757 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
758 |
- local LIBDIR=$(get_libdir) |
759 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
760 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
761 |
- |
762 |
- # Avoid writing a depfile, not useful |
763 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
764 |
- |
765 |
- sed -i -e "/'-O3'/d" common.gypi node.gypi || die |
766 |
- |
767 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
768 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
769 |
- # The issue is that no stdin handle is openened when asked for one. |
770 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
771 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
772 |
- rm test/parallel/test-stdout-close-unref.js || die |
773 |
- |
774 |
- # debug builds. change install path, remove optimisations and override buildtype |
775 |
- if use debug; then |
776 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
777 |
- BUILDTYPE=Debug |
778 |
- fi |
779 |
- |
780 |
- # We need to disable mprotect on two files when it builds Bug 694100. |
781 |
- use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch ) |
782 |
- |
783 |
- default |
784 |
-} |
785 |
- |
786 |
-src_configure() { |
787 |
- xdg_environment_reset |
788 |
- |
789 |
- local myconf=( |
790 |
- --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib |
791 |
- ) |
792 |
- use debug && myconf+=( --debug ) |
793 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
794 |
- use inspector || myconf+=( --without-inspector ) |
795 |
- use npm || myconf+=( --without-npm ) |
796 |
- use snapshot || myconf+=( --without-node-snapshot ) |
797 |
- if use ssl; then |
798 |
- use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) |
799 |
- else |
800 |
- myconf+=( --without-ssl ) |
801 |
- fi |
802 |
- |
803 |
- local myarch="" |
804 |
- case ${ABI} in |
805 |
- amd64) myarch="x64";; |
806 |
- arm) myarch="arm";; |
807 |
- arm64) myarch="arm64";; |
808 |
- ppc64) myarch="ppc64";; |
809 |
- x32) myarch="x32";; |
810 |
- x86) myarch="ia32";; |
811 |
- *) myarch="${ABI}";; |
812 |
- esac |
813 |
- |
814 |
- GYP_DEFINES="linux_use_gold_flags=0 |
815 |
- linux_use_bundled_binutils=0 |
816 |
- linux_use_bundled_gold=0" \ |
817 |
- "${EPYTHON}" configure.py \ |
818 |
- --prefix="${EPREFIX}"/usr \ |
819 |
- --dest-cpu=${myarch} \ |
820 |
- $(use_with systemtap dtrace) \ |
821 |
- "${myconf[@]}" || die |
822 |
-} |
823 |
- |
824 |
-src_compile() { |
825 |
- emake -C out |
826 |
-} |
827 |
- |
828 |
-src_install() { |
829 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
830 |
- default |
831 |
- |
832 |
- pax-mark -m "${ED}"/usr/bin/node |
833 |
- |
834 |
- # set up a symlink structure that node-gyp expects.. |
835 |
- dodir /usr/include/node/deps/{v8,uv} |
836 |
- dosym . /usr/include/node/src |
837 |
- for var in deps/{uv,v8}/include; do |
838 |
- dosym ../.. /usr/include/node/${var} |
839 |
- done |
840 |
- |
841 |
- if use doc; then |
842 |
- docinto html |
843 |
- dodoc -r "${S}"/doc/* |
844 |
- fi |
845 |
- |
846 |
- if use npm; then |
847 |
- dodir /etc/npm |
848 |
- |
849 |
- # Install bash completion for `npm` |
850 |
- # We need to temporarily replace default config path since |
851 |
- # npm otherwise tries to write outside of the sandbox |
852 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
853 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
854 |
- local tmp_npm_completion_file="$(emktemp)" |
855 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
856 |
- newbashcomp "${tmp_npm_completion_file}" npm |
857 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
858 |
- |
859 |
- # Move man pages |
860 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
861 |
- |
862 |
- # Clean up |
863 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
864 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
865 |
- |
866 |
- local find_exp="-or -name" |
867 |
- local find_name=() |
868 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
869 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
870 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
871 |
- find_name+=( ${find_exp} "${match}" ) |
872 |
- done |
873 |
- |
874 |
- # Remove various development and/or inappropriate files and |
875 |
- # useless docs of dependend packages. |
876 |
- find "${LIBDIR}"/node_modules \ |
877 |
- \( -type d -name examples \) -or \( -type f \( \ |
878 |
- -iname "LICEN?E*" \ |
879 |
- "${find_name[@]}" \ |
880 |
- \) \) -exec rm -rf "{}" \; |
881 |
- fi |
882 |
- |
883 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
884 |
-} |
885 |
- |
886 |
-src_test() { |
887 |
- out/${BUILDTYPE}/cctest || die |
888 |
- "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
889 |
-} |
890 |
- |
891 |
-pkg_postinst() { |
892 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
893 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
894 |
- elog "" |
895 |
- elog "Protip: When using node-gyp to install native modules, you can" |
896 |
- elog "avoid having to download extras by doing the following:" |
897 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
898 |
-} |