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: Wed, 19 Feb 2020 10:40:39
Message-Id: 1582108833.7cbd72bf1019da6edb6277aaad4988279407aac1.jer@gentoo
1 commit: 7cbd72bf1019da6edb6277aaad4988279407aac1
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 19 10:39:45 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 19 10:40:33 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cbd72bf
7
8 net-libs/nodejs: Old
9
10 Package-Manager: Portage-2.3.89, 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-12.15.0.ebuild | 208 ----------------------------------
15 2 files changed, 209 deletions(-)
16
17 diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
18 index b27b509db1b..b508171a8fb 100644
19 --- a/net-libs/nodejs/Manifest
20 +++ b/net-libs/nodejs/Manifest
21 @@ -1,7 +1,6 @@
22 DIST node-v10.18.0.tar.xz 21913328 BLAKE2B 84b0b5157671dcc3e96bb2cfd11e085251fd2942c03b27491f712f5603797bab7503d8f7c0eb45ca8e348b20a0555c1767d4d1964fff474c8590a47eb01523a5 SHA512 8fc9062e150af6f054f1ebebbdf67151b16f14bcca9cbb35338a4c7fcd7fa1c3f05c4a7ace12d4153180cec0007a195cbc94942c4d04c3895384dc18951d2c1c
23 DIST node-v10.19.0.tar.xz 21906168 BLAKE2B 395504ef3befa47d8b967114e019e6a76c799871e7eb21e2c6c0453655ffa07f17f42209daddeb5417342cfbad71ba1a35ae15a2d210b692bc60be270c2fc415 SHA512 512efc58415ed789938c434af131d76bdd51772cac9f7e380afaa79d83cc9c433a979068fc7272adba6ba6551d195267978e1fc819236926b0d1fd6cf91c5eee
24 DIST node-v12.14.0.tar.xz 23244684 BLAKE2B 0e25cbba5e256b139efd45908236f008834afdf01f57a8e84c7e55ba950e56b786cd52eba9a02986eb0e1d38cbf6df38e1cd719d7dcd8085e8c71767adf8155e SHA512 12e887709a54be911c5a81ab7b7be995247b47ebbd2954ca942f9ed8a784ae1a8e4bdb2613e5bb671196f9101d8861cd29e10650a3f0c414db4d096df94b309b
25 -DIST node-v12.15.0.tar.xz 23271600 BLAKE2B 20e31e2ecb6352f6fa9e2c60fc505046034434e287e827edd5e0b091c4d5e124b681ba178e1669db26ab3d1b588e3b0894595e9cd1fa46d560f7100d8ab7e1c1 SHA512 40cc5fc252e8939856886cd57cad50df11eedc37de8e50b1b2d49a2e7439d1f4bbba8de90efc030a659919106eca72facf8b31280323fc4803bed9a175ffbbfa
26 DIST node-v12.16.0.tar.xz 23487084 BLAKE2B 067668ca5af6c35082c3075b4baca256ce656ccf0ac68782a4885bbd2e0ef13108bd72b8b9831ef32f075e4be99fc52b1ce35920cd0db6f10a562a84912cdbd0 SHA512 e0aa45498ffd670052853bae1edfda1a34b291c48232f8a0a58ac329215fb3d0250211ec6dc06fa50fc654e7080028eaf3cc00a3722971a5969054c4cf277f4e
27 DIST node-v12.16.1.tar.xz 23481768 BLAKE2B 29371b952c14907778c064269108f1da5e3818c32773e73090c61edcd07190c418189db6a505987ca71f99bb868880e297de5d2181b9a880774eaaf515985f26 SHA512 fe1e9fabb6fe52e3bc4275b33e6c5e4a761550b04964c0ae7dbef7172f5d415207bb2985751d068e357ce45a0ba414b07c0abd1531ef839b9463e98eeae8f9a4
28 DIST node-v13.8.0.tar.xz 32745596 BLAKE2B 14bf82e8cecde1a4125c7c00c4c9e613c1dbc5bb0241b20f4d30cb8d172612d5a8c362ac786ae516baf9553d5a9c3053414b269fb040cebb664f09096a57985c SHA512 b50d79f029bc04caf193f137b7b3d03f1e1ec9252712015cab2efdeef92bc3176cf7eb36e835cda6221950792e516f9c1894cd2c480e082106e07a11aa1d0761
29
30 diff --git a/net-libs/nodejs/nodejs-12.15.0.ebuild b/net-libs/nodejs/nodejs-12.15.0.ebuild
31 deleted file mode 100644
32 index 5d35c32b430..00000000000
33 --- a/net-libs/nodejs/nodejs-12.15.0.ebuild
34 +++ /dev/null
35 @@ -1,208 +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=( python3_{6,7} )
41 -PYTHON_REQ_USE="threads(+)"
42 -inherit bash-completion-r1 eutils 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 +snapshot +ssl systemtap test"
54 -REQUIRED_USE="
55 - inspector? ( icu ssl )
56 - npm? ( ssl )
57 -"
58 -
59 -RDEPEND="
60 - >=dev-libs/libuv-1.33.1:=
61 - >=net-dns/c-ares-1.15.0
62 - >=net-libs/http-parser-2.9.3:=
63 - >=net-libs/nghttp2-1.40.0
64 - sys-libs/zlib
65 - icu? ( >=dev-libs/icu-64.2:= )
66 - ssl? ( >=dev-libs/openssl-1.1.1:0= )
67 -"
68 -BDEPEND="
69 - ${PYTHON_DEPS}
70 - systemtap? ( dev-util/systemtap )
71 - test? ( net-misc/curl )
72 -"
73 -DEPEND="
74 - ${RDEPEND}
75 -"
76 -PATCHES=(
77 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
78 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
79 -)
80 -RESTRICT="test"
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 - # less verbose install output (stating the same as portage, basically)
101 - sed -i -e "/print/d" tools/install.py || die
102 -
103 - # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
104 - local LIBDIR=$(get_libdir)
105 - sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
106 - sed -i -e "s/'lib'/'${LIBDIR}'/" deps/npm/lib/npm.js || die
107 -
108 - # Avoid writing a depfile, not useful
109 - sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die
110 -
111 - sed -i -e "/'-O3'/d" common.gypi node.gypi || die
112 -
113 - # Avoid a test that I've only been able to reproduce from emerge. It doesnt
114 - # seem sandbox related either (invoking it from a sandbox works fine).
115 - # The issue is that no stdin handle is openened when asked for one.
116 - # It doesn't really belong upstream , so it'll just be removed until someone
117 - # with more gentoo-knowledge than me (jbergstroem) figures it out.
118 - rm test/parallel/test-stdout-close-unref.js || die
119 -
120 - # debug builds. change install path, remove optimisations and override buildtype
121 - if use debug; then
122 - sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
123 - BUILDTYPE=Debug
124 - fi
125 -
126 - default
127 -}
128 -
129 -src_configure() {
130 - xdg_environment_reset
131 -
132 - local myconf=(
133 - --shared-cares
134 - --shared-http-parser
135 - --shared-libuv
136 - --shared-nghttp2
137 - --shared-zlib
138 - )
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+=( --without-node-snapshot )
144 - use ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) || 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 - "${EPYTHON}" configure.py \
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_install() {
174 - local LIBDIR="${ED}/usr/$(get_libdir)"
175 - default
176 -
177 - pax-mark -m "${ED}"/usr/bin/node
178 -
179 - # set up a symlink structure that node-gyp expects..
180 - dodir /usr/include/node/deps/{v8,uv}
181 - dosym . /usr/include/node/src
182 - for var in deps/{uv,v8}/include; do
183 - dosym ../.. /usr/include/node/${var}
184 - done
185 -
186 - if use doc; then
187 - docinto html
188 - dodoc -r "${S}"/doc/*
189 - fi
190 -
191 - if use npm; then
192 - dodir /etc/npm
193 -
194 - # Install bash completion for `npm`
195 - # We need to temporarily replace default config path since
196 - # npm otherwise tries to write outside of the sandbox
197 - local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js"
198 - sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die
199 - local tmp_npm_completion_file="$(emktemp)"
200 - "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}"
201 - newbashcomp "${tmp_npm_completion_file}" npm
202 - sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die
203 -
204 - # Move man pages
205 - doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/*
206 -
207 - # Clean up
208 - rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die
209 - rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die
210 -
211 - local find_exp="-or -name"
212 - local find_name=()
213 - for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \
214 - ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \
215 - "*.md" "*.markdown" "*.bat" "*.cmd"; do
216 - find_name+=( ${find_exp} "${match}" )
217 - done
218 -
219 - # Remove various development and/or inappropriate files and
220 - # useless docs of dependend packages.
221 - find "${LIBDIR}"/node_modules \
222 - \( -type d -name examples \) -or \( -type f \( \
223 - -iname "LICEN?E*" \
224 - "${find_name[@]}" \
225 - \) \) -exec rm -rf "{}" \;
226 - fi
227 -
228 - mv "${ED}"/usr/share/doc/node "${ED}"/usr/share/doc/${PF} || die
229 -}
230 -
231 -src_test() {
232 - out/${BUILDTYPE}/cctest || die
233 - "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die
234 -}
235 -
236 -pkg_postinst() {
237 - elog "The global npm config lives in /etc/npm. This deviates slightly"
238 - elog "from upstream which otherwise would have it live in /usr/etc/."
239 - elog ""
240 - elog "Protip: When using node-gyp to install native modules, you can"
241 - elog "avoid having to download extras by doing the following:"
242 - elog "$ node-gyp --nodedir /usr/include/node <command>"
243 -}