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