1 |
commit: d40a81f6888f10dd6683f25c49808f2f4b029649 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 31 09:46:00 2019 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 31 09:56:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d40a81f6 |
7 |
|
8 |
net-libs/nodejs: Old |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-libs/nodejs/Manifest | 3 - |
14 |
net-libs/nodejs/nodejs-10.15.2.ebuild | 205 --------------------------------- |
15 |
net-libs/nodejs/nodejs-11.11.0.ebuild | 209 ---------------------------------- |
16 |
net-libs/nodejs/nodejs-11.12.0.ebuild | 209 ---------------------------------- |
17 |
4 files changed, 626 deletions(-) |
18 |
|
19 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
20 |
index 6ac3972d59a..70996d7e66b 100644 |
21 |
--- a/net-libs/nodejs/Manifest |
22 |
+++ b/net-libs/nodejs/Manifest |
23 |
@@ -1,8 +1,5 @@ |
24 |
DIST node-v0.12.18.tar.gz 19842591 BLAKE2B f94f4de6e2875267be194580c645087a262b90da99f10d651a22838c041da07056df81204bb04ce8da083a080062509dcca4d1e3ac2250d651ead8a4cc025028 SHA512 6866608a43eb213f3b715ea0fcc28983fd959ab679c567a1b464f62acd936506f2bce88ea48a60209d8ef8d98259f4b47cd3434893eb4ff82a132775edb37b7b |
25 |
-DIST node-v10.15.2.tar.xz 20232972 BLAKE2B 3ffaa0890ddec6b9d00a0b3f32fc62e55a665ea6faba6265df71be601f88a1c948011f908851f1cbb198974ca36f8626fa9a2b4b8827f0155e57ff48f3e25c10 SHA512 2d4ef4758d3a73a160b95249c7dce32307287ef84511f56c3077f18c0d87a53bb73b44dd86131a402c4e86686e5e7cb5aeedb2b075b8ab261fc43d5abbe70ce6 |
26 |
DIST node-v10.15.3.tar.xz 20262632 BLAKE2B d65d4e274fa829be5cda1970b0ebe7081e8476334cb825e5727324c3202bc015f4ba39589608284d0f8c0b722079c06d1587de5299a3c81ccb7b0eacbdaccf84 SHA512 cf741f733af7a7e1fbd37b0f98110078494b4771dbdfccacfda95a5ea4cda6cdcea4f8d31dddcf27477213614e4ab6cf7d1a1f900cb92936333730737ac4f9e8 |
27 |
-DIST node-v11.11.0.tar.xz 22094004 BLAKE2B 3ca03a659fc1104bf280510277a74167a2a188ba0798c4723730fb850cae3d4ddc4d5f4bbad88dc9dde8b7f57b02f5d9c47d047bb15668e3488e0a002e225cfb SHA512 c89fd154dfbaa999806429c6e416c4fa2f0d5f3cfb9ac6de8b21f9195681ae0170325ae6fd7ab811f4f394d03c1d56db77ae1c730d5e8ff6a64b9a6dfa2286e8 |
28 |
-DIST node-v11.12.0.tar.xz 22077236 BLAKE2B 1cd7252983c0e444e0ce183a11af0912c994b2e36a8f50a86ca543f59548629fb3b857a0d106340f44124637e06cf90b2e079a17a30c2bd8386bd6575fac1fd9 SHA512 54d19ee6cb5127298276287f536dca9d4c9389038bb23fc48e8ef0246bcfcf59961ae704a94c68eb67104a230e3b23cbb7c8559aca83f542b35a46b2797d31e4 |
29 |
DIST node-v11.13.0.tar.xz 22085284 BLAKE2B e771c6109b4ca60b3037ec6a4f8138af75b505f35584a239f30d2a349d6de68db2f2183b89a7d5a4bbe2aef1e29fbbea54bc93697362f56c12e2e0b54fcadcd3 SHA512 89411c9b9cbf1df09cbf2b5e3a910d7ef2e4046a27a5af858c53a20f51b9ab2f9aad4e4c7c41936520e1feed249118fc46e4e4458e7980a878f364082c24fd35 |
30 |
DIST node-v4.9.1.tar.xz 13250164 BLAKE2B 7a689b99bb4bf507f7f21dd2c096a5766d023a8174c0f468cab37365af1920b8700da04157e1a406917790524255ef32c243a74662fd50ef7d3567d189dac9cf SHA512 690c9fdf608e5194069a10955bdd94ec87cb1c308f13bc4d2cae92fa01436ace10fadf58f2e51d477dde6c570b23edc1c71fafea79bfc9cab2903eb2fa5f87aa |
31 |
DIST node-v6.14.4.tar.xz 15842824 BLAKE2B fc56364be64fe5824e2bb50d861ebf8f58f9895f2c9c108b8df3315b127ffb2755eac85c28165ac9779adab4611ce8f5ea1a5745f43ebaa1389e82b8215c6396 SHA512 1ead0c097ec125230dd631f19a5c3ec06a1371f9ca3b392b5ad08fcc227dd0142f33ad52f96890c2c17448a4951a635b9099dfff00d7d8b3ffb59b07904d1bfa |
32 |
|
33 |
diff --git a/net-libs/nodejs/nodejs-10.15.2.ebuild b/net-libs/nodejs/nodejs-10.15.2.ebuild |
34 |
deleted file mode 100644 |
35 |
index 959fdfa0bf2..00000000000 |
36 |
--- a/net-libs/nodejs/nodejs-10.15.2.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,205 +0,0 @@ |
39 |
-# Copyright 1999-2019 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=6 |
43 |
- |
44 |
-PYTHON_COMPAT=( python2_7 ) |
45 |
-PYTHON_REQ_USE="threads" |
46 |
- |
47 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
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="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
57 |
-REQUIRED_USE=" |
58 |
- ${PYTHON_REQUIRED_USE} |
59 |
- inspector? ( icu ssl ) |
60 |
- npm? ( ssl ) |
61 |
-" |
62 |
- |
63 |
-RDEPEND=" |
64 |
- >=dev-libs/libuv-1.23.2:= |
65 |
- >=net-dns/c-ares-1.15.0 |
66 |
- >=net-libs/http-parser-2.9.0:= |
67 |
- >=net-libs/nghttp2-1.34.0 |
68 |
- sys-libs/zlib |
69 |
- icu? ( >=dev-libs/icu-62.1:= ) |
70 |
- ssl? ( =dev-libs/openssl-1.1.0*:0= ) |
71 |
-" |
72 |
-DEPEND=" |
73 |
- ${RDEPEND} |
74 |
- ${PYTHON_DEPS} |
75 |
- systemtap? ( dev-util/systemtap ) |
76 |
- test? ( net-misc/curl ) |
77 |
-" |
78 |
-PATCHES=( |
79 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
80 |
-) |
81 |
-S="${WORKDIR}/node-v${PV}" |
82 |
- |
83 |
-pkg_pretend() { |
84 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
85 |
- die "Your CPU doesn't support the required SSE2 instruction." |
86 |
- |
87 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
88 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
89 |
-} |
90 |
- |
91 |
-src_prepare() { |
92 |
- tc-export CC CXX PKG_CONFIG |
93 |
- export V=1 |
94 |
- export BUILDTYPE=Release |
95 |
- |
96 |
- # fix compilation on Darwin |
97 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
98 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
99 |
- |
100 |
- # make sure we use python2.* while using gyp |
101 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
102 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
103 |
- |
104 |
- # less verbose install output (stating the same as portage, basically) |
105 |
- sed -i -e "/print/d" tools/install.py || die |
106 |
- |
107 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
108 |
- local LIBDIR=$(get_libdir) |
109 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
110 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
111 |
- |
112 |
- # Avoid writing a depfile, not useful |
113 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
114 |
- |
115 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
116 |
- |
117 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
118 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
119 |
- # The issue is that no stdin handle is openened when asked for one. |
120 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
121 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
122 |
- rm test/parallel/test-stdout-close-unref.js || die |
123 |
- |
124 |
- # debug builds. change install path, remove optimisations and override buildtype |
125 |
- if use debug; then |
126 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
127 |
- BUILDTYPE=Debug |
128 |
- fi |
129 |
- |
130 |
- default |
131 |
-} |
132 |
- |
133 |
-src_configure() { |
134 |
- local myconf=( --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib ) |
135 |
- use debug && myconf+=( --debug ) |
136 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
137 |
- use inspector || myconf+=( --without-inspector ) |
138 |
- use npm || myconf+=( --without-npm ) |
139 |
- use snapshot && myconf+=( --with-snapshot ) |
140 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
141 |
- |
142 |
- local myarch="" |
143 |
- case ${ABI} in |
144 |
- amd64) myarch="x64";; |
145 |
- arm) myarch="arm";; |
146 |
- arm64) myarch="arm64";; |
147 |
- ppc64) myarch="ppc64";; |
148 |
- x32) myarch="x32";; |
149 |
- x86) myarch="ia32";; |
150 |
- *) myarch="${ABI}";; |
151 |
- esac |
152 |
- |
153 |
- GYP_DEFINES="linux_use_gold_flags=0 |
154 |
- linux_use_bundled_binutils=0 |
155 |
- linux_use_bundled_gold=0" \ |
156 |
- "${PYTHON}" configure \ |
157 |
- --prefix="${EPREFIX}"/usr \ |
158 |
- --dest-cpu=${myarch} \ |
159 |
- $(use_with systemtap dtrace) \ |
160 |
- "${myconf[@]}" || die |
161 |
-} |
162 |
- |
163 |
-src_compile() { |
164 |
- emake -C out mksnapshot |
165 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
166 |
- emake -C out |
167 |
-} |
168 |
- |
169 |
-src_install() { |
170 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
171 |
- emake install DESTDIR="${D}" |
172 |
- pax-mark -m "${ED}"usr/bin/node |
173 |
- |
174 |
- # set up a symlink structure that node-gyp expects.. |
175 |
- dodir /usr/include/node/deps/{v8,uv} |
176 |
- dosym . /usr/include/node/src |
177 |
- for var in deps/{uv,v8}/include; do |
178 |
- dosym ../.. /usr/include/node/${var} |
179 |
- done |
180 |
- |
181 |
- if use doc; then |
182 |
- # Patch docs to make them offline readable |
183 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
184 |
- sed -i '/fonts.googleapis.com/ d' $i; |
185 |
- done |
186 |
- # Install docs |
187 |
- docinto html |
188 |
- dodoc -r "${S}"/doc/* |
189 |
- fi |
190 |
- |
191 |
- if use npm; then |
192 |
- dodir /etc/npm |
193 |
- |
194 |
- # Install bash completion for `npm` |
195 |
- # We need to temporarily replace default config path since |
196 |
- # npm otherwise tries to write outside of the sandbox |
197 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
198 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
199 |
- local tmp_npm_completion_file="$(emktemp)" |
200 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
201 |
- newbashcomp "${tmp_npm_completion_file}" npm |
202 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
203 |
- |
204 |
- # Move man pages |
205 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
206 |
- |
207 |
- # Clean up |
208 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
209 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
210 |
- |
211 |
- local find_exp="-or -name" |
212 |
- local find_name=() |
213 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
214 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
215 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
216 |
- find_name+=( ${find_exp} "${match}" ) |
217 |
- done |
218 |
- |
219 |
- # Remove various development and/or inappropriate files and |
220 |
- # useless docs of dependend packages. |
221 |
- find "${LIBDIR}"/node_modules \ |
222 |
- \( -type d -name examples \) -or \( -type f \( \ |
223 |
- -iname "LICEN?E*" \ |
224 |
- "${find_name[@]}" \ |
225 |
- \) \) -exec rm -rf "{}" \; |
226 |
- fi |
227 |
- |
228 |
- mv "${D}"/usr/share/doc/node "${D}"/usr/share/doc/${PF} || die |
229 |
-} |
230 |
- |
231 |
-src_test() { |
232 |
- out/${BUILDTYPE}/cctest || die |
233 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
234 |
-} |
235 |
- |
236 |
-pkg_postinst() { |
237 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
238 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
239 |
- einfo "" |
240 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
241 |
- einfo "avoid having to download extras by doing the following:" |
242 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
243 |
-} |
244 |
|
245 |
diff --git a/net-libs/nodejs/nodejs-11.11.0.ebuild b/net-libs/nodejs/nodejs-11.11.0.ebuild |
246 |
deleted file mode 100644 |
247 |
index 010d4dffa4e..00000000000 |
248 |
--- a/net-libs/nodejs/nodejs-11.11.0.ebuild |
249 |
+++ /dev/null |
250 |
@@ -1,209 +0,0 @@ |
251 |
-# Copyright 1999-2019 Gentoo Authors |
252 |
-# Distributed under the terms of the GNU General Public License v2 |
253 |
- |
254 |
-EAPI=6 |
255 |
- |
256 |
-PYTHON_COMPAT=( python2_7 ) |
257 |
-PYTHON_REQ_USE="threads" |
258 |
- |
259 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
260 |
- |
261 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
262 |
-HOMEPAGE="https://nodejs.org/" |
263 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
264 |
- |
265 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
266 |
-SLOT="0" |
267 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
268 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
269 |
-REQUIRED_USE=" |
270 |
- ${PYTHON_REQUIRED_USE} |
271 |
- inspector? ( icu ssl ) |
272 |
- npm? ( ssl ) |
273 |
-" |
274 |
- |
275 |
-RDEPEND=" |
276 |
- >=dev-libs/libuv-1.26.0:= |
277 |
- >=net-dns/c-ares-1.15.0 |
278 |
- >=net-libs/http-parser-2.9.0:= |
279 |
- >=net-libs/nghttp2-1.34.0 |
280 |
- sys-libs/zlib |
281 |
- icu? ( >=dev-libs/icu-63.1:= ) |
282 |
- ssl? ( =dev-libs/openssl-1.1.1*:0= ) |
283 |
-" |
284 |
-DEPEND=" |
285 |
- ${RDEPEND} |
286 |
- ${PYTHON_DEPS} |
287 |
- systemtap? ( dev-util/systemtap ) |
288 |
- test? ( net-misc/curl ) |
289 |
-" |
290 |
-PATCHES=( |
291 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
292 |
- "${FILESDIR}"/${PN}-99999999-llhttp.patch |
293 |
-) |
294 |
-S="${WORKDIR}/node-v${PV}" |
295 |
- |
296 |
-pkg_pretend() { |
297 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
298 |
- die "Your CPU doesn't support the required SSE2 instruction." |
299 |
- |
300 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
301 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
302 |
-} |
303 |
- |
304 |
-src_prepare() { |
305 |
- tc-export CC CXX PKG_CONFIG |
306 |
- export V=1 |
307 |
- export BUILDTYPE=Release |
308 |
- |
309 |
- # fix compilation on Darwin |
310 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
311 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
312 |
- |
313 |
- # make sure we use python2.* while using gyp |
314 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
315 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
316 |
- |
317 |
- # less verbose install output (stating the same as portage, basically) |
318 |
- sed -i -e "/print/d" tools/install.py || die |
319 |
- |
320 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
321 |
- local LIBDIR=$(get_libdir) |
322 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
323 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
324 |
- |
325 |
- # Avoid writing a depfile, not useful |
326 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
327 |
- |
328 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
329 |
- |
330 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
331 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
332 |
- # The issue is that no stdin handle is openened when asked for one. |
333 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
334 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
335 |
- rm test/parallel/test-stdout-close-unref.js || die |
336 |
- |
337 |
- # debug builds. change install path, remove optimisations and override buildtype |
338 |
- if use debug; then |
339 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
340 |
- BUILDTYPE=Debug |
341 |
- fi |
342 |
- |
343 |
- default |
344 |
-} |
345 |
- |
346 |
-src_configure() { |
347 |
- local myconf=( |
348 |
- --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 |
349 |
- --shared-zlib |
350 |
- ) |
351 |
- use debug && myconf+=( --debug ) |
352 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
353 |
- use inspector || myconf+=( --without-inspector ) |
354 |
- use npm || myconf+=( --without-npm ) |
355 |
- use snapshot && myconf+=( --with-snapshot ) |
356 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
357 |
- |
358 |
- local myarch="" |
359 |
- case ${ABI} in |
360 |
- amd64) myarch="x64";; |
361 |
- arm) myarch="arm";; |
362 |
- arm64) myarch="arm64";; |
363 |
- ppc64) myarch="ppc64";; |
364 |
- x32) myarch="x32";; |
365 |
- x86) myarch="ia32";; |
366 |
- *) myarch="${ABI}";; |
367 |
- esac |
368 |
- |
369 |
- GYP_DEFINES="linux_use_gold_flags=0 |
370 |
- linux_use_bundled_binutils=0 |
371 |
- linux_use_bundled_gold=0" \ |
372 |
- "${PYTHON}" configure \ |
373 |
- --prefix="${EPREFIX}"/usr \ |
374 |
- --dest-cpu=${myarch} \ |
375 |
- $(use_with systemtap dtrace) \ |
376 |
- "${myconf[@]}" || die |
377 |
-} |
378 |
- |
379 |
-src_compile() { |
380 |
- emake -C out mksnapshot |
381 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
382 |
- emake -C out |
383 |
-} |
384 |
- |
385 |
-src_install() { |
386 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
387 |
- emake install DESTDIR="${D}" |
388 |
- pax-mark -m "${ED}"usr/bin/node |
389 |
- |
390 |
- # set up a symlink structure that node-gyp expects.. |
391 |
- dodir /usr/include/node/deps/{v8,uv} |
392 |
- dosym . /usr/include/node/src |
393 |
- for var in deps/{uv,v8}/include; do |
394 |
- dosym ../.. /usr/include/node/${var} |
395 |
- done |
396 |
- |
397 |
- if use doc; then |
398 |
- # Patch docs to make them offline readable |
399 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
400 |
- sed -i '/fonts.googleapis.com/ d' $i; |
401 |
- done |
402 |
- # Install docs |
403 |
- docinto html |
404 |
- dodoc -r "${S}"/doc/* |
405 |
- fi |
406 |
- |
407 |
- if use npm; then |
408 |
- dodir /etc/npm |
409 |
- |
410 |
- # Install bash completion for `npm` |
411 |
- # We need to temporarily replace default config path since |
412 |
- # npm otherwise tries to write outside of the sandbox |
413 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
414 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
415 |
- local tmp_npm_completion_file="$(emktemp)" |
416 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
417 |
- newbashcomp "${tmp_npm_completion_file}" npm |
418 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
419 |
- |
420 |
- # Move man pages |
421 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
422 |
- |
423 |
- # Clean up |
424 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
425 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
426 |
- |
427 |
- local find_exp="-or -name" |
428 |
- local find_name=() |
429 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
430 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
431 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
432 |
- find_name+=( ${find_exp} "${match}" ) |
433 |
- done |
434 |
- |
435 |
- # Remove various development and/or inappropriate files and |
436 |
- # useless docs of dependend packages. |
437 |
- find "${LIBDIR}"/node_modules \ |
438 |
- \( -type d -name examples \) -or \( -type f \( \ |
439 |
- -iname "LICEN?E*" \ |
440 |
- "${find_name[@]}" \ |
441 |
- \) \) -exec rm -rf "{}" \; |
442 |
- fi |
443 |
- |
444 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
445 |
-} |
446 |
- |
447 |
-src_test() { |
448 |
- out/${BUILDTYPE}/cctest || die |
449 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
450 |
-} |
451 |
- |
452 |
-pkg_postinst() { |
453 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
454 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
455 |
- elog "" |
456 |
- elog "Protip: When using node-gyp to install native modules, you can" |
457 |
- elog "avoid having to download extras by doing the following:" |
458 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
459 |
-} |
460 |
|
461 |
diff --git a/net-libs/nodejs/nodejs-11.12.0.ebuild b/net-libs/nodejs/nodejs-11.12.0.ebuild |
462 |
deleted file mode 100644 |
463 |
index 010d4dffa4e..00000000000 |
464 |
--- a/net-libs/nodejs/nodejs-11.12.0.ebuild |
465 |
+++ /dev/null |
466 |
@@ -1,209 +0,0 @@ |
467 |
-# Copyright 1999-2019 Gentoo Authors |
468 |
-# Distributed under the terms of the GNU General Public License v2 |
469 |
- |
470 |
-EAPI=6 |
471 |
- |
472 |
-PYTHON_COMPAT=( python2_7 ) |
473 |
-PYTHON_REQ_USE="threads" |
474 |
- |
475 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
476 |
- |
477 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
478 |
-HOMEPAGE="https://nodejs.org/" |
479 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
480 |
- |
481 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
482 |
-SLOT="0" |
483 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
484 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
485 |
-REQUIRED_USE=" |
486 |
- ${PYTHON_REQUIRED_USE} |
487 |
- inspector? ( icu ssl ) |
488 |
- npm? ( ssl ) |
489 |
-" |
490 |
- |
491 |
-RDEPEND=" |
492 |
- >=dev-libs/libuv-1.26.0:= |
493 |
- >=net-dns/c-ares-1.15.0 |
494 |
- >=net-libs/http-parser-2.9.0:= |
495 |
- >=net-libs/nghttp2-1.34.0 |
496 |
- sys-libs/zlib |
497 |
- icu? ( >=dev-libs/icu-63.1:= ) |
498 |
- ssl? ( =dev-libs/openssl-1.1.1*:0= ) |
499 |
-" |
500 |
-DEPEND=" |
501 |
- ${RDEPEND} |
502 |
- ${PYTHON_DEPS} |
503 |
- systemtap? ( dev-util/systemtap ) |
504 |
- test? ( net-misc/curl ) |
505 |
-" |
506 |
-PATCHES=( |
507 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
508 |
- "${FILESDIR}"/${PN}-99999999-llhttp.patch |
509 |
-) |
510 |
-S="${WORKDIR}/node-v${PV}" |
511 |
- |
512 |
-pkg_pretend() { |
513 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
514 |
- die "Your CPU doesn't support the required SSE2 instruction." |
515 |
- |
516 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
517 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
518 |
-} |
519 |
- |
520 |
-src_prepare() { |
521 |
- tc-export CC CXX PKG_CONFIG |
522 |
- export V=1 |
523 |
- export BUILDTYPE=Release |
524 |
- |
525 |
- # fix compilation on Darwin |
526 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
527 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
528 |
- |
529 |
- # make sure we use python2.* while using gyp |
530 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
531 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
532 |
- |
533 |
- # less verbose install output (stating the same as portage, basically) |
534 |
- sed -i -e "/print/d" tools/install.py || die |
535 |
- |
536 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
537 |
- local LIBDIR=$(get_libdir) |
538 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
539 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
540 |
- |
541 |
- # Avoid writing a depfile, not useful |
542 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
543 |
- |
544 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
545 |
- |
546 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
547 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
548 |
- # The issue is that no stdin handle is openened when asked for one. |
549 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
550 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
551 |
- rm test/parallel/test-stdout-close-unref.js || die |
552 |
- |
553 |
- # debug builds. change install path, remove optimisations and override buildtype |
554 |
- if use debug; then |
555 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
556 |
- BUILDTYPE=Debug |
557 |
- fi |
558 |
- |
559 |
- default |
560 |
-} |
561 |
- |
562 |
-src_configure() { |
563 |
- local myconf=( |
564 |
- --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 |
565 |
- --shared-zlib |
566 |
- ) |
567 |
- use debug && myconf+=( --debug ) |
568 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
569 |
- use inspector || myconf+=( --without-inspector ) |
570 |
- use npm || myconf+=( --without-npm ) |
571 |
- use snapshot && myconf+=( --with-snapshot ) |
572 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
573 |
- |
574 |
- local myarch="" |
575 |
- case ${ABI} in |
576 |
- amd64) myarch="x64";; |
577 |
- arm) myarch="arm";; |
578 |
- arm64) myarch="arm64";; |
579 |
- ppc64) myarch="ppc64";; |
580 |
- x32) myarch="x32";; |
581 |
- x86) myarch="ia32";; |
582 |
- *) myarch="${ABI}";; |
583 |
- esac |
584 |
- |
585 |
- GYP_DEFINES="linux_use_gold_flags=0 |
586 |
- linux_use_bundled_binutils=0 |
587 |
- linux_use_bundled_gold=0" \ |
588 |
- "${PYTHON}" configure \ |
589 |
- --prefix="${EPREFIX}"/usr \ |
590 |
- --dest-cpu=${myarch} \ |
591 |
- $(use_with systemtap dtrace) \ |
592 |
- "${myconf[@]}" || die |
593 |
-} |
594 |
- |
595 |
-src_compile() { |
596 |
- emake -C out mksnapshot |
597 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
598 |
- emake -C out |
599 |
-} |
600 |
- |
601 |
-src_install() { |
602 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
603 |
- emake install DESTDIR="${D}" |
604 |
- pax-mark -m "${ED}"usr/bin/node |
605 |
- |
606 |
- # set up a symlink structure that node-gyp expects.. |
607 |
- dodir /usr/include/node/deps/{v8,uv} |
608 |
- dosym . /usr/include/node/src |
609 |
- for var in deps/{uv,v8}/include; do |
610 |
- dosym ../.. /usr/include/node/${var} |
611 |
- done |
612 |
- |
613 |
- if use doc; then |
614 |
- # Patch docs to make them offline readable |
615 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
616 |
- sed -i '/fonts.googleapis.com/ d' $i; |
617 |
- done |
618 |
- # Install docs |
619 |
- docinto html |
620 |
- dodoc -r "${S}"/doc/* |
621 |
- fi |
622 |
- |
623 |
- if use npm; then |
624 |
- dodir /etc/npm |
625 |
- |
626 |
- # Install bash completion for `npm` |
627 |
- # We need to temporarily replace default config path since |
628 |
- # npm otherwise tries to write outside of the sandbox |
629 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
630 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
631 |
- local tmp_npm_completion_file="$(emktemp)" |
632 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
633 |
- newbashcomp "${tmp_npm_completion_file}" npm |
634 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
635 |
- |
636 |
- # Move man pages |
637 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
638 |
- |
639 |
- # Clean up |
640 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
641 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
642 |
- |
643 |
- local find_exp="-or -name" |
644 |
- local find_name=() |
645 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
646 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
647 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
648 |
- find_name+=( ${find_exp} "${match}" ) |
649 |
- done |
650 |
- |
651 |
- # Remove various development and/or inappropriate files and |
652 |
- # useless docs of dependend packages. |
653 |
- find "${LIBDIR}"/node_modules \ |
654 |
- \( -type d -name examples \) -or \( -type f \( \ |
655 |
- -iname "LICEN?E*" \ |
656 |
- "${find_name[@]}" \ |
657 |
- \) \) -exec rm -rf "{}" \; |
658 |
- fi |
659 |
- |
660 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
661 |
-} |
662 |
- |
663 |
-src_test() { |
664 |
- out/${BUILDTYPE}/cctest || die |
665 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
666 |
-} |
667 |
- |
668 |
-pkg_postinst() { |
669 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
670 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
671 |
- elog "" |
672 |
- elog "Protip: When using node-gyp to install native modules, you can" |
673 |
- elog "avoid having to download extras by doing the following:" |
674 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
675 |
-} |