1 |
commit: 478037530d3b293185e8bcd1230daaaa7e032d1e |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 28 10:43:11 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 29 22:19:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47803753 |
7 |
|
8 |
net-libs/nodejs: Old |
9 |
|
10 |
Package-Manager: Portage-2.3.52, Repoman-2.3.12 |
11 |
Bug: https://bugs.gentoo.org/672136 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
net-libs/nodejs/Manifest | 6 - |
15 |
net-libs/nodejs/nodejs-10.13.0-r1.ebuild | 205 ------------------------------ |
16 |
net-libs/nodejs/nodejs-11.2.0-r1.ebuild | 205 ------------------------------ |
17 |
net-libs/nodejs/nodejs-4.8.7.ebuild | 143 --------------------- |
18 |
net-libs/nodejs/nodejs-6.11.5.ebuild | 193 ---------------------------- |
19 |
net-libs/nodejs/nodejs-8.13.0-r2.ebuild | 207 ------------------------------- |
20 |
net-libs/nodejs/nodejs-9.11.2-r2.ebuild | 202 ------------------------------ |
21 |
7 files changed, 1161 deletions(-) |
22 |
|
23 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
24 |
index fc906623cea..0dac388ea49 100644 |
25 |
--- a/net-libs/nodejs/Manifest |
26 |
+++ b/net-libs/nodejs/Manifest |
27 |
@@ -1,14 +1,8 @@ |
28 |
DIST node-v0.12.18.tar.gz 19842591 BLAKE2B f94f4de6e2875267be194580c645087a262b90da99f10d651a22838c041da07056df81204bb04ce8da083a080062509dcca4d1e3ac2250d651ead8a4cc025028 SHA512 6866608a43eb213f3b715ea0fcc28983fd959ab679c567a1b464f62acd936506f2bce88ea48a60209d8ef8d98259f4b47cd3434893eb4ff82a132775edb37b7b |
29 |
-DIST node-v10.13.0.tar.xz 20184740 BLAKE2B 4c063889341eb2aa128096466cfdc2c91631a760ec7dea3e06b30990252cf6575b96a6d61dd1ba467c8d134b75ee51c897d4ec5c8f60b64ba51d3bc4113df63c SHA512 90431414f45c858efd6ed6259916b778e29712b57bc758f12fa7d7fafe5073c85fc379e56c86795936515f4c4f772ac308d3f6d0569c46305a7d49dc55c884c8 |
30 |
DIST node-v10.14.0.tar.xz 20193912 BLAKE2B a72411c9b7bfc9e257089d26cfc7a00321d1db7836b9a292544971fbceaaeae8b178ef53735175621d42169eb6839173340b00e441e498187bf4fffc02edca71 SHA512 82900373993ae2a068ccc9217eadc700a91956893f0a9973c5003ca648e16859a5b37919ea15c06bc1bd746957db6915ad75aa3d8ddb18c1b949c5723617c0c9 |
31 |
-DIST node-v11.2.0.tar.xz 20332812 BLAKE2B 2bb8cd409dc5328faa1404a36bff5c6bf554de397ce1d010886ee5fd7b15d148abb758d54c48e3f7db46e117f2e5cfe2cf8ff4565a551f1424725c75b40d4bf9 SHA512 6251706437c0344bd4994619b7fe09c36a15e99e707d36b3a3746b7b379a03a9a4758a4fc6fdc0214fbd107eef4ec39bd8b75d88ccab207d97cbf21852eb81b2 |
32 |
DIST node-v11.3.0.tar.xz 20332400 BLAKE2B b237cb6b9a8004f06c72734fec0f9cea6b7ca86d1d289fbad4a232fd7e966d5e20e25929db9ff4a0dc32b6d917aaee12966e53895777cc7a1c2a426ada9e8dbc SHA512 d43b2f3b9835cce5ae411d96ee381a93fa60fa726cb6639580f5ae680fb9f461b1da63dc5f2cee3272341be85cff82073246a501460151e19622e75674ef7627 |
33 |
-DIST node-v4.8.7.tar.xz 13370828 BLAKE2B b1ee93a586b66f8582783b1be50667547afe4bf48038ebc0b8148db55542cbc0520ac84ef88e4a7f453cabc245f484c32dbc238c1932bbc708791ceeb5c9d2ab SHA512 25837a31023747723b146c45984a5b2096b61c0aa43cbf45fc8ff50b4bd5079bd0bc9f1dfd3fb076817448dc5537eb93ffb2f345280b7756ba93b67ad757c696 |
34 |
DIST node-v4.9.1.tar.xz 13250164 BLAKE2B 7a689b99bb4bf507f7f21dd2c096a5766d023a8174c0f468cab37365af1920b8700da04157e1a406917790524255ef32c243a74662fd50ef7d3567d189dac9cf SHA512 690c9fdf608e5194069a10955bdd94ec87cb1c308f13bc4d2cae92fa01436ace10fadf58f2e51d477dde6c570b23edc1c71fafea79bfc9cab2903eb2fa5f87aa |
35 |
-DIST node-v6.11.5.tar.xz 15699404 BLAKE2B ba2df91bf5ef38cedb60b42919cf56f16807e619a81876fc92a5741e49da7ec91c4239d00f549c5e80d0bb8282bb9b396dd984507916cd18d61b403a3a7cef94 SHA512 62490725ef7957294c1bddf21ef0626c7472876791210168116501255ecee58457e9de9b044e10033706243299bbfd1495efeca169596fbf26f5eeba6d8fa4c9 |
36 |
DIST node-v6.14.4.tar.xz 15842824 BLAKE2B fc56364be64fe5824e2bb50d861ebf8f58f9895f2c9c108b8df3315b127ffb2755eac85c28165ac9779adab4611ce8f5ea1a5745f43ebaa1389e82b8215c6396 SHA512 1ead0c097ec125230dd631f19a5c3ec06a1371f9ca3b392b5ad08fcc227dd0142f33ad52f96890c2c17448a4951a635b9099dfff00d7d8b3ffb59b07904d1bfa |
37 |
DIST node-v6.15.0.tar.xz 15849408 BLAKE2B 484446311ed68250b6b7d42f9260e66b267f03b6ad4458b0c7f37c526b73616571b45cc0f6a181bae150d7319cf523778d67d8971e3e406393703067ea80679c SHA512 805299c52e9a22fe4c36509adeb4559c71ba14bc023c70af8efbd9589849d40dfe88191f1e6e88afa0327e399a775884bd482055949cc93fd41ce0e406288946 |
38 |
DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42 |
39 |
-DIST node-v8.13.0.tar.xz 18477528 BLAKE2B 6b4e1c0c881395a194799743cdb9cf186a4b168ae3a8c74267f64b0d89c88dae525d56cb45f3a55f7fea3fd0f1c814dbb88c28d9f49c9af66ea0bbe9d68460d4 SHA512 1e4bf25cd177fb4c3cfd787388acaf5832d92220ed294853d09e95dda14021359c620b42a77de8307929add1f49e47da905689b67d290648a20b6e0b3500514f |
40 |
DIST node-v8.14.0.tar.xz 18485252 BLAKE2B df4d59a8532bad056467f737a2de83f10b1b129ccc759fa8b7fbd97b8dbdfa84284c3b09d99ccf0b3d0195d9ef3e2b51e2bcb205b4937de75d9e47ee438cc607 SHA512 7d80ea370ec445614331dd774c8fdf8c504c9916b5af18f8f9005e87da7abca21ff5b139dd66d25a6dd29b6e6af72b36c8037fee96174ebd2ac36feb18495f9a |
41 |
-DIST node-v9.11.2.tar.xz 18507832 BLAKE2B f5ef210632065f2c99dbe3fd210fa832bdd09670dd8bd736dce2c7ab2fc87c3a717cda11c2a09c325b25a72d99431cbc79c0ee7c202ece5fc41786f1f0aa68e4 SHA512 ca49a1f3aaa8b25faa62c411a96551c8977bb43a22f8f171f27d3585306f379b6a12e55e60ddca04a6f2f8c62a1b3fed9e66c02898d80bf7ca59278536e04c13 |
42 |
|
43 |
diff --git a/net-libs/nodejs/nodejs-10.13.0-r1.ebuild b/net-libs/nodejs/nodejs-10.13.0-r1.ebuild |
44 |
deleted file mode 100644 |
45 |
index ea37a260ff5..00000000000 |
46 |
--- a/net-libs/nodejs/nodejs-10.13.0-r1.ebuild |
47 |
+++ /dev/null |
48 |
@@ -1,205 +0,0 @@ |
49 |
-# Copyright 1999-2018 Gentoo Authors |
50 |
-# Distributed under the terms of the GNU General Public License v2 |
51 |
- |
52 |
-EAPI=6 |
53 |
- |
54 |
-PYTHON_COMPAT=( python2_7 ) |
55 |
-PYTHON_REQ_USE="threads" |
56 |
- |
57 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
58 |
- |
59 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
60 |
-HOMEPAGE="https://nodejs.org/" |
61 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
62 |
- |
63 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
64 |
-SLOT="0" |
65 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
66 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
67 |
-REQUIRED_USE=" |
68 |
- ${PYTHON_REQUIRED_USE} |
69 |
- inspector? ( icu ssl ) |
70 |
- npm? ( ssl ) |
71 |
-" |
72 |
- |
73 |
-RDEPEND=" |
74 |
- >=dev-libs/libuv-1.23.2:= |
75 |
- >=net-dns/c-ares-1.14.0 |
76 |
- >=net-libs/http-parser-2.8.0:= |
77 |
- >=net-libs/nghttp2-1.34.0 |
78 |
- sys-libs/zlib |
79 |
- icu? ( >=dev-libs/icu-62.1:= ) |
80 |
- ssl? ( =dev-libs/openssl-1.1.0*:0= ) |
81 |
-" |
82 |
-DEPEND=" |
83 |
- ${RDEPEND} |
84 |
- ${PYTHON_DEPS} |
85 |
- systemtap? ( dev-util/systemtap ) |
86 |
- test? ( net-misc/curl ) |
87 |
-" |
88 |
-S="${WORKDIR}/node-v${PV}" |
89 |
-PATCHES=( |
90 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
91 |
-) |
92 |
- |
93 |
-pkg_pretend() { |
94 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
95 |
- die "Your CPU doesn't support the required SSE2 instruction." |
96 |
- |
97 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
98 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
99 |
-} |
100 |
- |
101 |
-src_prepare() { |
102 |
- tc-export CC CXX PKG_CONFIG |
103 |
- export V=1 |
104 |
- export BUILDTYPE=Release |
105 |
- |
106 |
- # fix compilation on Darwin |
107 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
108 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
109 |
- |
110 |
- # make sure we use python2.* while using gyp |
111 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
112 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
113 |
- |
114 |
- # less verbose install output (stating the same as portage, basically) |
115 |
- sed -i -e "/print/d" tools/install.py || die |
116 |
- |
117 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
118 |
- local LIBDIR=$(get_libdir) |
119 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
120 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
121 |
- |
122 |
- # Avoid writing a depfile, not useful |
123 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
124 |
- |
125 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
126 |
- |
127 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
128 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
129 |
- # The issue is that no stdin handle is openened when asked for one. |
130 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
131 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
132 |
- rm test/parallel/test-stdout-close-unref.js || die |
133 |
- |
134 |
- # debug builds. change install path, remove optimisations and override buildtype |
135 |
- if use debug; then |
136 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
137 |
- BUILDTYPE=Debug |
138 |
- fi |
139 |
- |
140 |
- default |
141 |
-} |
142 |
- |
143 |
-src_configure() { |
144 |
- local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib ) |
145 |
- use debug && myconf+=( --debug ) |
146 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
147 |
- use inspector || myconf+=( --without-inspector ) |
148 |
- use npm || myconf+=( --without-npm ) |
149 |
- use snapshot && myconf+=( --with-snapshot ) |
150 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
151 |
- |
152 |
- local myarch="" |
153 |
- case ${ABI} in |
154 |
- amd64) myarch="x64";; |
155 |
- arm) myarch="arm";; |
156 |
- arm64) myarch="arm64";; |
157 |
- ppc64) myarch="ppc64";; |
158 |
- x32) myarch="x32";; |
159 |
- x86) myarch="ia32";; |
160 |
- *) myarch="${ABI}";; |
161 |
- esac |
162 |
- |
163 |
- GYP_DEFINES="linux_use_gold_flags=0 |
164 |
- linux_use_bundled_binutils=0 |
165 |
- linux_use_bundled_gold=0" \ |
166 |
- "${PYTHON}" configure \ |
167 |
- --prefix="${EPREFIX}"/usr \ |
168 |
- --dest-cpu=${myarch} \ |
169 |
- $(use_with systemtap dtrace) \ |
170 |
- "${myconf[@]}" || die |
171 |
-} |
172 |
- |
173 |
-src_compile() { |
174 |
- emake -C out mksnapshot |
175 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
176 |
- emake -C out |
177 |
-} |
178 |
- |
179 |
-src_install() { |
180 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
181 |
- emake install DESTDIR="${D}" |
182 |
- pax-mark -m "${ED}"usr/bin/node |
183 |
- |
184 |
- # set up a symlink structure that node-gyp expects.. |
185 |
- dodir /usr/include/node/deps/{v8,uv} |
186 |
- dosym . /usr/include/node/src |
187 |
- for var in deps/{uv,v8}/include; do |
188 |
- dosym ../.. /usr/include/node/${var} |
189 |
- done |
190 |
- |
191 |
- if use doc; then |
192 |
- # Patch docs to make them offline readable |
193 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
194 |
- sed -i '/fonts.googleapis.com/ d' $i; |
195 |
- done |
196 |
- # Install docs |
197 |
- docinto html |
198 |
- dodoc -r "${S}"/doc/* |
199 |
- fi |
200 |
- |
201 |
- if use npm; then |
202 |
- dodir /etc/npm |
203 |
- |
204 |
- # Install bash completion for `npm` |
205 |
- # We need to temporarily replace default config path since |
206 |
- # npm otherwise tries to write outside of the sandbox |
207 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
208 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
209 |
- local tmp_npm_completion_file="$(emktemp)" |
210 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
211 |
- newbashcomp "${tmp_npm_completion_file}" npm |
212 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
213 |
- |
214 |
- # Move man pages |
215 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
216 |
- |
217 |
- # Clean up |
218 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
219 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
220 |
- |
221 |
- local find_exp="-or -name" |
222 |
- local find_name=() |
223 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
224 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
225 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
226 |
- find_name+=( ${find_exp} "${match}" ) |
227 |
- done |
228 |
- |
229 |
- # Remove various development and/or inappropriate files and |
230 |
- # useless docs of dependend packages. |
231 |
- find "${LIBDIR}"/node_modules \ |
232 |
- \( -type d -name examples \) -or \( -type f \( \ |
233 |
- -iname "LICEN?E*" \ |
234 |
- "${find_name[@]}" \ |
235 |
- \) \) -exec rm -rf "{}" \; |
236 |
- fi |
237 |
- |
238 |
- mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die |
239 |
-} |
240 |
- |
241 |
-src_test() { |
242 |
- out/${BUILDTYPE}/cctest || die |
243 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
244 |
-} |
245 |
- |
246 |
-pkg_postinst() { |
247 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
248 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
249 |
- einfo "" |
250 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
251 |
- einfo "avoid having to download extras by doing the following:" |
252 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
253 |
-} |
254 |
|
255 |
diff --git a/net-libs/nodejs/nodejs-11.2.0-r1.ebuild b/net-libs/nodejs/nodejs-11.2.0-r1.ebuild |
256 |
deleted file mode 100644 |
257 |
index 0f0eca94f04..00000000000 |
258 |
--- a/net-libs/nodejs/nodejs-11.2.0-r1.ebuild |
259 |
+++ /dev/null |
260 |
@@ -1,205 +0,0 @@ |
261 |
-# Copyright 1999-2018 Gentoo Authors |
262 |
-# Distributed under the terms of the GNU General Public License v2 |
263 |
- |
264 |
-EAPI=6 |
265 |
- |
266 |
-PYTHON_COMPAT=( python2_7 ) |
267 |
-PYTHON_REQ_USE="threads" |
268 |
- |
269 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
270 |
- |
271 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
272 |
-HOMEPAGE="https://nodejs.org/" |
273 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
274 |
- |
275 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
276 |
-SLOT="0" |
277 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
278 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
279 |
-REQUIRED_USE=" |
280 |
- ${PYTHON_REQUIRED_USE} |
281 |
- inspector? ( icu ssl ) |
282 |
- npm? ( ssl ) |
283 |
-" |
284 |
- |
285 |
-RDEPEND=" |
286 |
- >=dev-libs/libuv-1.23.2:= |
287 |
- >=net-dns/c-ares-1.15.0 |
288 |
- >=net-libs/http-parser-2.8.0:= |
289 |
- >=net-libs/nghttp2-1.34.0 |
290 |
- sys-libs/zlib |
291 |
- icu? ( >=dev-libs/icu-63.1:= ) |
292 |
- ssl? ( =dev-libs/openssl-1.1.0*:0= ) |
293 |
-" |
294 |
-DEPEND=" |
295 |
- ${RDEPEND} |
296 |
- ${PYTHON_DEPS} |
297 |
- systemtap? ( dev-util/systemtap ) |
298 |
- test? ( net-misc/curl ) |
299 |
-" |
300 |
-S="${WORKDIR}/node-v${PV}" |
301 |
-PATCHES=( |
302 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
303 |
-) |
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 |
- # make sure we use python2.* while using gyp |
323 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
324 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
325 |
- |
326 |
- # less verbose install output (stating the same as portage, basically) |
327 |
- sed -i -e "/print/d" tools/install.py || die |
328 |
- |
329 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
330 |
- local LIBDIR=$(get_libdir) |
331 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
332 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
333 |
- |
334 |
- # Avoid writing a depfile, not useful |
335 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
336 |
- |
337 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
338 |
- |
339 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
340 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
341 |
- # The issue is that no stdin handle is openened when asked for one. |
342 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
343 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
344 |
- rm test/parallel/test-stdout-close-unref.js || die |
345 |
- |
346 |
- # debug builds. change install path, remove optimisations and override buildtype |
347 |
- if use debug; then |
348 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
349 |
- BUILDTYPE=Debug |
350 |
- fi |
351 |
- |
352 |
- default |
353 |
-} |
354 |
- |
355 |
-src_configure() { |
356 |
- local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib ) |
357 |
- use debug && myconf+=( --debug ) |
358 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
359 |
- use inspector || myconf+=( --without-inspector ) |
360 |
- use npm || myconf+=( --without-npm ) |
361 |
- use snapshot && myconf+=( --with-snapshot ) |
362 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
363 |
- |
364 |
- local myarch="" |
365 |
- case ${ABI} in |
366 |
- amd64) myarch="x64";; |
367 |
- arm) myarch="arm";; |
368 |
- arm64) myarch="arm64";; |
369 |
- ppc64) myarch="ppc64";; |
370 |
- x32) myarch="x32";; |
371 |
- x86) myarch="ia32";; |
372 |
- *) myarch="${ABI}";; |
373 |
- esac |
374 |
- |
375 |
- GYP_DEFINES="linux_use_gold_flags=0 |
376 |
- linux_use_bundled_binutils=0 |
377 |
- linux_use_bundled_gold=0" \ |
378 |
- "${PYTHON}" configure \ |
379 |
- --prefix="${EPREFIX}"/usr \ |
380 |
- --dest-cpu=${myarch} \ |
381 |
- $(use_with systemtap dtrace) \ |
382 |
- "${myconf[@]}" || die |
383 |
-} |
384 |
- |
385 |
-src_compile() { |
386 |
- emake -C out mksnapshot |
387 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
388 |
- emake -C out |
389 |
-} |
390 |
- |
391 |
-src_install() { |
392 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
393 |
- emake install DESTDIR="${D}" |
394 |
- pax-mark -m "${ED}"usr/bin/node |
395 |
- |
396 |
- # set up a symlink structure that node-gyp expects.. |
397 |
- dodir /usr/include/node/deps/{v8,uv} |
398 |
- dosym . /usr/include/node/src |
399 |
- for var in deps/{uv,v8}/include; do |
400 |
- dosym ../.. /usr/include/node/${var} |
401 |
- done |
402 |
- |
403 |
- if use doc; then |
404 |
- # Patch docs to make them offline readable |
405 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
406 |
- sed -i '/fonts.googleapis.com/ d' $i; |
407 |
- done |
408 |
- # Install docs |
409 |
- docinto html |
410 |
- dodoc -r "${S}"/doc/* |
411 |
- fi |
412 |
- |
413 |
- if use npm; then |
414 |
- dodir /etc/npm |
415 |
- |
416 |
- # Install bash completion for `npm` |
417 |
- # We need to temporarily replace default config path since |
418 |
- # npm otherwise tries to write outside of the sandbox |
419 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
420 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
421 |
- local tmp_npm_completion_file="$(emktemp)" |
422 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
423 |
- newbashcomp "${tmp_npm_completion_file}" npm |
424 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
425 |
- |
426 |
- # Move man pages |
427 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
428 |
- |
429 |
- # Clean up |
430 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
431 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
432 |
- |
433 |
- local find_exp="-or -name" |
434 |
- local find_name=() |
435 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
436 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
437 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
438 |
- find_name+=( ${find_exp} "${match}" ) |
439 |
- done |
440 |
- |
441 |
- # Remove various development and/or inappropriate files and |
442 |
- # useless docs of dependend packages. |
443 |
- find "${LIBDIR}"/node_modules \ |
444 |
- \( -type d -name examples \) -or \( -type f \( \ |
445 |
- -iname "LICEN?E*" \ |
446 |
- "${find_name[@]}" \ |
447 |
- \) \) -exec rm -rf "{}" \; |
448 |
- fi |
449 |
- |
450 |
- mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die |
451 |
-} |
452 |
- |
453 |
-src_test() { |
454 |
- out/${BUILDTYPE}/cctest || die |
455 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
456 |
-} |
457 |
- |
458 |
-pkg_postinst() { |
459 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
460 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
461 |
- einfo "" |
462 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
463 |
- einfo "avoid having to download extras by doing the following:" |
464 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
465 |
-} |
466 |
|
467 |
diff --git a/net-libs/nodejs/nodejs-4.8.7.ebuild b/net-libs/nodejs/nodejs-4.8.7.ebuild |
468 |
deleted file mode 100644 |
469 |
index ce23ef0038e..00000000000 |
470 |
--- a/net-libs/nodejs/nodejs-4.8.7.ebuild |
471 |
+++ /dev/null |
472 |
@@ -1,143 +0,0 @@ |
473 |
-# Copyright 1999-2018 Gentoo Foundation |
474 |
-# Distributed under the terms of the GNU General Public License v2 |
475 |
- |
476 |
-EAPI=6 |
477 |
- |
478 |
-PYTHON_COMPAT=( python2_7 ) |
479 |
-PYTHON_REQ_USE="threads" |
480 |
- |
481 |
-inherit flag-o-matic pax-utils python-single-r1 toolchain-funcs |
482 |
- |
483 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
484 |
-HOMEPAGE="https://nodejs.org/" |
485 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
486 |
- |
487 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
488 |
-SLOT="0" |
489 |
-KEYWORDS="amd64 ~arm ~arm64 x86 ~x64-macos" |
490 |
-IUSE="cpu_flags_x86_sse2 debug icu +npm snapshot +ssl test" |
491 |
- |
492 |
-RDEPEND="icu? ( >=dev-libs/icu-55:= ) |
493 |
- npm? ( ${PYTHON_DEPS} ) |
494 |
- >=net-libs/http-parser-2.5.2:= |
495 |
- >=dev-libs/libuv-1.8.0:= |
496 |
- >=dev-libs/openssl-1.0.2g:0=[-bindist] |
497 |
- sys-libs/zlib" |
498 |
-DEPEND="${RDEPEND} |
499 |
- ${PYTHON_DEPS} |
500 |
- test? ( net-misc/curl )" |
501 |
- |
502 |
-S="${WORKDIR}/node-v${PV}" |
503 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
504 |
- |
505 |
-pkg_pretend() { |
506 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
507 |
- die "Your CPU doesn't support the required SSE2 instruction." |
508 |
- |
509 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
510 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
511 |
-} |
512 |
- |
513 |
-src_prepare() { |
514 |
- tc-export CC CXX PKG_CONFIG |
515 |
- export V=1 # Verbose build |
516 |
- export BUILDTYPE=Release |
517 |
- |
518 |
- # fix compilation on Darwin |
519 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
520 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
521 |
- |
522 |
- # make sure we use python2.* while using gyp |
523 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
524 |
- sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
525 |
- |
526 |
- # less verbose install output (stating the same as portage, basically) |
527 |
- sed -i -e "/print/d" tools/install.py || die |
528 |
- |
529 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
530 |
- local LIBDIR=$(get_libdir) |
531 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
532 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die |
533 |
- sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die |
534 |
- |
535 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
536 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
537 |
- # The issue is that no stdin handle is openened when asked for one. |
538 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
539 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
540 |
- rm test/parallel/test-stdout-close-unref.js || die |
541 |
- |
542 |
- # debug builds. change install path, remove optimisations and override buildtype |
543 |
- if use debug; then |
544 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
545 |
- BUILDTYPE=Debug |
546 |
- fi |
547 |
- |
548 |
- default |
549 |
-} |
550 |
- |
551 |
-src_configure() { |
552 |
- local myarch="" |
553 |
- local myconf+=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib ) |
554 |
- use npm || myconf+=( --without-npm ) |
555 |
- use icu && myconf+=( --with-intl=system-icu ) |
556 |
- use snapshot && myconf+=( --with-snapshot ) |
557 |
- use ssl || myconf+=( --without-ssl ) |
558 |
- use debug && myconf+=( --debug ) |
559 |
- |
560 |
- case ${ABI} in |
561 |
- amd64) myarch="x64";; |
562 |
- arm) myarch="arm";; |
563 |
- arm64) myarch="arm64";; |
564 |
- ppc64) myarch="ppc64";; |
565 |
- x32) myarch="x32";; |
566 |
- x86) myarch="ia32";; |
567 |
- *) die "Unrecognized ARCH ${ARCH}";; |
568 |
- esac |
569 |
- |
570 |
- GYP_DEFINES="linux_use_gold_flags=0 |
571 |
- linux_use_bundled_binutils=0 |
572 |
- linux_use_bundled_gold=0" \ |
573 |
- "${PYTHON}" configure \ |
574 |
- --prefix="${EPREFIX}"/usr \ |
575 |
- --dest-cpu=${myarch} \ |
576 |
- --without-dtrace \ |
577 |
- "${myconf[@]}" || die |
578 |
-} |
579 |
- |
580 |
-src_compile() { |
581 |
- emake -C out mksnapshot |
582 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
583 |
- emake -C out |
584 |
-} |
585 |
- |
586 |
-src_install() { |
587 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
588 |
- emake install DESTDIR="${ED}" PREFIX=/usr |
589 |
- if use npm; then |
590 |
- dodoc -r "${LIBDIR}"/node_modules/npm/html |
591 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die |
592 |
- find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete || die |
593 |
- fi |
594 |
- |
595 |
- # set up a symlink structure that npm expects.. |
596 |
- dodir /usr/include/node/deps/{v8,uv} |
597 |
- dosym . /usr/include/node/src |
598 |
- for var in deps/{uv,v8}/include; do |
599 |
- dosym ../.. /usr/include/node/${var} |
600 |
- done |
601 |
- |
602 |
- pax-mark -m "${ED}"/usr/bin/node |
603 |
-} |
604 |
- |
605 |
-src_test() { |
606 |
- out/${BUILDTYPE}/cctest || die |
607 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
608 |
-} |
609 |
- |
610 |
-pkg_postinst() { |
611 |
- einfo "When using node-gyp to install native modules, you can avoid" |
612 |
- einfo "having to download the full tarball by doing the following:" |
613 |
- einfo "" |
614 |
- einfo "node-gyp --nodedir /usr/include/node <command>" |
615 |
-} |
616 |
|
617 |
diff --git a/net-libs/nodejs/nodejs-6.11.5.ebuild b/net-libs/nodejs/nodejs-6.11.5.ebuild |
618 |
deleted file mode 100644 |
619 |
index 8fa13fa1dd8..00000000000 |
620 |
--- a/net-libs/nodejs/nodejs-6.11.5.ebuild |
621 |
+++ /dev/null |
622 |
@@ -1,193 +0,0 @@ |
623 |
-# Copyright 1999-2018 Gentoo Foundation |
624 |
-# Distributed under the terms of the GNU General Public License v2 |
625 |
- |
626 |
-EAPI=6 |
627 |
-RESTRICT="test" |
628 |
- |
629 |
-PYTHON_COMPAT=( python2_7 ) |
630 |
-PYTHON_REQ_USE="threads" |
631 |
- |
632 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
633 |
- |
634 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
635 |
-HOMEPAGE="https://nodejs.org/" |
636 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
637 |
- |
638 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
639 |
-SLOT="0" |
640 |
-KEYWORDS="amd64 arm ~arm64 x86 ~amd64-linux ~x64-macos" |
641 |
-IUSE="cpu_flags_x86_sse2 debug doc icu +npm +snapshot +ssl test" |
642 |
- |
643 |
-RDEPEND="icu? ( >=dev-libs/icu-56:= ) |
644 |
- npm? ( ${PYTHON_DEPS} ) |
645 |
- >=net-libs/http-parser-2.6.2:= |
646 |
- >=dev-libs/libuv-1.9.0:= |
647 |
- >=dev-libs/openssl-1.0.2g:0=[-bindist] |
648 |
- sys-libs/zlib" |
649 |
-DEPEND="${RDEPEND} |
650 |
- ${PYTHON_DEPS} |
651 |
- test? ( net-misc/curl )" |
652 |
- |
653 |
-S="${WORKDIR}/node-v${PV}" |
654 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
655 |
- |
656 |
-PATCHES=( |
657 |
- "${FILESDIR}"/gentoo-global-npm-config.patch |
658 |
-) |
659 |
- |
660 |
-pkg_pretend() { |
661 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
662 |
- die "Your CPU doesn't support the required SSE2 instruction." |
663 |
- |
664 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
665 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
666 |
-} |
667 |
- |
668 |
-src_prepare() { |
669 |
- tc-export CC CXX PKG_CONFIG |
670 |
- export V=1 |
671 |
- export BUILDTYPE=Release |
672 |
- |
673 |
- # fix compilation on Darwin |
674 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
675 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
676 |
- |
677 |
- # make sure we use python2.* while using gyp |
678 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
679 |
- sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
680 |
- |
681 |
- # less verbose install output (stating the same as portage, basically) |
682 |
- sed -i -e "/print/d" tools/install.py || die |
683 |
- |
684 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
685 |
- local LIBDIR=$(get_libdir) |
686 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
687 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die |
688 |
- sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die |
689 |
- |
690 |
- # Avoid writing a depfile, not useful |
691 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
692 |
- |
693 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
694 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
695 |
- # The issue is that no stdin handle is openened when asked for one. |
696 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
697 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
698 |
- rm test/parallel/test-stdout-close-unref.js || die |
699 |
- |
700 |
- # debug builds. change install path, remove optimisations and override buildtype |
701 |
- if use debug; then |
702 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
703 |
- BUILDTYPE=Debug |
704 |
- fi |
705 |
- |
706 |
- default |
707 |
-} |
708 |
- |
709 |
-src_configure() { |
710 |
- local myarch="" |
711 |
- local myconf=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib ) |
712 |
- use npm || myconf+=( --without-npm ) |
713 |
- use icu && myconf+=( --with-intl=system-icu ) |
714 |
- use snapshot && myconf+=( --with-snapshot ) |
715 |
- use ssl || myconf+=( --without-ssl ) |
716 |
- use debug && myconf+=( --debug ) |
717 |
- |
718 |
- case ${ABI} in |
719 |
- amd64) myarch="x64";; |
720 |
- arm) myarch="arm";; |
721 |
- arm64) myarch="arm64";; |
722 |
- ppc64) myarch="ppc64";; |
723 |
- x32) myarch="x32";; |
724 |
- x86) myarch="ia32";; |
725 |
- *) myarch="${ABI}";; |
726 |
- esac |
727 |
- |
728 |
- GYP_DEFINES="linux_use_gold_flags=0 |
729 |
- linux_use_bundled_binutils=0 |
730 |
- linux_use_bundled_gold=0" \ |
731 |
- "${PYTHON}" configure \ |
732 |
- --prefix="${EPREFIX}"/usr \ |
733 |
- --dest-cpu=${myarch} \ |
734 |
- --without-dtrace \ |
735 |
- "${myconf[@]}" || die |
736 |
-} |
737 |
- |
738 |
-src_compile() { |
739 |
- emake -C out mksnapshot |
740 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
741 |
- emake -C out |
742 |
-} |
743 |
- |
744 |
-src_install() { |
745 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
746 |
- emake install DESTDIR="${D}" |
747 |
- pax-mark -m "${ED}"usr/bin/node |
748 |
- |
749 |
- # set up a symlink structure that node-gyp expects.. |
750 |
- dodir /usr/include/node/deps/{v8,uv} |
751 |
- dosym . /usr/include/node/src |
752 |
- for var in deps/{uv,v8}/include; do |
753 |
- dosym ../.. /usr/include/node/${var} |
754 |
- done |
755 |
- |
756 |
- if use doc; then |
757 |
- # Patch docs to make them offline readable |
758 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
759 |
- sed -i '/fonts.googleapis.com/ d' $i; |
760 |
- done |
761 |
- # Install docs! |
762 |
- dohtml -r "${S}"/doc/* |
763 |
- fi |
764 |
- |
765 |
- if use npm; then |
766 |
- dodir /etc/npm |
767 |
- |
768 |
- # Install bash completion for `npm` |
769 |
- # We need to temporarily replace default config path since |
770 |
- # npm otherwise tries to write outside of the sandbox |
771 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
772 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
773 |
- local tmp_npm_completion_file="$(emktemp)" |
774 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
775 |
- newbashcomp "${tmp_npm_completion_file}" npm |
776 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
777 |
- |
778 |
- # Move man pages |
779 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
780 |
- |
781 |
- # Clean up |
782 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
783 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
784 |
- |
785 |
- local find_exp="-or -name" |
786 |
- local find_name=() |
787 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
788 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
789 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
790 |
- find_name+=( ${find_exp} "${match}" ) |
791 |
- done |
792 |
- |
793 |
- # Remove various development and/or inappropriate files and |
794 |
- # useless docs of dependend packages. |
795 |
- find "${LIBDIR}"/node_modules \ |
796 |
- \( -type d -name examples \) -or \( -type f \( \ |
797 |
- -iname "LICEN?E*" \ |
798 |
- "${find_name[@]}" \ |
799 |
- \) \) -exec rm -rf "{}" \; |
800 |
- fi |
801 |
-} |
802 |
- |
803 |
-src_test() { |
804 |
- out/${BUILDTYPE}/cctest || die |
805 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
806 |
-} |
807 |
- |
808 |
-pkg_postinst() { |
809 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
810 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
811 |
- einfo "" |
812 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
813 |
- einfo "avoid having to download extras by doing the following:" |
814 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
815 |
-} |
816 |
|
817 |
diff --git a/net-libs/nodejs/nodejs-8.13.0-r2.ebuild b/net-libs/nodejs/nodejs-8.13.0-r2.ebuild |
818 |
deleted file mode 100644 |
819 |
index 69c390294cd..00000000000 |
820 |
--- a/net-libs/nodejs/nodejs-8.13.0-r2.ebuild |
821 |
+++ /dev/null |
822 |
@@ -1,207 +0,0 @@ |
823 |
-# Copyright 1999-2018 Gentoo Authors |
824 |
-# Distributed under the terms of the GNU General Public License v2 |
825 |
- |
826 |
-EAPI=6 |
827 |
-RESTRICT="test" |
828 |
- |
829 |
-PYTHON_COMPAT=( python2_7 ) |
830 |
-PYTHON_REQ_USE="threads" |
831 |
- |
832 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
833 |
- |
834 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
835 |
-HOMEPAGE="https://nodejs.org/" |
836 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
837 |
- |
838 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
839 |
-SLOT="0" |
840 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
841 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
842 |
-REQUIRED_USE=" |
843 |
- ${PYTHON_REQUIRED_USE} |
844 |
- inspector? ( icu ssl ) |
845 |
- npm? ( ssl ) |
846 |
-" |
847 |
- |
848 |
-RDEPEND=" |
849 |
- >=dev-libs/libuv-1.23.2:= |
850 |
- >=net-dns/c-ares-1.10.1 |
851 |
- >=net-libs/http-parser-2.8.0:= |
852 |
- >=net-libs/nghttp2-1.33.0 |
853 |
- sys-libs/zlib |
854 |
- icu? ( >=dev-libs/icu-60.1:= ) |
855 |
- ssl? ( =dev-libs/openssl-1.0.2*:0=[-bindist] ) |
856 |
-" |
857 |
-DEPEND="${RDEPEND} |
858 |
- ${PYTHON_DEPS} |
859 |
- systemtap? ( dev-util/systemtap ) |
860 |
- test? ( net-misc/curl )" |
861 |
- |
862 |
-S="${WORKDIR}/node-v${PV}" |
863 |
- |
864 |
-PATCHES=( |
865 |
- "${FILESDIR}"/nodejs-10.3.0-global-npm-config.patch |
866 |
-) |
867 |
- |
868 |
-pkg_pretend() { |
869 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
870 |
- die "Your CPU doesn't support the required SSE2 instruction." |
871 |
- |
872 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
873 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
874 |
-} |
875 |
- |
876 |
-src_prepare() { |
877 |
- tc-export CC CXX PKG_CONFIG |
878 |
- export V=1 |
879 |
- export BUILDTYPE=Release |
880 |
- |
881 |
- # fix compilation on Darwin |
882 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
883 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
884 |
- |
885 |
- # make sure we use python2.* while using gyp |
886 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
887 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
888 |
- |
889 |
- # less verbose install output (stating the same as portage, basically) |
890 |
- sed -i -e "/print/d" tools/install.py || die |
891 |
- |
892 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
893 |
- local LIBDIR=$(get_libdir) |
894 |
- sed -i \ |
895 |
- -e "s|lib/|${LIBDIR}/|g" \ |
896 |
- -e 's|share/doc/node/|share/doc/'"${PF}"'/|g' \ |
897 |
- tools/install.py || die |
898 |
- |
899 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die |
900 |
- |
901 |
- # Avoid writing a depfile, not useful |
902 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
903 |
- |
904 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
905 |
- |
906 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
907 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
908 |
- # The issue is that no stdin handle is openened when asked for one. |
909 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
910 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
911 |
- rm test/parallel/test-stdout-close-unref.js || die |
912 |
- |
913 |
- # debug builds. change install path, remove optimisations and override buildtype |
914 |
- if use debug; then |
915 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
916 |
- BUILDTYPE=Debug |
917 |
- fi |
918 |
- |
919 |
- default |
920 |
-} |
921 |
- |
922 |
-src_configure() { |
923 |
- local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib ) |
924 |
- use debug && myconf+=( --debug ) |
925 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
926 |
- use inspector || myconf+=( --without-inspector ) |
927 |
- use npm || myconf+=( --without-npm ) |
928 |
- use snapshot && myconf+=( --with-snapshot ) |
929 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
930 |
- |
931 |
- local myarch="" |
932 |
- case ${ABI} in |
933 |
- amd64) myarch="x64";; |
934 |
- arm) myarch="arm";; |
935 |
- arm64) myarch="arm64";; |
936 |
- ppc64) myarch="ppc64";; |
937 |
- x32) myarch="x32";; |
938 |
- x86) myarch="ia32";; |
939 |
- *) myarch="${ABI}";; |
940 |
- esac |
941 |
- |
942 |
- GYP_DEFINES="linux_use_gold_flags=0 |
943 |
- linux_use_bundled_binutils=0 |
944 |
- linux_use_bundled_gold=0" \ |
945 |
- "${PYTHON}" configure \ |
946 |
- --prefix="${EPREFIX}"/usr \ |
947 |
- --dest-cpu=${myarch} \ |
948 |
- $(use_with systemtap dtrace) \ |
949 |
- "${myconf[@]}" || die |
950 |
-} |
951 |
- |
952 |
-src_compile() { |
953 |
- emake -C out mksnapshot |
954 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
955 |
- emake -C out |
956 |
-} |
957 |
- |
958 |
-src_test() { |
959 |
- out/${BUILDTYPE}/cctest || die |
960 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
961 |
-} |
962 |
- |
963 |
-src_install() { |
964 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
965 |
- emake install DESTDIR="${D}" |
966 |
- pax-mark -m "${ED}"usr/bin/node |
967 |
- |
968 |
- # set up a symlink structure that node-gyp expects.. |
969 |
- dodir /usr/include/node/deps/{v8,uv} |
970 |
- dosym . /usr/include/node/src |
971 |
- for var in deps/{uv,v8}/include; do |
972 |
- dosym ../.. /usr/include/node/${var} |
973 |
- done |
974 |
- |
975 |
- if use doc; then |
976 |
- # Patch docs to make them offline readable |
977 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
978 |
- sed -i '/fonts.googleapis.com/ d' $i; |
979 |
- done |
980 |
- # Install docs |
981 |
- dodoc -r "${S}"/doc/* |
982 |
- fi |
983 |
- |
984 |
- if use npm; then |
985 |
- dodir /etc/npm |
986 |
- |
987 |
- # Install bash completion for `npm` |
988 |
- # We need to temporarily replace default config path since |
989 |
- # npm otherwise tries to write outside of the sandbox |
990 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
991 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
992 |
- local tmp_npm_completion_file="$(emktemp)" |
993 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
994 |
- newbashcomp "${tmp_npm_completion_file}" npm |
995 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
996 |
- |
997 |
- # Move man pages |
998 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
999 |
- |
1000 |
- # Clean up |
1001 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
1002 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
1003 |
- |
1004 |
- local find_exp="-or -name" |
1005 |
- local find_name=() |
1006 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
1007 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
1008 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
1009 |
- find_name+=( ${find_exp} "${match}" ) |
1010 |
- done |
1011 |
- |
1012 |
- # Remove various development and/or inappropriate files and |
1013 |
- # useless docs of dependend packages. |
1014 |
- find "${LIBDIR}"/node_modules \ |
1015 |
- \( -type d -name examples \) -or \( -type f \( \ |
1016 |
- -iname "LICEN?E*" \ |
1017 |
- "${find_name[@]}" \ |
1018 |
- \) \) -exec rm -rf "{}" \; |
1019 |
- fi |
1020 |
-} |
1021 |
- |
1022 |
-pkg_postinst() { |
1023 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
1024 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
1025 |
- einfo "" |
1026 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
1027 |
- einfo "avoid having to download extras by doing the following:" |
1028 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
1029 |
-} |
1030 |
|
1031 |
diff --git a/net-libs/nodejs/nodejs-9.11.2-r2.ebuild b/net-libs/nodejs/nodejs-9.11.2-r2.ebuild |
1032 |
deleted file mode 100644 |
1033 |
index 6ede983f34b..00000000000 |
1034 |
--- a/net-libs/nodejs/nodejs-9.11.2-r2.ebuild |
1035 |
+++ /dev/null |
1036 |
@@ -1,202 +0,0 @@ |
1037 |
-# Copyright 1999-2018 Gentoo Authors |
1038 |
-# Distributed under the terms of the GNU General Public License v2 |
1039 |
- |
1040 |
-EAPI=6 |
1041 |
- |
1042 |
-PYTHON_COMPAT=( python2_7 ) |
1043 |
-PYTHON_REQ_USE="threads" |
1044 |
- |
1045 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
1046 |
- |
1047 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
1048 |
-HOMEPAGE="https://nodejs.org/" |
1049 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
1050 |
- |
1051 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
1052 |
-SLOT="0" |
1053 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
1054 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
1055 |
-REQUIRED_USE=" |
1056 |
- ${PYTHON_REQUIRED_USE} |
1057 |
- inspector? ( icu ssl ) |
1058 |
- npm? ( ssl ) |
1059 |
-" |
1060 |
- |
1061 |
-RDEPEND=" |
1062 |
- >=dev-libs/libuv-1.19.2:= |
1063 |
- >=net-dns/c-ares-1.13.0 |
1064 |
- >=net-libs/http-parser-2.8.0:= |
1065 |
- >=net-libs/nghttp2-1.32.0 |
1066 |
- sys-libs/zlib |
1067 |
- icu? ( >=dev-libs/icu-61.1:= ) |
1068 |
- ssl? ( =dev-libs/openssl-1.0.2*:0=[-bindist] ) |
1069 |
-" |
1070 |
-DEPEND=" |
1071 |
- ${RDEPEND} |
1072 |
- ${PYTHON_DEPS} |
1073 |
- systemtap? ( dev-util/systemtap ) |
1074 |
- test? ( net-misc/curl ) |
1075 |
-" |
1076 |
-S="${WORKDIR}/node-v${PV}" |
1077 |
-PATCHES=( |
1078 |
- "${FILESDIR}"/gentoo-global-npm-config.patch |
1079 |
-) |
1080 |
- |
1081 |
-pkg_pretend() { |
1082 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
1083 |
- die "Your CPU doesn't support the required SSE2 instruction." |
1084 |
- |
1085 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
1086 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
1087 |
-} |
1088 |
- |
1089 |
-src_prepare() { |
1090 |
- tc-export CC CXX PKG_CONFIG |
1091 |
- export V=1 |
1092 |
- export BUILDTYPE=Release |
1093 |
- |
1094 |
- # fix compilation on Darwin |
1095 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
1096 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
1097 |
- |
1098 |
- # make sure we use python2.* while using gyp |
1099 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
1100 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
1101 |
- |
1102 |
- # less verbose install output (stating the same as portage, basically) |
1103 |
- sed -i -e "/print/d" tools/install.py || die |
1104 |
- |
1105 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
1106 |
- local LIBDIR=$(get_libdir) |
1107 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
1108 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die |
1109 |
- |
1110 |
- # Avoid writing a depfile, not useful |
1111 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
1112 |
- |
1113 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
1114 |
- |
1115 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
1116 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
1117 |
- # The issue is that no stdin handle is openened when asked for one. |
1118 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
1119 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
1120 |
- rm test/parallel/test-stdout-close-unref.js || die |
1121 |
- |
1122 |
- # debug builds. change install path, remove optimisations and override buildtype |
1123 |
- if use debug; then |
1124 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
1125 |
- BUILDTYPE=Debug |
1126 |
- fi |
1127 |
- |
1128 |
- default |
1129 |
-} |
1130 |
- |
1131 |
-src_configure() { |
1132 |
- local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib ) |
1133 |
- use debug && myconf+=( --debug ) |
1134 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
1135 |
- use inspector || myconf+=( --without-inspector ) |
1136 |
- use npm || myconf+=( --without-npm ) |
1137 |
- use snapshot && myconf+=( --with-snapshot ) |
1138 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
1139 |
- |
1140 |
- local myarch="" |
1141 |
- case ${ABI} in |
1142 |
- amd64) myarch="x64";; |
1143 |
- arm) myarch="arm";; |
1144 |
- arm64) myarch="arm64";; |
1145 |
- ppc64) myarch="ppc64";; |
1146 |
- x32) myarch="x32";; |
1147 |
- x86) myarch="ia32";; |
1148 |
- *) myarch="${ABI}";; |
1149 |
- esac |
1150 |
- |
1151 |
- GYP_DEFINES="linux_use_gold_flags=0 |
1152 |
- linux_use_bundled_binutils=0 |
1153 |
- linux_use_bundled_gold=0" \ |
1154 |
- "${PYTHON}" configure \ |
1155 |
- --prefix="${EPREFIX}"/usr \ |
1156 |
- --dest-cpu=${myarch} \ |
1157 |
- $(use_with systemtap dtrace) \ |
1158 |
- "${myconf[@]}" || die |
1159 |
-} |
1160 |
- |
1161 |
-src_compile() { |
1162 |
- emake -C out mksnapshot |
1163 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
1164 |
- emake -C out |
1165 |
-} |
1166 |
- |
1167 |
-src_install() { |
1168 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
1169 |
- emake install DESTDIR="${D}" |
1170 |
- pax-mark -m "${ED}"usr/bin/node |
1171 |
- |
1172 |
- # set up a symlink structure that node-gyp expects.. |
1173 |
- dodir /usr/include/node/deps/{v8,uv} |
1174 |
- dosym . /usr/include/node/src |
1175 |
- for var in deps/{uv,v8}/include; do |
1176 |
- dosym ../.. /usr/include/node/${var} |
1177 |
- done |
1178 |
- |
1179 |
- if use doc; then |
1180 |
- # Patch docs to make them offline readable |
1181 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
1182 |
- sed -i '/fonts.googleapis.com/ d' $i; |
1183 |
- done |
1184 |
- # Install docs! |
1185 |
- dohtml -r "${S}"/doc/* |
1186 |
- fi |
1187 |
- |
1188 |
- if use npm; then |
1189 |
- dodir /etc/npm |
1190 |
- |
1191 |
- # Install bash completion for `npm` |
1192 |
- # We need to temporarily replace default config path since |
1193 |
- # npm otherwise tries to write outside of the sandbox |
1194 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
1195 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
1196 |
- local tmp_npm_completion_file="$(emktemp)" |
1197 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
1198 |
- newbashcomp "${tmp_npm_completion_file}" npm |
1199 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
1200 |
- |
1201 |
- # Move man pages |
1202 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
1203 |
- |
1204 |
- # Clean up |
1205 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
1206 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
1207 |
- |
1208 |
- local find_exp="-or -name" |
1209 |
- local find_name=() |
1210 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
1211 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
1212 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
1213 |
- find_name+=( ${find_exp} "${match}" ) |
1214 |
- done |
1215 |
- |
1216 |
- # Remove various development and/or inappropriate files and |
1217 |
- # useless docs of dependend packages. |
1218 |
- find "${LIBDIR}"/node_modules \ |
1219 |
- \( -type d -name examples \) -or \( -type f \( \ |
1220 |
- -iname "LICEN?E*" \ |
1221 |
- "${find_name[@]}" \ |
1222 |
- \) \) -exec rm -rf "{}" \; |
1223 |
- fi |
1224 |
-} |
1225 |
- |
1226 |
-src_test() { |
1227 |
- out/${BUILDTYPE}/cctest || die |
1228 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
1229 |
-} |
1230 |
- |
1231 |
-pkg_postinst() { |
1232 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
1233 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
1234 |
- einfo "" |
1235 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
1236 |
- einfo "avoid having to download extras by doing the following:" |
1237 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
1238 |
-} |