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: Thu, 05 Sep 2019 09:16:05
Message-Id: 1567674880.493a56b36bb50f26872466a2bf42bd422fe0fc13.steils@gentoo
1 commit: 493a56b36bb50f26872466a2bf42bd422fe0fc13
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 5 09:14:40 2019 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 5 09:14:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=493a56b3
7
8 net-libs/nodejs: drop old 12.9.0
9
10 Package-Manager: Portage-2.3.75, 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.9.0.ebuild | 210 -----------------------------------
15 2 files changed, 211 deletions(-)
16
17 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
18 index 10c897f..a83e5dc 100644
19 --- a/net-libs/nodejs/Manifest
20 +++ b/net-libs/nodejs/Manifest
21 @@ -1,7 +1,6 @@
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.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 DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42
29
30 diff --git a/net-libs/nodejs/nodejs-12.9.0.ebuild b/net-libs/nodejs/nodejs-12.9.0.ebuild
31 deleted file mode 100644
32 index f92f9d0..0000000
33 --- a/net-libs/nodejs/nodejs-12.9.0.ebuild
34 +++ /dev/null
35 @@ -1,210 +0,0 @@
36 -# Copyright 1999-2019 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -PYTHON_COMPAT=( python2_7 )
41 -PYTHON_REQ_USE="threads"
42 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-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 - bundled-ssl? ( ssl )
54 - inspector? ( icu ssl )
55 - libressl? ( bundled-ssl )
56 - npm? ( ssl )
57 -"
58 -
59 -RDEPEND="
60 - >=dev-libs/libuv-1.31.0:=
61 - >=net-dns/c-ares-1.15.0
62 - >=net-libs/http-parser-2.8.0:=
63 - >=net-libs/nghttp2-1.39.2
64 - sys-libs/zlib
65 - icu? ( >=dev-libs/icu-64.2:= )
66 - ssl? (
67 - !bundled-ssl? ( >=dev-libs/openssl-1.1.1:0= )
68 - )
69 -"
70 -DEPEND="
71 - ${RDEPEND}
72 - ${PYTHON_DEPS}
73 - systemtap? ( dev-util/systemtap )
74 - test? ( net-misc/curl )
75 -"
76 -PATCHES=(
77 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
78 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
79 -)
80 -S="${WORKDIR}/node-v${PV}"
81 -
82 -pkg_pretend() {
83 - (use x86 && ! use cpu_flags_x86_sse2) && \
84 - die "Your CPU doesn't support the required SSE2 instruction."
85 -
86 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
87 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
88 -}
89 -
90 -src_prepare() {
91 - tc-export CC CXX PKG_CONFIG
92 - export V=1
93 - export BUILDTYPE=Release
94 -
95 - # fix compilation on Darwin
96 - # https://code.google.com/p/gyp/issues/detail?id=260
97 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
98 -
99 - # make sure we use python2.* while using gyp
100 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || 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 -}