1 |
commit: a3845dfd48e028917a52125c12e822d3384c1cd9 |
2 |
Author: Stefan Strogin <steils <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 28 09:49:44 2019 +0000 |
4 |
Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 28 09:49:44 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=a3845dfd |
7 |
|
8 |
net-libs/nodejs: drop old 11.14.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
11 |
Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> |
12 |
|
13 |
net-libs/nodejs/Manifest | 1 - |
14 |
net-libs/nodejs/nodejs-11.14.0.ebuild | 213 ---------------------------------- |
15 |
2 files changed, 214 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
18 |
index 4fafbe5..58f541f 100644 |
19 |
--- a/net-libs/nodejs/Manifest |
20 |
+++ b/net-libs/nodejs/Manifest |
21 |
@@ -1,5 +1,4 @@ |
22 |
DIST node-v10.15.3.tar.xz 20262632 BLAKE2B d65d4e274fa829be5cda1970b0ebe7081e8476334cb825e5727324c3202bc015f4ba39589608284d0f8c0b722079c06d1587de5299a3c81ccb7b0eacbdaccf84 SHA512 cf741f733af7a7e1fbd37b0f98110078494b4771dbdfccacfda95a5ea4cda6cdcea4f8d31dddcf27477213614e4ab6cf7d1a1f900cb92936333730737ac4f9e8 |
23 |
-DIST node-v11.14.0.tar.xz 22106812 BLAKE2B 3a8dd9feb5916f235bf69d0610e32c1861e64f427b6de5ec27b3634268f273826f271cf5ea821042420d3b3f348124be2ce2fda13d0addea092db1338c9f95f7 SHA512 4e8033ea0f326fe5a8372c81771cd58242881ac7db905f697ce79ef9cb3ba2dfe2b94fb24a36775761c72ac531096c5e18a8574f933d76c1b652b18419b25446 |
24 |
DIST node-v12.10.0.tar.xz 22726116 BLAKE2B deb6ecaec54233050eaeb335d58020b8a82009bbab51c41c00784cab3003e57dbc96f3c25715deefbb5b3aee704b3db920cbb650af33cbcb1a62c1bb654f48f8 SHA512 7eb57b40effa9627b93c74ddc01ce1c044e878c669969c506ed40f72a7946c7c6951931c4fe4fbef456386ad459f7f4f1d0f04177e38343375aa463974ca1dba |
25 |
DIST node-v12.11.0.tar.xz 22817256 BLAKE2B 4e568a50002c436bd76fc851b231ddc52ef25703f13b633eb3e6634b20d78d3462802274a9df777d93ee05b49dc4771012ef1a466012d0de90ca34327d42f4ae SHA512 4d94f1c9a4fd0cc2ea21aea8ea41c595d18fa44e53d0ed35693c3d547a31bee3bcb7842dd5011cbd9c610919c1ac03d98c38ca85bdddd5555608268f2b47b1f4 |
26 |
DIST node-v12.9.1.tar.xz 22714668 BLAKE2B c2ab1d67d1f9cf9dee4a1fcb0f1f8f23e2536f526290baf9d5dd05867695f763d8cd8e501b044cb42b383a897f5e016c7a57aecc2d5a4ca58ab3d50020db1f07 SHA512 efe5fbf0545a3e9c37c7598abd89841073cfafefc04a9b5f9f95c8c51357bf3d5384701fd5524ff8fcaef833bca87c72cbf1f8755ee406e9437ad8ad875af18e |
27 |
|
28 |
diff --git a/net-libs/nodejs/nodejs-11.14.0.ebuild b/net-libs/nodejs/nodejs-11.14.0.ebuild |
29 |
deleted file mode 100644 |
30 |
index 1256a78..0000000 |
31 |
--- a/net-libs/nodejs/nodejs-11.14.0.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,213 +0,0 @@ |
34 |
-# Copyright 1999-2019 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=6 |
38 |
- |
39 |
-PYTHON_COMPAT=( python2_7 ) |
40 |
-PYTHON_REQ_USE="threads" |
41 |
- |
42 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
43 |
- |
44 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
45 |
-HOMEPAGE="https://nodejs.org/" |
46 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
47 |
- |
48 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
49 |
-SLOT="0" |
50 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
51 |
-IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm +snapshot +ssl systemtap test" |
52 |
-REQUIRED_USE=" |
53 |
- ${PYTHON_REQUIRED_USE} |
54 |
- bundled-ssl? ( ssl ) |
55 |
- inspector? ( icu ssl ) |
56 |
- libressl? ( bundled-ssl ) |
57 |
- npm? ( ssl ) |
58 |
-" |
59 |
- |
60 |
-RDEPEND=" |
61 |
- >=dev-libs/libuv-1.27.0:= |
62 |
- >=net-dns/c-ares-1.15.0 |
63 |
- >=net-libs/http-parser-2.9.0:= |
64 |
- >=net-libs/nghttp2-1.37.0 |
65 |
- sys-libs/zlib |
66 |
- icu? ( >=dev-libs/icu-63.1:= ) |
67 |
- ssl? ( |
68 |
- !bundled-ssl? ( >=dev-libs/openssl-1.1:0= ) |
69 |
- ) |
70 |
-" |
71 |
-DEPEND=" |
72 |
- ${RDEPEND} |
73 |
- ${PYTHON_DEPS} |
74 |
- systemtap? ( dev-util/systemtap ) |
75 |
- test? ( net-misc/curl ) |
76 |
-" |
77 |
-PATCHES=( |
78 |
- "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch |
79 |
- "${FILESDIR}"/${PN}-99999999-llhttp.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=( |
135 |
- --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2 |
136 |
- --shared-zlib |
137 |
- ) |
138 |
- use debug && myconf+=( --debug ) |
139 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
140 |
- use inspector || myconf+=( --without-inspector ) |
141 |
- use npm || myconf+=( --without-npm ) |
142 |
- use snapshot && myconf+=( --with-snapshot ) |
143 |
- use ssl && ( use bundled-ssl || myconf+=( --shared-openssl ) ) || myconf+=( --without-ssl ) |
144 |
- |
145 |
- local myarch="" |
146 |
- case ${ABI} in |
147 |
- amd64) myarch="x64";; |
148 |
- arm) myarch="arm";; |
149 |
- arm64) myarch="arm64";; |
150 |
- ppc64) myarch="ppc64";; |
151 |
- x32) myarch="x32";; |
152 |
- x86) myarch="ia32";; |
153 |
- *) myarch="${ABI}";; |
154 |
- esac |
155 |
- |
156 |
- GYP_DEFINES="linux_use_gold_flags=0 |
157 |
- linux_use_bundled_binutils=0 |
158 |
- linux_use_bundled_gold=0" \ |
159 |
- "${PYTHON}" configure \ |
160 |
- --prefix="${EPREFIX}"/usr \ |
161 |
- --dest-cpu=${myarch} \ |
162 |
- $(use_with systemtap dtrace) \ |
163 |
- "${myconf[@]}" || die |
164 |
-} |
165 |
- |
166 |
-src_compile() { |
167 |
- emake -C out mksnapshot |
168 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
169 |
- emake -C out |
170 |
-} |
171 |
- |
172 |
-src_install() { |
173 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
174 |
- emake install DESTDIR="${D}" |
175 |
- pax-mark -m "${ED}"usr/bin/node |
176 |
- |
177 |
- # set up a symlink structure that node-gyp expects.. |
178 |
- dodir /usr/include/node/deps/{v8,uv} |
179 |
- dosym . /usr/include/node/src |
180 |
- for var in deps/{uv,v8}/include; do |
181 |
- dosym ../.. /usr/include/node/${var} |
182 |
- done |
183 |
- |
184 |
- if use doc; then |
185 |
- # Patch docs to make them offline readable |
186 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
187 |
- sed -i '/fonts.googleapis.com/ d' $i; |
188 |
- done |
189 |
- # Install docs |
190 |
- docinto html |
191 |
- dodoc -r "${S}"/doc/* |
192 |
- fi |
193 |
- |
194 |
- if use npm; then |
195 |
- dodir /etc/npm |
196 |
- |
197 |
- # Install bash completion for `npm` |
198 |
- # We need to temporarily replace default config path since |
199 |
- # npm otherwise tries to write outside of the sandbox |
200 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
201 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
202 |
- local tmp_npm_completion_file="$(emktemp)" |
203 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
204 |
- newbashcomp "${tmp_npm_completion_file}" npm |
205 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
206 |
- |
207 |
- # Move man pages |
208 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
209 |
- |
210 |
- # Clean up |
211 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
212 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
213 |
- |
214 |
- local find_exp="-or -name" |
215 |
- local find_name=() |
216 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
217 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
218 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
219 |
- find_name+=( ${find_exp} "${match}" ) |
220 |
- done |
221 |
- |
222 |
- # Remove various development and/or inappropriate files and |
223 |
- # useless docs of dependend packages. |
224 |
- find "${LIBDIR}"/node_modules \ |
225 |
- \( -type d -name examples \) -or \( -type f \( \ |
226 |
- -iname "LICEN?E*" \ |
227 |
- "${find_name[@]}" \ |
228 |
- \) \) -exec rm -rf "{}" \; |
229 |
- fi |
230 |
- |
231 |
- mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die |
232 |
-} |
233 |
- |
234 |
-src_test() { |
235 |
- out/${BUILDTYPE}/cctest || die |
236 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
237 |
-} |
238 |
- |
239 |
-pkg_postinst() { |
240 |
- elog "The global npm config lives in /etc/npm. This deviates slightly" |
241 |
- elog "from upstream which otherwise would have it live in /usr/etc/." |
242 |
- elog "" |
243 |
- elog "Protip: When using node-gyp to install native modules, you can" |
244 |
- elog "avoid having to download extras by doing the following:" |
245 |
- elog "$ node-gyp --nodedir /usr/include/node <command>" |
246 |
-} |