Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/nodejs/
Date: Fri, 10 Jan 2020 09:41:12
Message-Id: 1578649266.dd364d97cee6d6d191a2009bd8f089398b4f3e1a.jer@gentoo
1 commit: dd364d97cee6d6d191a2009bd8f089398b4f3e1a
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 10 09:40:17 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 10 09:41:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd364d97
7
8 net-libs/nodejs: Old
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-libs/nodejs/Manifest | 1 -
14 net-libs/nodejs/nodejs-13.4.0.ebuild | 204 -----------------------------------
15 2 files changed, 205 deletions(-)
16
17 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
18 index 3b079722844..3f379c6f8ef 100644
19 --- a/net-libs/nodejs/Manifest
20 +++ b/net-libs/nodejs/Manifest
21 @@ -4,7 +4,6 @@ DIST node-v10.18.1.tar.xz 21920068 BLAKE2B 9dc0887a33f0888a347628e5bf15eb3687f15
22 DIST node-v12.13.0.tar.xz 22862096 BLAKE2B b0121f45b535bac7baa0103db538070b4beb4b40a6c871c217eebfb1abb5a7821d83d46946047b3385af182f901c0390eb85134c9201be2d03b5745b297271f8 SHA512 a7aa8b1f010ea1df122d9d7b88ee0a9d10e0d79ae2f3d18c706ac6ce36e2e2039c21ea6f3dba3a22a79ed3f6069850a8a3c463dbd64e1e8f4a9dbe8901a89cc8
23 DIST node-v12.14.0.tar.xz 23244684 BLAKE2B 0e25cbba5e256b139efd45908236f008834afdf01f57a8e84c7e55ba950e56b786cd52eba9a02986eb0e1d38cbf6df38e1cd719d7dcd8085e8c71767adf8155e SHA512 12e887709a54be911c5a81ab7b7be995247b47ebbd2954ca942f9ed8a784ae1a8e4bdb2613e5bb671196f9101d8861cd29e10650a3f0c414db4d096df94b309b
24 DIST node-v12.14.1.tar.xz 23258936 BLAKE2B 125289ce3e342c2e5e7bbb6f0b1af109f0ba8fbf2d6630f2cdc4aa31c25a3d846afe773e84daed9824360a6680a2d21378af4fbc42c6337399a143f92850a82f SHA512 2e2b6fa8351b59450ab5491b5e31dc36ce4d9be13c55a14e6e4d95a82cc8334f9fc35261a56a8843903f8021ff333a333bb4d5f24c92b5d7483d4779c3d88342
25 -DIST node-v13.4.0.tar.xz 32685788 BLAKE2B 4dfa1a6279ad26c0226a8bcdbf5e64c4fce686cacca805302f1a4dc113b60f96340fdb9968bdcd10db71a2c80007f5e0b94fe2cf78590aa9d62e5de61901ce81 SHA512 25da5a8561b6d811c78f23bd9bffa3789c4bca35270c350ed028ca6c72b59cf6e71997873d7fee024b6abc9cc1a000b0dc9bc6b6963128e198e36c8379bb2b8f
26 DIST node-v13.5.0.tar.xz 32706024 BLAKE2B 570b2d676919cb333e2f36529e886039f7abfc4f7cd705cabbb2a1115918aa9ffc9d1e54a90e8deac09488f248c007721c090ed0500f113af81b2cda2e8248be SHA512 85bad55334e6ef63be0dbf90cef856c0a0835aa1b32e6ffc418b6a52f88f7ee266505f769f4204c000c766869cd85f7d914c9a3592dd52bcabdb6cb906f433e3
27 DIST node-v13.6.0.tar.xz 32706824 BLAKE2B 69e66354570e057fe215830a2d5bd157e5decfd1e58e4ead4304e0dfcf64e5adfe48503f3bf54afe2cc27df581a0f2ae79e9b730257ceb70c412bd2a47fa5603 SHA512 e7dc8356ac1b167cc32055e209f13cee82c9251440b6a6cc99b26c91f9625e11bd025cfc1c22b6ece95ea178640209a7c8700d678678b3e8bad26080aa2762c6
28 DIST node-v8.12.0.tar.xz 18310452 BLAKE2B 79634fc57cd76a97e72bab4be37da91d5eff4d13cdaa2b48e83f013885fa3590ba4a28378baf036ed26b7304bf234753d1d4014f72571496f5bb6cd5b221e5f0 SHA512 665d2dba287d78bcd723d7b4d00a6897fb996f4aa69a541e010a3dfeb2614257892117fcce7123966b1ecaddc9269a6667e0e262df693baea1f476c96de55c42
29
30 diff --git a/net-libs/nodejs/nodejs-13.4.0.ebuild b/net-libs/nodejs/nodejs-13.4.0.ebuild
31 deleted file mode 100644
32 index 559de6f5ecf..00000000000
33 --- a/net-libs/nodejs/nodejs-13.4.0.ebuild
34 +++ /dev/null
35 @@ -1,204 +0,0 @@
36 -# Copyright 1999-2020 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=7
40 -PYTHON_COMPAT=( python{2_7,3_{6,7}} )
41 -PYTHON_REQ_USE="threads(+)"
42 -inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils
43 -
44 -DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine"
45 -HOMEPAGE="https://nodejs.org/"
46 -SRC_URI="
47 - https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz
48 -"
49 -
50 -LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
51 -SLOT="0"
52 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x64-macos"
53 -IUSE="cpu_flags_x86_sse2 debug doc icu inspector +npm pax_kernel +snapshot +ssl systemtap test"
54 -REQUIRED_USE="
55 - inspector? ( icu ssl )
56 - npm? ( ssl )
57 -"
58 -
59 -RDEPEND="
60 - >=dev-libs/libuv-1.34.0:=
61 - >=net-dns/c-ares-1.15.0
62 - >=net-libs/nghttp2-1.39.2
63 - sys-libs/zlib
64 - icu? ( >=dev-libs/icu-64.2:= )
65 - ssl? ( >=dev-libs/openssl-1.1.1:0= )
66 -"
67 -BDEPEND="
68 - ${PYTHON_DEPS}
69 - systemtap? ( dev-util/systemtap )
70 - test? ( net-misc/curl )
71 - pax_kernel? ( sys-apps/elfix )
72 -"
73 -DEPEND="
74 - ${RDEPEND}
75 -"
76 -PATCHES=(
77 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
78 -)
79 -RESTRICT="test"
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 - # less verbose install output (stating the same as portage, basically)
100 - sed -i -e "/print/d" tools/install.py || die
101 -
102 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
103 - local LIBDIR=$(get_libdir)
104 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
105 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
106 -
107 - # Avoid writing a depfile, not useful
108 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
109 -
110 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
111 -
112 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
113 - # seem sandbox related either (invoking it from a sandbox works fine).
114 - # The issue is that no stdin handle is openened when asked for one.
115 - # It doesn't really belong upstream , so it'll just be removed until someone
116 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
117 - rm test/parallel/test-stdout-close-unref.js || die
118 -
119 - # debug builds. change install path, remove optimisations and override buildtype
120 - if use debug; then
121 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
122 - BUILDTYPE=Debug
123 - fi
124 -
125 - # We need to disable mprotect on two files when it builds Bug 694100.
126 - use pax_kernel && PATCHES+=( "${FILESDIR}"/${PN}-13.2.0-paxmarking.patch )
127 -
128 - default
129 -}
130 -
131 -src_configure() {
132 - xdg_environment_reset
133 -
134 - local myconf=(
135 - --shared-cares --shared-libuv --shared-nghttp2 --shared-zlib
136 - )
137 - use debug && myconf+=( --debug )
138 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
139 - use inspector || myconf+=( --without-inspector )
140 - use npm || myconf+=( --without-npm )
141 - use snapshot && myconf+=( --with-snapshot )
142 - use ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) || myconf+=( --without-ssl )
143 -
144 - local myarch=""
145 - case ${ABI} in
146 - amd64) myarch="x64";;
147 - arm) myarch="arm";;
148 - arm64) myarch="arm64";;
149 - ppc64) myarch="ppc64";;
150 - x32) myarch="x32";;
151 - x86) myarch="ia32";;
152 - *) myarch="${ABI}";;
153 - esac
154 -
155 - GYP_DEFINES="linux_use_gold_flags=0
156 - linux_use_bundled_binutils=0
157 - linux_use_bundled_gold=0" \
158 - "${EPYTHON}" configure.py \
159 - --prefix="${EPREFIX}"/usr \
160 - --dest-cpu=${myarch} \
161 - $(use_with systemtap dtrace) \
162 - "${myconf[@]}" || die
163 -}
164 -
165 -src_compile() {
166 - emake -C out
167 -}
168 -
169 -src_install() {
170 - local LIBDIR="${ED}/usr/$(get_libdir)"
171 - default
172 -
173 - pax-mark -m "${ED}"/usr/bin/node
174 -
175 - # set up a symlink structure that node-gyp expects..
176 - dodir /usr/include/node/deps/{v8,uv}
177 - dosym . /usr/include/node/src
178 - for var in deps/{uv,v8}/include; do
179 - dosym ../.. /usr/include/node/${var}
180 - done
181 -
182 - if use doc; then
183 - docinto html
184 - dodoc -r "${S}"/doc/*
185 - fi
186 -
187 - if use npm; then
188 - dodir /etc/npm
189 -
190 - # Install bash completion for `npm`
191 - # We need to temporarily replace default config path since
192 - # npm otherwise tries to write outside of the sandbox
193 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
194 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
195 - local tmp_npm_completion_file="$(emktemp)"
196 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
197 - newbashcomp "${tmp_npm_completion_file}" npm
198 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
199 -
200 - # Move man pages
201 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
202 -
203 - # Clean up
204 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
205 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
206 -
207 - local find_exp="-or -name"
208 - local find_name=()
209 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
210 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
211 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
212 - find_name+=( ${find_exp} "${match}" )
213 - done
214 -
215 - # Remove various development and/or inappropriate files and
216 - # useless docs of dependend packages.
217 - find "${LIBDIR}"/node_modules \
218 - \( -type d -name examples \) -or \( -type f \( \
219 - -iname "LICEN?E*" \
220 - "${find_name[@]}" \
221 - \) \) -exec rm -rf "{}" \;
222 - fi
223 -
224 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
225 -}
226 -
227 -src_test() {
228 - out/${BUILDTYPE}/cctest || die
229 - "${EPYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
230 -}
231 -
232 -pkg_postinst() {
233 - elog "The global npm config lives in /etc/npm. This deviates slightly"
234 - elog "from upstream which otherwise would have it live in /usr/etc/."
235 - elog ""
236 - elog "Protip: When using node-gyp to install native modules, you can"
237 - elog "avoid having to download extras by doing the following:"
238 - elog "$ node-gyp --nodedir /usr/include/node <command>"
239 -}