1 |
commit: fc2bf24a3537c0b1e948147dbbc27d9dce58502f |
2 |
Author: Stefan Strogin <steils <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 17 02:21:15 2019 +0000 |
4 |
Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 17 02:21:15 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=fc2bf24a |
7 |
|
8 |
net-libs/nodejs: drop old 8.15.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, 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-8.15.1.ebuild | 211 ----------------------------------- |
15 |
2 files changed, 212 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
18 |
index b9f8783..58f3879 100644 |
19 |
--- a/net-libs/nodejs/Manifest |
20 |
+++ b/net-libs/nodejs/Manifest |
21 |
@@ -2,5 +2,4 @@ DIST node-v10.15.3.tar.xz 20262632 BLAKE2B d65d4e274fa829be5cda1970b0ebe7081e847 |
22 |
DIST node-v11.14.0.tar.xz 22106812 BLAKE2B 3a8dd9feb5916f235bf69d0610e32c1861e64f427b6de5ec27b3634268f273826f271cf5ea821042420d3b3f348124be2ce2fda13d0addea092db1338c9f95f7 SHA512 4e8033ea0f326fe5a8372c81771cd58242881ac7db905f697ce79ef9cb3ba2dfe2b94fb24a36775761c72ac531096c5e18a8574f933d76c1b652b18419b25446 |
23 |
DIST node-v6.11.5.tar.xz 15699404 SHA256 1c6de415216799fbaeca82304b3fef87accc7101ebf2ead7d5c545e0779e8aaf SHA512 62490725ef7957294c1bddf21ef0626c7472876791210168116501255ecee58457e9de9b044e10033706243299bbfd1495efeca169596fbf26f5eeba6d8fa4c9 WHIRLPOOL 6e572e34d473544624734a54243dc41101e91d045f2b9cedc0c1a65c90584deb163efb422a0c992689ef9878cc5b882758795ae4d902c1c5b20468d8fa2151da |
24 |
DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42 |
25 |
-DIST node-v8.15.1.tar.xz 18501532 BLAKE2B e6da98902d665997b2e85472424e00f817353dcfc118b1d309f1305099b145eb0eae33429554ab5d563366182b34b24ac78f8b78794f8d21318ebcd137622131 SHA512 23fb4e2580116a69a58514c2dc1f42098c7d594ea9d0cd6e7090f37e12e1805ca6546df66ee68fcb61b803e287ce34422f55129412f6bdcdaa97f515d9581e19 |
26 |
DIST node-v8.16.1.tar.xz 18519480 BLAKE2B a721ea5118e6e97ce36245367d33fb2eab8a9b4fba72f59f1a65dfc79de394a235a579fa789e8676d2897a928444db11e7792e7fe49c59bf17ac4cc1cac63941 SHA512 7d2d7c063934227e5204b2912de45ed1667d5c35573322192393bdac623491559ccd9fa8fbf05828bd2bb8e3aeb03d82804775cccb1139b48298758defe92be3 |
27 |
|
28 |
diff --git a/net-libs/nodejs/nodejs-8.15.1.ebuild b/net-libs/nodejs/nodejs-8.15.1.ebuild |
29 |
deleted file mode 100644 |
30 |
index 4c52556..0000000 |
31 |
--- a/net-libs/nodejs/nodejs-8.15.1.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,211 +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 |
-RESTRICT="test" |
39 |
- |
40 |
-PYTHON_COMPAT=( python2_7 ) |
41 |
-PYTHON_REQ_USE="threads" |
42 |
- |
43 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-r1 toolchain-funcs |
44 |
- |
45 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
46 |
-HOMEPAGE="https://nodejs.org/" |
47 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
48 |
- |
49 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos" |
52 |
-IUSE="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm +snapshot +ssl systemtap test" |
53 |
-REQUIRED_USE=" |
54 |
- ${PYTHON_REQUIRED_USE} |
55 |
- bundled-ssl? ( ssl ) |
56 |
- inspector? ( icu ssl ) |
57 |
- libressl? ( bundled-ssl ) |
58 |
- npm? ( ssl ) |
59 |
-" |
60 |
- |
61 |
-RDEPEND=" |
62 |
- >=dev-libs/libuv-1.23.2:= |
63 |
- >=net-dns/c-ares-1.10.1 |
64 |
- >=net-libs/http-parser-2.9.0:= |
65 |
- >=net-libs/nghttp2-1.33.0 |
66 |
- sys-libs/zlib |
67 |
- icu? ( >=dev-libs/icu-60.1:= ) |
68 |
- ssl? ( |
69 |
- !bundled-ssl? ( =dev-libs/openssl-1.0.2*:0=[-bindist] ) |
70 |
- ) |
71 |
-" |
72 |
-DEPEND=" |
73 |
- ${RDEPEND} |
74 |
- ${PYTHON_DEPS} |
75 |
- systemtap? ( dev-util/systemtap ) |
76 |
- test? ( net-misc/curl ) |
77 |
-" |
78 |
-PATCHES=( |
79 |
- "${FILESDIR}"/nodejs-10.3.0-global-npm-config.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 \ |
110 |
- -e "s|lib/|${LIBDIR}/|g" \ |
111 |
- -e 's|share/doc/node/|share/doc/'"${PF}"'/|g' \ |
112 |
- tools/install.py || die |
113 |
- |
114 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js 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_test() { |
174 |
- out/${BUILDTYPE}/cctest || die |
175 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
176 |
-} |
177 |
- |
178 |
-src_install() { |
179 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
180 |
- emake install DESTDIR="${D}" |
181 |
- pax-mark -m "${ED}"usr/bin/node |
182 |
- |
183 |
- # set up a symlink structure that node-gyp expects.. |
184 |
- dodir /usr/include/node/deps/{v8,uv} |
185 |
- dosym . /usr/include/node/src |
186 |
- for var in deps/{uv,v8}/include; do |
187 |
- dosym ../.. /usr/include/node/${var} |
188 |
- done |
189 |
- |
190 |
- if use doc; then |
191 |
- # Patch docs to make them offline readable |
192 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
193 |
- sed -i '/fonts.googleapis.com/ d' $i; |
194 |
- done |
195 |
- # Install docs |
196 |
- dodoc -r "${S}"/doc/* |
197 |
- fi |
198 |
- |
199 |
- if use npm; then |
200 |
- dodir /etc/npm |
201 |
- |
202 |
- # Install bash completion for `npm` |
203 |
- # We need to temporarily replace default config path since |
204 |
- # npm otherwise tries to write outside of the sandbox |
205 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
206 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
207 |
- local tmp_npm_completion_file="$(emktemp)" |
208 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
209 |
- newbashcomp "${tmp_npm_completion_file}" npm |
210 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
211 |
- |
212 |
- # Move man pages |
213 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
214 |
- |
215 |
- # Clean up |
216 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
217 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
218 |
- |
219 |
- local find_exp="-or -name" |
220 |
- local find_name=() |
221 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
222 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
223 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
224 |
- find_name+=( ${find_exp} "${match}" ) |
225 |
- done |
226 |
- |
227 |
- # Remove various development and/or inappropriate files and |
228 |
- # useless docs of dependend packages. |
229 |
- find "${LIBDIR}"/node_modules \ |
230 |
- \( -type d -name examples \) -or \( -type f \( \ |
231 |
- -iname "LICEN?E*" \ |
232 |
- "${find_name[@]}" \ |
233 |
- \) \) -exec rm -rf "{}" \; |
234 |
- fi |
235 |
-} |
236 |
- |
237 |
-pkg_postinst() { |
238 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
239 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
240 |
- einfo "" |
241 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
242 |
- einfo "avoid having to download extras by doing the following:" |
243 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
244 |
-} |