Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: net-libs/nodejs/
Date: Tue, 27 Aug 2019 17:14:45
Message-Id: 1566925985.817f7e14be0ec60e3f01a24bd50df3b888e57264.steils@gentoo
1 commit: 817f7e14be0ec60e3f01a24bd50df3b888e57264
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 27 17:04:46 2019 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 27 17:13:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=817f7e14
7
8 net-libs/nodejs: drop old 12.8.1
9
10 Package-Manager: Portage-2.3.73, 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-12.8.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 f61839b..6003166 100644
19 --- a/net-libs/nodejs/Manifest
20 +++ b/net-libs/nodejs/Manifest
21 @@ -1,6 +1,5 @@
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.8.1.tar.xz 22641228 BLAKE2B 8eba5a3f99a30c2a91d737da91ec963b4dc505f167afb73e7161292bb97ae15b87b14577629c07131048dd9a1e311468185967910ac6bee489ee354e7a3f23a2 SHA512 eddaa9a53de802b3f0e2ffb121feae914fc3aed15271d1568332dc63db328f4bbf9c0700dbd7b5e2ffc6462f2bffe53dd4c65615bd289d1c8badaeb4f5fc580c
25 DIST node-v12.9.0.tar.xz 22724192 BLAKE2B 6d71db0013650372ca10ff66bc34593b91d93169f90351bedd1044fab248047d3dbc6cb40e2026fd9dd460e4f6f95a4b24d234899e6ea3665489745100550ef8 SHA512 d6de30d0e38719dd2997e5312a81d86757d46de01f3214b04c3ee28a643c945fdc27d2179d06ceb7bc12cdafcefd1edee5da2618463ee214bee8e57bdacd0a8b
26 DIST node-v12.9.1.tar.xz 22714668 BLAKE2B c2ab1d67d1f9cf9dee4a1fcb0f1f8f23e2536f526290baf9d5dd05867695f763d8cd8e501b044cb42b383a897f5e016c7a57aecc2d5a4ca58ab3d50020db1f07 SHA512 efe5fbf0545a3e9c37c7598abd89841073cfafefc04a9b5f9f95c8c51357bf3d5384701fd5524ff8fcaef833bca87c72cbf1f8755ee406e9437ad8ad875af18e
27 DIST node-v6.11.5.tar.xz 15699404 BLAKE2B ba2df91bf5ef38cedb60b42919cf56f16807e619a81876fc92a5741e49da7ec91c4239d00f549c5e80d0bb8282bb9b396dd984507916cd18d61b403a3a7cef94 SHA512 62490725ef7957294c1bddf21ef0626c7472876791210168116501255ecee58457e9de9b044e10033706243299bbfd1495efeca169596fbf26f5eeba6d8fa4c9
28
29 diff --git a/net-libs/nodejs/nodejs-12.8.1.ebuild b/net-libs/nodejs/nodejs-12.8.1.ebuild
30 deleted file mode 100644
31 index 4c8f4db..0000000
32 --- a/net-libs/nodejs/nodejs-12.8.1.ebuild
33 +++ /dev/null
34 @@ -1,211 +0,0 @@
35 -# Copyright 1999-2019 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -PYTHON_COMPAT=( python2_7 )
40 -PYTHON_REQ_USE="threads"
41 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs
42 -
43 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
44 -HOMEPAGE="https://nodejs.org/"
45 -SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz"
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="bundled-ssl cpu_flags_x86_sse2 debug doc icu inspector libressl +npm +snapshot +ssl systemtap test"
51 -REQUIRED_USE="
52 - bundled-ssl? ( ssl )
53 - inspector? ( icu ssl )
54 - libressl? ( bundled-ssl )
55 - npm? ( ssl )
56 -"
57 -
58 -RDEPEND="
59 - >=dev-libs/libuv-1.30.1:=
60 - >=net-dns/c-ares-1.15.0
61 - >=net-libs/http-parser-2.8.0:=
62 - >=net-libs/nghttp2-1.39.2
63 - sys-libs/zlib
64 - icu? ( >=dev-libs/icu-64.2:= )
65 - ssl? (
66 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
67 - )
68 -"
69 -DEPEND="
70 - ${RDEPEND}
71 - ${PYTHON_DEPS}
72 - systemtap? ( dev-util/systemtap )
73 - test? ( net-misc/curl )
74 -"
75 -PATCHES=(
76 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
77 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
78 -)
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 - # make sure we use python2.* while using gyp
99 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
100 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
101 -
102 - # less verbose install output (stating the same as portage, basically)
103 - sed -i -e "/print/d" tools/install.py || die
104 -
105 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
106 - local LIBDIR=$(get_libdir)
107 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
108 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
109 -
110 - # Avoid writing a depfile, not useful
111 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
112 -
113 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
114 -
115 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
116 - # seem sandbox related either (invoking it from a sandbox works fine).
117 - # The issue is that no stdin handle is openened when asked for one.
118 - # It doesn't really belong upstream , so it'll just be removed until someone
119 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
120 - rm test/parallel/test-stdout-close-unref.js || die
121 -
122 - # debug builds. change install path, remove optimisations and override buildtype
123 - if use debug; then
124 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
125 - BUILDTYPE=Debug
126 - fi
127 -
128 - default
129 -}
130 -
131 -src_configure() {
132 - local myconf=(
133 - --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2
134 - --shared-zlib
135 - )
136 - use debug && myconf+=( --debug )
137 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
138 - use inspector || myconf+=( --without-inspector )
139 - use npm || myconf+=( --without-npm )
140 - use snapshot && myconf+=( --with-snapshot )
141 - use ssl && ( use bundled-ssl || myconf+=( --shared-openssl --openssl-use-def-ca-store ) ) || myconf+=( --without-ssl )
142 -
143 - local myarch=""
144 - case ${ABI} in
145 - amd64) myarch="x64";;
146 - arm) myarch="arm";;
147 - arm64) myarch="arm64";;
148 - ppc64) myarch="ppc64";;
149 - x32) myarch="x32";;
150 - x86) myarch="ia32";;
151 - *) myarch="${ABI}";;
152 - esac
153 -
154 - GYP_DEFINES="linux_use_gold_flags=0
155 - linux_use_bundled_binutils=0
156 - linux_use_bundled_gold=0" \
157 - "${PYTHON}" configure \
158 - --prefix="${EPREFIX}"/usr \
159 - --dest-cpu=${myarch} \
160 - $(use_with systemtap dtrace) \
161 - "${myconf[@]}" || die
162 -}
163 -
164 -src_compile() {
165 - emake -C out mksnapshot
166 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
167 - emake -C out
168 -}
169 -
170 -src_install() {
171 - local LIBDIR="${ED}/usr/$(get_libdir)"
172 - default
173 -
174 - pax-mark -m "${ED}"/usr/bin/node
175 -
176 - # set up a symlink structure that node-gyp expects..
177 - dodir /usr/include/node/deps/{v8,uv}
178 - dosym . /usr/include/node/src
179 - for var in deps/{uv,v8}/include; do
180 - dosym ../.. /usr/include/node/${var}
181 - done
182 -
183 - if use doc; then
184 - # Patch docs to make them offline readable
185 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
186 - sed -i '/fonts.googleapis.com/ d' $i;
187 - done
188 - # Install docs
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 -}