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