1 |
commit: 79ae762f24b37251e14919b829893ef1dc93a3b5 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 16 07:19:37 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 16 07:21:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ae762f |
7 |
|
8 |
net-libs/nodejs: Versions 12.18.4 14.11.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.7, Repoman-3.0.1 |
11 |
Bug: https://bugs.gentoo.org/742893 |
12 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
13 |
|
14 |
net-libs/nodejs/Manifest | 2 + |
15 |
...odejs-99999999.ebuild => nodejs-12.18.4.ebuild} | 50 ++++++++++++++-------- |
16 |
...odejs-99999999.ebuild => nodejs-14.11.0.ebuild} | 21 +++++---- |
17 |
net-libs/nodejs/nodejs-99999999.ebuild | 8 ++-- |
18 |
4 files changed, 51 insertions(+), 30 deletions(-) |
19 |
|
20 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
21 |
index 3a686a1a61b..840184ab69b 100644 |
22 |
--- a/net-libs/nodejs/Manifest |
23 |
+++ b/net-libs/nodejs/Manifest |
24 |
@@ -1,7 +1,9 @@ |
25 |
DIST node-v12.16.1.tar.xz 23481768 BLAKE2B 29371b952c14907778c064269108f1da5e3818c32773e73090c61edcd07190c418189db6a505987ca71f99bb868880e297de5d2181b9a880774eaaf515985f26 SHA512 fe1e9fabb6fe52e3bc4275b33e6c5e4a761550b04964c0ae7dbef7172f5d415207bb2985751d068e357ce45a0ba414b07c0abd1531ef839b9463e98eeae8f9a4 |
26 |
DIST node-v12.18.3.tar.xz 23679596 BLAKE2B 496a8fa0f0368634a900c5961b442cb9ef9e0cf7cb0fc974a9e29624fc40077a61bd6371851d5487b9eeeb50ebf6a238e5db5c801fef000c7cb15bd990cadae2 SHA512 a1c72d4664fbead4e63736abe46417b13dcd0581c7c9f8a94ca5c5b2bd782fefabac63e63f824dda6a771c3b5e647749e3156a611dcb100aad11c3f23e17ed5d |
27 |
+DIST node-v12.18.4.tar.xz 23679924 BLAKE2B 14de3c83851b89f85f7d6f549d9e43e3e97c7a84de94eef8c3a2789e960595749726b8039fdff1be822377355ede2bb95bba4fd1d17c3e5165c844a80eb32e53 SHA512 07101a9acc8dee5189f8484746715b57d4227d819e38a79c100da33f803b0f061e7b37fbd4114ce2bc3eea647726f8786880d3096dfab187c177679f3e1c78e8 |
28 |
DIST node-v14.10.0.tar.xz 33377228 BLAKE2B fc2e0b38c0cd56fa524cc01dd262003ba0dbb4f755b9b95079a4aedea75c75b1e588de8cee4503a9699b1fed9983db8827828fe622c1ea32f9d3ee21aeabc3e4 SHA512 902bfe3b142f11ef48076c4af6f3107fb20f617ef1f12a564fc3ea1870e6304458dd30fb9af67c3431b850caa496bbb55cb1d760e46c882603543685d316c733 |
29 |
DIST node-v14.10.1.tar.xz 33383116 BLAKE2B 68959ad1ed576af327b53080099d8f1e520658f9c7aeb342ba4182f6f058e48d93b1c443e2a91348a221224bfa430a16cbe13b33f339b41eff4a6e41fc1e85db SHA512 fd094fb3ff1f94e913ee876de4365ba1f6d26abd33b60e964fbdf8a205ab8a44885bd69576ec997aee7b36b91a342daf3654bec41377d0ec66e752292aab4319 |
30 |
+DIST node-v14.11.0.tar.xz 33379456 BLAKE2B 99e2eba4ba2e54209836fa1e3b63e42caf854d7f3bc99f5836300b0795ef8c785b78bd7c6b99148604f0bb1b34a5169c72e8be0f8d4f62412e7d352fce15ca18 SHA512 5014ebaeb109b0ecaca8f795a4e1a626c03b1132f9b8bac8826b734633c14e9f99b4f079c185a1f43f6938a1e543e5838f520159c3e08ca454398039fd26ef11 |
31 |
DIST node-v14.2.0.tar.xz 32884616 BLAKE2B 7bcb07cb7623c5e08c20267c320cdf23ad110f124c5ad1f2447ef8b76ab8dc44ed50dab7c5651424d9d3a36f7eeecdf3292b07c02cb2e22c3fbe4ed633c4b842 SHA512 47e5ec0b7a207082d43419a7e0a6ea9242ec43b4d7c2217eb66d0b45e2f4d5cb561b3f6fe35fdc41a8be95c182dc122ba262f696ebd12833596d71b372ec85d2 |
32 |
DIST node-v14.4.0.tar.xz 33005312 BLAKE2B bc1462d897e24a6b842e6f8146971866c73b54ff5383d76cfc5728a73e2c135d28ced068744174b3fb5af4a6ec05ef1f115ea51c2d65517cbe18e1d733460d04 SHA512 f1a7c788a8a149b942ec2b90a4314baaa5355c381029eda45002728ce7209925c016323b0ec1e0dfe2359fddb24f494df125805d0d266b738a333dcddb3f59c3 |
33 |
DIST node-v14.8.0.tar.xz 33342288 BLAKE2B 4f8129beb16ece09f14c234395b29bc53e84896fdd9877821a27c80d88a0740d42ea4dcf65a0a5c52a98129262be236207f4c07d81f76cc5e4471f21227083e9 SHA512 ebb20f7163e20e8074dd9cc5d3ee7f3cbc536c55a7753d39c482ea90e9314d8fdfe1a88203be7f250f6d77b9f13da04d32d99770d300c2ab0dfdee3d7582f068 |
34 |
|
35 |
diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-12.18.4.ebuild |
36 |
similarity index 80% |
37 |
copy from net-libs/nodejs/nodejs-99999999.ebuild |
38 |
copy to net-libs/nodejs/nodejs-12.18.4.ebuild |
39 |
index e7b61f1ab58..af217c2f69d 100644 |
40 |
--- a/net-libs/nodejs/nodejs-99999999.ebuild |
41 |
+++ b/net-libs/nodejs/nodejs-12.18.4.ebuild |
42 |
@@ -2,19 +2,20 @@ |
43 |
# Distributed under the terms of the GNU General Public License v2 |
44 |
|
45 |
EAPI=7 |
46 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
47 |
+PYTHON_COMPAT=( python3_{6,7} ) |
48 |
PYTHON_REQ_USE="threads(+)" |
49 |
-inherit bash-completion-r1 eutils flag-o-matic git-r3 pax-utils python-any-r1 toolchain-funcs xdg-utils |
50 |
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
51 |
|
52 |
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
53 |
HOMEPAGE="https://nodejs.org/" |
54 |
-EGIT_REPO_URI="https://github.com/nodejs/node" |
55 |
+SRC_URI=" |
56 |
+ https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz |
57 |
+" |
58 |
|
59 |
LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
60 |
SLOT="0" |
61 |
-KEYWORDS="" |
62 |
-IUSE="cpu_flags_x86_sse2 debug doc +icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test" |
63 |
-RESTRICT="!test? ( test )" |
64 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
65 |
+IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl +system-ssl systemtap test" |
66 |
REQUIRED_USE=" |
67 |
inspector? ( icu ssl ) |
68 |
npm? ( ssl ) |
69 |
@@ -22,25 +23,28 @@ REQUIRED_USE=" |
70 |
" |
71 |
|
72 |
RDEPEND=" |
73 |
- >=dev-libs/libuv-1.35.0:= |
74 |
- >=net-dns/c-ares-1.15.0 |
75 |
- >=net-libs/nghttp2-1.39.2 |
76 |
+ >=dev-libs/libuv-1.39.0:= |
77 |
+ >=net-dns/c-ares-1.16.0 |
78 |
+ >=net-libs/http-parser-2.9.3:= |
79 |
+ >=net-libs/nghttp2-1.40.0 |
80 |
sys-libs/zlib |
81 |
- icu? ( >=dev-libs/icu-66.1:= ) |
82 |
+ icu? ( >=dev-libs/icu-64.2:= ) |
83 |
system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
84 |
" |
85 |
BDEPEND=" |
86 |
${PYTHON_DEPS} |
87 |
systemtap? ( dev-util/systemtap ) |
88 |
test? ( net-misc/curl ) |
89 |
- pax_kernel? ( sys-apps/elfix ) |
90 |
" |
91 |
DEPEND=" |
92 |
${RDEPEND} |
93 |
" |
94 |
PATCHES=( |
95 |
"${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
96 |
+ "${FILESDIR}"/${PN}-99999999-llhttp.patch |
97 |
) |
98 |
+RESTRICT="test" |
99 |
+S="${WORKDIR}/node-v${PV}" |
100 |
|
101 |
pkg_pretend() { |
102 |
(use x86 && ! use cpu_flags_x86_sse2) && \ |
103 |
@@ -51,7 +55,7 @@ pkg_pretend() { |
104 |
} |
105 |
|
106 |
src_prepare() { |
107 |
- tc-export AR CC CXX PKG_CONFIG |
108 |
+ tc-export CC CXX PKG_CONFIG |
109 |
export V=1 |
110 |
export BUILDTYPE=Release |
111 |
|
112 |
@@ -85,9 +89,6 @@ src_prepare() { |
113 |
BUILDTYPE=Debug |
114 |
fi |
115 |
|
116 |
- # We need to disable mprotect on two files when it builds Bug 694100. |
117 |
- use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.2.0-paxmarking.patch ) |
118 |
- |
119 |
default |
120 |
} |
121 |
|
122 |
@@ -95,7 +96,11 @@ src_configure() { |
123 |
xdg_environment_reset |
124 |
|
125 |
local myconf=( |
126 |
- --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib |
127 |
+ --shared-cares |
128 |
+ --shared-http-parser |
129 |
+ --shared-libuv |
130 |
+ --shared-nghttp2 |
131 |
+ --shared-zlib |
132 |
) |
133 |
use debug && myconf+=( --debug ) |
134 |
use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
135 |
@@ -130,6 +135,8 @@ src_configure() { |
136 |
} |
137 |
|
138 |
src_compile() { |
139 |
+ emake -C out mksnapshot |
140 |
+ pax-mark m "out/${BUILDTYPE}/mksnapshot" |
141 |
emake -C out |
142 |
} |
143 |
|
144 |
@@ -193,5 +200,14 @@ src_install() { |
145 |
|
146 |
src_test() { |
147 |
out/${BUILDTYPE}/cctest || die |
148 |
- "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
149 |
+ "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
150 |
+} |
151 |
+ |
152 |
+pkg_postinst() { |
153 |
+ elog "The global npm config lives in /etc/npm. This deviates slightly" |
154 |
+ elog "from upstream which otherwise would have it live in /usr/etc/." |
155 |
+ elog "" |
156 |
+ elog "Protip: When using node-gyp to install native modules, you can" |
157 |
+ elog "avoid having to download extras by doing the following:" |
158 |
+ elog "$ node-gyp --nodedir /usr/include/node <command>" |
159 |
} |
160 |
|
161 |
diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-14.11.0.ebuild |
162 |
similarity index 92% |
163 |
copy from net-libs/nodejs/nodejs-99999999.ebuild |
164 |
copy to net-libs/nodejs/nodejs-14.11.0.ebuild |
165 |
index e7b61f1ab58..43b93416662 100644 |
166 |
--- a/net-libs/nodejs/nodejs-99999999.ebuild |
167 |
+++ b/net-libs/nodejs/nodejs-14.11.0.ebuild |
168 |
@@ -4,17 +4,18 @@ |
169 |
EAPI=7 |
170 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
171 |
PYTHON_REQ_USE="threads(+)" |
172 |
-inherit bash-completion-r1 eutils flag-o-matic git-r3 pax-utils python-any-r1 toolchain-funcs xdg-utils |
173 |
+inherit bash-completion-r1 eutils flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
174 |
|
175 |
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
176 |
HOMEPAGE="https://nodejs.org/" |
177 |
-EGIT_REPO_URI="https://github.com/nodejs/node" |
178 |
+SRC_URI=" |
179 |
+ https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz |
180 |
+" |
181 |
|
182 |
LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
183 |
SLOT="0" |
184 |
-KEYWORDS="" |
185 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
186 |
IUSE="cpu_flags_x86_sse2 debug doc +icu inspector +npm pax_kernel +snapshot +ssl +system-ssl systemtap test" |
187 |
-RESTRICT="!test? ( test )" |
188 |
REQUIRED_USE=" |
189 |
inspector? ( icu ssl ) |
190 |
npm? ( ssl ) |
191 |
@@ -22,11 +23,11 @@ REQUIRED_USE=" |
192 |
" |
193 |
|
194 |
RDEPEND=" |
195 |
- >=dev-libs/libuv-1.35.0:= |
196 |
- >=net-dns/c-ares-1.15.0 |
197 |
- >=net-libs/nghttp2-1.39.2 |
198 |
+ >=dev-libs/libuv-1.39.0:= |
199 |
+ >=net-dns/c-ares-1.16.0 |
200 |
+ >=net-libs/nghttp2-1.41.0 |
201 |
sys-libs/zlib |
202 |
- icu? ( >=dev-libs/icu-66.1:= ) |
203 |
+ icu? ( >=dev-libs/icu-67:= ) |
204 |
system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
205 |
" |
206 |
BDEPEND=" |
207 |
@@ -41,6 +42,8 @@ DEPEND=" |
208 |
PATCHES=( |
209 |
"${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
210 |
) |
211 |
+RESTRICT="test" |
212 |
+S="${WORKDIR}/node-v${PV}" |
213 |
|
214 |
pkg_pretend() { |
215 |
(use x86 && ! use cpu_flags_x86_sse2) && \ |
216 |
@@ -86,7 +89,7 @@ src_prepare() { |
217 |
fi |
218 |
|
219 |
# We need to disable mprotect on two files when it builds Bug 694100. |
220 |
- use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.2.0-paxmarking.patch ) |
221 |
+ use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.8.0-paxmarking.patch ) |
222 |
|
223 |
default |
224 |
} |
225 |
|
226 |
diff --git a/net-libs/nodejs/nodejs-99999999.ebuild b/net-libs/nodejs/nodejs-99999999.ebuild |
227 |
index e7b61f1ab58..70e923f68c0 100644 |
228 |
--- a/net-libs/nodejs/nodejs-99999999.ebuild |
229 |
+++ b/net-libs/nodejs/nodejs-99999999.ebuild |
230 |
@@ -22,11 +22,11 @@ REQUIRED_USE=" |
231 |
" |
232 |
|
233 |
RDEPEND=" |
234 |
- >=dev-libs/libuv-1.35.0:= |
235 |
- >=net-dns/c-ares-1.15.0 |
236 |
- >=net-libs/nghttp2-1.39.2 |
237 |
+ >=dev-libs/libuv-1.39.0:= |
238 |
+ >=net-dns/c-ares-1.16.0 |
239 |
+ >=net-libs/nghttp2-1.41.0 |
240 |
sys-libs/zlib |
241 |
- icu? ( >=dev-libs/icu-66.1:= ) |
242 |
+ icu? ( >=dev-libs/icu-67.1:= ) |
243 |
system-ssl? ( >=dev-libs/openssl-1.1.1:0= ) |
244 |
" |
245 |
BDEPEND=" |