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