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, 07 Aug 2019 07:25:41
Message-Id: 1565162734.20d77e5b01f3d42f6e3050d52276c343fb3246c5.jer@gentoo
1 commit: 20d77e5b01f3d42f6e3050d52276c343fb3246c5
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 7 07:25:13 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 7 07:25:34 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d77e5b
7
8 net-libs/nodejs: Old
9
10 Package-Manager: Portage-2.3.71, Repoman-2.3.17
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 net-libs/nodejs/Manifest | 1 -
14 net-libs/nodejs/nodejs-12.6.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 f86050d17dc..e408a8d834e 100644
19 --- a/net-libs/nodejs/Manifest
20 +++ b/net-libs/nodejs/Manifest
21 @@ -4,7 +4,6 @@ DIST node-v10.16.0.tar.xz 21480088 BLAKE2B de91e718893aa0bb87b75225a484281370ca1
22 DIST node-v10.16.2.tar.xz 21509460 BLAKE2B dabbd7aab2929e2f238e50463daeea59a89573abf71a619a98b8718184cecec15f74ec3a772b385aeca9baf365d5cbf922b4118ef96f9dd33518e1421d2d3623 SHA512 aad6dd2f8677b38f63e04ef81917fcbf7913fe398c3b73ddde68be821e19398949c05517d9277802c55975dfd013dd4132009c92301d09ccd89920b03454153c
23 DIST node-v11.14.0.tar.xz 22106812 BLAKE2B 3a8dd9feb5916f235bf69d0610e32c1861e64f427b6de5ec27b3634268f273826f271cf5ea821042420d3b3f348124be2ce2fda13d0addea092db1338c9f95f7 SHA512 4e8033ea0f326fe5a8372c81771cd58242881ac7db905f697ce79ef9cb3ba2dfe2b94fb24a36775761c72ac531096c5e18a8574f933d76c1b652b18419b25446
24 DIST node-v11.15.0.tar.xz 22115480 BLAKE2B ed1f621e46d24051f8d84255875e7cb2c1bc0f9432a12fcc35dc5e336a71bb3e7f511146d112d1f236f9f978a68987d80331c22699479ce63b7bf30e50643219 SHA512 48270620fab3eef86c21387b316ce9054e2b0aac60a36f7fc08d18ad4a11c8d2082886ca20a455fb4a74a561d7e97c77403227ec9a83a13c47fa230b47a5af2e
25 -DIST node-v12.6.0.tar.xz 22609832 BLAKE2B cc304e0b41bd7c455d4a014b612259c5f91d897432bd1f02bd6088fcb5c7acf0c11d323b44e842bb699003b760425b0c9fd3c9a3587abba9ba25652ca1f2decb SHA512 cd6c1b9c0d1f9db6d3a413f1b437cfaff51a67e66033d2235eaacb49650fe9789cd8994cb374cc8aeccfc82f1dd6e6cc5aed1f39a751d7044a5af45c74d6013f
26 DIST node-v12.7.0.tar.xz 22657592 BLAKE2B 21e74b42769bad5aa41b08d0e96b2dc44821eef8f1dbe7a10412935f6b69d49591f6fd42a25b1a3624bb230b88eb53a5f77a231c4c6925244438c833004a0018 SHA512 314baaa0ad30b592f63ece22c87c734b794af3bd630c16306017249cbbbcd77a75f8d5073c5a17578589fd1a502cb736bc75b69e6ffb2a4cc66927c69b62a3e8
27 DIST node-v12.8.0.tar.xz 22637864 BLAKE2B 24b8469a172edcec5d53e7d6a29334f3666043f0e2a7f2c6359d9464e85350284830c29cd7c9c8fdc58cdc122c26ea5d746643c69492f4846729870f066267d0 SHA512 a85ec2385d1e4e947678c12a9097d116228d1c091f4ce45be220ccc9b5d76f86df628f7424969e1ddbbeee41fc8b5b556c5b06e7e37ed2c677572f8e7021717d
28 DIST node-v4.9.1.tar.xz 13250164 BLAKE2B 7a689b99bb4bf507f7f21dd2c096a5766d023a8174c0f468cab37365af1920b8700da04157e1a406917790524255ef32c243a74662fd50ef7d3567d189dac9cf SHA512 690c9fdf608e5194069a10955bdd94ec87cb1c308f13bc4d2cae92fa01436ace10fadf58f2e51d477dde6c570b23edc1c71fafea79bfc9cab2903eb2fa5f87aa
29
30 diff --git a/net-libs/nodejs/nodejs-12.6.0.ebuild b/net-libs/nodejs/nodejs-12.6.0.ebuild
31 deleted file mode 100644
32 index 456799802d7..00000000000
33 --- a/net-libs/nodejs/nodejs-12.6.0.ebuild
34 +++ /dev/null
35 @@ -1,208 +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-single-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="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test"
52 -REQUIRED_USE="
53 - ${PYTHON_REQUIRED_USE}
54 - inspector? ( icu 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.38.0
63 - sys-libs/zlib
64 - icu? ( >=dev-libs/icu-64.2:= )
65 - ssl? ( >=dev-libs/openssl-1.1.1:0= )
66 -"
67 -DEPEND="
68 - ${RDEPEND}
69 - ${PYTHON_DEPS}
70 - systemtap? ( dev-util/systemtap )
71 - test? ( net-misc/curl )
72 -"
73 -PATCHES=(
74 - "${FILESDIR}"/${PN}-10.3.0-global-npm-config.patch
75 - "${FILESDIR}"/${PN}-99999999-llhttp.patch
76 -)
77 -S="${WORKDIR}/node-v${PV}"
78 -
79 -pkg_pretend() {
80 - (use x86 && ! use cpu_flags_x86_sse2) && \
81 - die "Your CPU doesn't support the required SSE2 instruction."
82 -
83 - ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \
84 - die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
85 -}
86 -
87 -src_prepare() {
88 - tc-export CC CXX PKG_CONFIG
89 - export V=1
90 - export BUILDTYPE=Release
91 -
92 - # fix compilation on Darwin
93 - # https://code.google.com/p/gyp/issues/detail?id=260
94 - sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
95 -
96 - # make sure we use python2.* while using gyp
97 - sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
98 - sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || 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 - local myconf=(
131 - --shared-cares --shared-http-parser --shared-libuv --shared-nghttp2
132 - --shared-zlib
133 - )
134 - use debug && myconf+=( --debug )
135 - use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none )
136 - use inspector || myconf+=( --without-inspector )
137 - use npm || myconf+=( --without-npm )
138 - use snapshot && myconf+=( --with-snapshot )
139 - use ssl && myconf+=( --shared-openssl --openssl-use-def-ca-store ) || myconf+=( --without-ssl )
140 -
141 - local myarch=""
142 - case ${ABI} in
143 - amd64) myarch="x64";;
144 - arm) myarch="arm";;
145 - arm64) myarch="arm64";;
146 - ppc64) myarch="ppc64";;
147 - x32) myarch="x32";;
148 - x86) myarch="ia32";;
149 - *) myarch="${ABI}";;
150 - esac
151 -
152 - GYP_DEFINES="linux_use_gold_flags=0
153 - linux_use_bundled_binutils=0
154 - linux_use_bundled_gold=0" \
155 - "${PYTHON}" configure \
156 - --prefix="${EPREFIX}"/usr \
157 - --dest-cpu=${myarch} \
158 - $(use_with systemtap dtrace) \
159 - "${myconf[@]}" || die
160 -}
161 -
162 -src_compile() {
163 - emake -C out mksnapshot
164 - pax-mark m "out/${BUILDTYPE}/mksnapshot"
165 - emake -C out
166 -}
167 -
168 -src_install() {
169 - local LIBDIR="${ED}/usr/$(get_libdir)"
170 - default
171 -
172 - pax-mark -m "${ED}"usr/bin/node
173 -
174 - # set up a symlink structure that node-gyp expects..
175 - dodir /usr/include/node/deps/{v8,uv}
176 - dosym . /usr/include/node/src
177 - for var in deps/{uv,v8}/include; do
178 - dosym ../.. /usr/include/node/${var}
179 - done
180 -
181 - if use doc; then
182 - # Patch docs to make them offline readable
183 - for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do
184 - sed -i '/fonts.googleapis.com/ d' $i;
185 - done
186 - # Install docs
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 -}