1 |
commit: 5b0477b8207fcdb85b8a52cf9d4df1aebe6c73cb |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 7 07:29:30 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 7 07:29:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b0477b8 |
7 |
|
8 |
net-libs/nodejs: Old |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
net-libs/nodejs/Manifest | 1 - |
14 |
net-libs/nodejs/nodejs-12.16.1.ebuild | 213 ---------------------------------- |
15 |
2 files changed, 214 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
18 |
index 3ad50a858b4..7ec197bfcad 100644 |
19 |
--- a/net-libs/nodejs/Manifest |
20 |
+++ b/net-libs/nodejs/Manifest |
21 |
@@ -1,4 +1,3 @@ |
22 |
-DIST node-v12.16.1.tar.xz 23481768 BLAKE2B 29371b952c14907778c064269108f1da5e3818c32773e73090c61edcd07190c418189db6a505987ca71f99bb868880e297de5d2181b9a880774eaaf515985f26 SHA512 fe1e9fabb6fe52e3bc4275b33e6c5e4a761550b04964c0ae7dbef7172f5d415207bb2985751d068e357ce45a0ba414b07c0abd1531ef839b9463e98eeae8f9a4 |
23 |
DIST node-v12.18.4.tar.xz 23679924 BLAKE2B 14de3c83851b89f85f7d6f549d9e43e3e97c7a84de94eef8c3a2789e960595749726b8039fdff1be822377355ede2bb95bba4fd1d17c3e5165c844a80eb32e53 SHA512 07101a9acc8dee5189f8484746715b57d4227d819e38a79c100da33f803b0f061e7b37fbd4114ce2bc3eea647726f8786880d3096dfab187c177679f3e1c78e8 |
24 |
DIST node-v12.19.0.tar.xz 23819884 BLAKE2B 5affa4ef9bd4c88218cf8845341f8f7d357a807af5fb8a3633f47de278b20272be1f46365b2b1525c50f0c6ea40025c16725ab5236fb09dfb2f9167b727a1f8e SHA512 ca14aac0f6f95190fd63a87cdc0195c4d38697aef98c111392d71654bb482f1a8c4c925c4fa8387c41fa8a9515ac5e54af8fa365dbc0034fedc271c072801dc7 |
25 |
DIST node-v14.11.0.tar.xz 33379456 BLAKE2B 99e2eba4ba2e54209836fa1e3b63e42caf854d7f3bc99f5836300b0795ef8c785b78bd7c6b99148604f0bb1b34a5169c72e8be0f8d4f62412e7d352fce15ca18 SHA512 5014ebaeb109b0ecaca8f795a4e1a626c03b1132f9b8bac8826b734633c14e9f99b4f079c185a1f43f6938a1e543e5838f520159c3e08ca454398039fd26ef11 |
26 |
|
27 |
diff --git a/net-libs/nodejs/nodejs-12.16.1.ebuild b/net-libs/nodejs/nodejs-12.16.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index 29723942409..00000000000 |
30 |
--- a/net-libs/nodejs/nodejs-12.16.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,213 +0,0 @@ |
33 |
-# Copyright 1999-2020 Gentoo Authors |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=7 |
37 |
-PYTHON_COMPAT=( python3_{6,7} ) |
38 |
-PYTHON_REQ_USE="threads(+)" |
39 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
40 |
- |
41 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
42 |
-HOMEPAGE="https://nodejs.org/" |
43 |
-SRC_URI=" |
44 |
- https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz |
45 |
-" |
46 |
- |
47 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="amd64 arm arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x64-macos" |
50 |
-IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test" |
51 |
-REQUIRED_USE=" |
52 |
- inspector? ( icu ssl ) |
53 |
- npm? ( ssl ) |
54 |
- system-ssl? ( ssl ) |
55 |
-" |
56 |
- |
57 |
-RDEPEND=" |
58 |
- >=dev-libs/libuv-1.34.0:= |
59 |
- >=net-dns/c-ares-1.15.0 |
60 |
- >=net-libs/http-parser-2.9.3:= |
61 |
- >=net-libs/nghttp2-1.40.0 |
62 |
- sys-libs/zlib |
63 |
- icu? ( >=dev-libs/icu-64.2:= ) |
64 |
- system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
65 |
-" |
66 |
-BDEPEND=" |
67 |
- ${PYTHON_DEPS} |
68 |
- systemtap? ( dev-util/systemtap ) |
69 |
- test? ( net-misc/curl ) |
70 |
-" |
71 |
-DEPEND=" |
72 |
- ${RDEPEND} |
73 |
-" |
74 |
-PATCHES=( |
75 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
76 |
- "${FILESDIR}"/${PN}-99999999-llhttp.patch |
77 |
-) |
78 |
-RESTRICT="test" |
79 |
-S="${WORKDIR}/node-v${PV}" |
80 |
- |
81 |
-pkg_pretend() { |
82 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
83 |
- die "Your CPU doesn't support the required SSE2 instruction." |
84 |
- |
85 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
86 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
87 |
-} |
88 |
- |
89 |
-src_prepare() { |
90 |
- tc-export CC CXX PKG_CONFIG |
91 |
- export V=1 |
92 |
- export BUILDTYPE=Release |
93 |
- |
94 |
- # fix compilation on Darwin |
95 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
96 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
97 |
- |
98 |
- # less verbose install output (stating the same as portage, basically) |
99 |
- sed -i -e "/print/d" tools/install.py || die |
100 |
- |
101 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
102 |
- local LIBDIR=$(get_libdir) |
103 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
104 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die |
105 |
- |
106 |
- # Avoid writing a depfile, not useful |
107 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
108 |
- |
109 |
- sed -i -e "/'-O3'/d" common.gypi node.gypi || die |
110 |
- |
111 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
112 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
113 |
- # The issue is that no stdin handle is openened when asked for one. |
114 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
115 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
116 |
- rm test/parallel/test-stdout-close-unref.js || die |
117 |
- |
118 |
- # debug builds. change install path, remove optimisations and override buildtype |
119 |
- if use debug; then |
120 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
121 |
- BUILDTYPE=Debug |
122 |
- fi |
123 |
- |
124 |
- default |
125 |
-} |
126 |
- |
127 |
-src_configure() { |
128 |
- xdg_environment_reset |
129 |
- |
130 |
- local myconf=( |
131 |
- --shared-cares |
132 |
- --shared-http-parser |
133 |
- --shared-libuv |
134 |
- --shared-nghttp2 |
135 |
- --shared-zlib |
136 |
- ) |
137 |
- use debug && myconf+=( --debug ) |
138 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
139 |
- use inspector || myconf+=( --without-inspector ) |
140 |
- use npm || myconf+=( --without-npm ) |
141 |
- use snapshot || myconf+=( --without-node-snapshot ) |
142 |
- if use ssl; then |
143 |
- use system-ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) |
144 |
- else |
145 |
- myconf+=( --without-ssl ) |
146 |
- fi |
147 |
- |
148 |
- local myarch="" |
149 |
- case ${ABI} in |
150 |
- amd64) myarch="x64";; |
151 |
- arm) myarch="arm";; |
152 |
- arm64) myarch="arm64";; |
153 |
- ppc64) myarch="ppc64";; |
154 |
- x32) myarch="x32";; |
155 |
- x86) myarch="ia32";; |
156 |
- *) myarch="${ABI}";; |
157 |
- esac |
158 |
- |
159 |
- GYP_DEFINES="linux_use_gold_flags=0 |
160 |
- linux_use_bundled_binutils=0 |
161 |
- linux_use_bundled_gold=0" \ |
162 |
- "${EPYTHON}" configure.py \ |
163 |
- --prefix="${EPREFIX}"/usr \ |
164 |
- --dest-cpu=${myarch} \ |
165 |
- $(use_with systemtap dtrace) \ |
166 |
- "${myconf[@]}" || die |
167 |
-} |
168 |
- |
169 |
-src_compile() { |
170 |
- emake -C out mksnapshot |
171 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
172 |
- emake -C out |
173 |
-} |
174 |
- |
175 |
-src_install() { |
176 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
177 |
- default |
178 |
- |
179 |
- pax-mark -m "${ED}"/usr/bin/node |
180 |
- |
181 |
- # set up a symlink structure that node-gyp expects.. |
182 |
- dodir /usr/include/node/deps/{v8,uv} |
183 |
- dosym . /usr/include/node/src |
184 |
- for var in deps/{uv,v8}/include; do |
185 |
- dosym ../.. /usr/include/node/${var} |
186 |
- done |
187 |
- |
188 |
- if use doc; then |
189 |
- docinto html |
190 |
- dodoc -r "${S}"/doc/* |
191 |
- fi |
192 |
- |
193 |
- if use npm; then |
194 |
- dodir /etc/npm |
195 |
- |
196 |
- # Install bash completion for `npm` |
197 |
- # We need to temporarily replace default config path since |
198 |
- # npm otherwise tries to write outside of the sandbox |
199 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
200 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
201 |
- local tmp_npm_completion_file="$(emktemp)" |
202 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
203 |
- newbashcomp "${tmp_npm_completion_file}" npm |
204 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
205 |
- |
206 |
- # Move man pages |
207 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
208 |
- |
209 |
- # Clean up |
210 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
211 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
212 |
- |
213 |
- local find_exp="-or -name" |
214 |
- local find_name=() |
215 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
216 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
217 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
218 |
- find_name+=( ${find_exp} "${match}" ) |
219 |
- done |
220 |
- |
221 |
- # Remove various development and/or inappropriate files and |
222 |
- # useless docs of dependend packages. |
223 |
- find "${LIBDIR}"/node_modules \ |
224 |
- \( -type d -name examples \) -or \( -type f \( \ |
225 |
- -iname "LICEN?E*" \ |
226 |
- "${find_name[@]}" \ |
227 |
- \) \) -exec rm -rf "{}" \; |
228 |
- fi |
229 |
- |
230 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
231 |
-} |
232 |
- |
233 |
-src_test() { |
234 |
- out/${BUILDTYPE}/cctest || die |
235 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
236 |
-} |
237 |
- |
238 |
-pkg_postinst() { |
239 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
240 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
241 |
- elog "" |
242 |
- elog "Protip: When using node-gyp to install native modules, you can" |
243 |
- elog "avoid having to download extras by doing the following:" |
244 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
245 |
-} |