1 |
commit: 2cfd50b8d67eecbca15f0e280428a27588b55225 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 30 05:33:56 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 30 07:45:57 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cfd50b8 |
7 |
|
8 |
net-libs/nodejs: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
11 |
|
12 |
net-libs/nodejs/Manifest | 1 - |
13 |
net-libs/nodejs/nodejs-10.0.0.ebuild | 200 ----------------------------------- |
14 |
2 files changed, 201 deletions(-) |
15 |
|
16 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
17 |
index a112d93e591..d506fbcd8c8 100644 |
18 |
--- a/net-libs/nodejs/Manifest |
19 |
+++ b/net-libs/nodejs/Manifest |
20 |
@@ -1,5 +1,4 @@ |
21 |
DIST node-v0.12.18.tar.gz 19842591 BLAKE2B f94f4de6e2875267be194580c645087a262b90da99f10d651a22838c041da07056df81204bb04ce8da083a080062509dcca4d1e3ac2250d651ead8a4cc025028 SHA512 6866608a43eb213f3b715ea0fcc28983fd959ab679c567a1b464f62acd936506f2bce88ea48a60209d8ef8d98259f4b47cd3434893eb4ff82a132775edb37b7b |
22 |
-DIST node-v10.0.0.tar.xz 19248896 BLAKE2B 3ab8313e44d57a2f04442d23311a4d824a9d0b89c7d3ee06042f843ce0bde39e59c1ef2eb0d77cde4c46d649b074cf08d1109c91b0914c23b048c75f29e79727 SHA512 9d686da290f84c5fdab39cce08161787661b4df1e3e37bd242e5f5f3ff8285b6bca3ada16e155fcf0fbb9ec8ca8736dc7d02788cee2d66f6fab87c1a29048f4e |
23 |
DIST node-v10.1.0.tar.xz 19363748 BLAKE2B 931349d204764472706f44473b2ea0e1399dad84d0595cecfc2cbd71670df25f05c2c2ac77e4c18852f523d5b0cf853ca83739fc96a46e1f5e76ae51cab006c9 SHA512 f98da47849de8a50d9986d0176c39914f3993e579a3d482153cb0fceb64d7c79443fd230a80946361008e4fac58b7b99292c906961fb57ef14ccecfd1da07156 |
24 |
DIST node-v10.3.0.tar.xz 19464004 BLAKE2B 3bd88c231402728874c9c2916225d995a64e79e311d45869910192b6c46d450e12c4b20c9045bead85de24d3e46eb65793a9a886df87545836c0875c88a98cd1 SHA512 c52c798f16b69c0266014e9f53d5243d49e71af9fb411400d526a054995f0d2d2a150d31842160af0feffbd240e36dd97b870eb8c1fbacd3a7b18a143746df7e |
25 |
DIST node-v4.8.7.tar.xz 13370828 BLAKE2B b1ee93a586b66f8582783b1be50667547afe4bf48038ebc0b8148db55542cbc0520ac84ef88e4a7f453cabc245f484c32dbc238c1932bbc708791ceeb5c9d2ab SHA512 25837a31023747723b146c45984a5b2096b61c0aa43cbf45fc8ff50b4bd5079bd0bc9f1dfd3fb076817448dc5537eb93ffb2f345280b7756ba93b67ad757c696 |
26 |
|
27 |
diff --git a/net-libs/nodejs/nodejs-10.0.0.ebuild b/net-libs/nodejs/nodejs-10.0.0.ebuild |
28 |
deleted file mode 100644 |
29 |
index f2952fc3716..00000000000 |
30 |
--- a/net-libs/nodejs/nodejs-10.0.0.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,200 +0,0 @@ |
33 |
-# Copyright 1999-2018 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI=6 |
37 |
- |
38 |
-PYTHON_COMPAT=( python2_7 ) |
39 |
-PYTHON_REQ_USE="threads" |
40 |
- |
41 |
-inherit bash-completion-r1 eutils flag-o-matic pax-utils python-single-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="cpu_flags_x86_sse2 debug doc icu inspector +npm +snapshot +ssl systemtap test" |
51 |
-REQUIRED_USE=" |
52 |
- ${PYTHON_REQUIRED_USE} |
53 |
- inspector? ( icu ssl ) |
54 |
-" |
55 |
- |
56 |
-RDEPEND=" |
57 |
- >=dev-libs/libuv-1.20.2:= |
58 |
- >=net-libs/http-parser-2.8.0:= |
59 |
- >=net-libs/nghttp2-1.29.0 |
60 |
- sys-libs/zlib |
61 |
- icu? ( >=dev-libs/icu-61.1:= ) |
62 |
- ssl? ( >=dev-libs/openssl-1.1.0:0=[-bindist] ) |
63 |
-" |
64 |
-DEPEND=" |
65 |
- ${RDEPEND} |
66 |
- ${PYTHON_DEPS} |
67 |
- systemtap? ( dev-util/systemtap ) |
68 |
- test? ( net-misc/curl ) |
69 |
-" |
70 |
-S="${WORKDIR}/node-v${PV}" |
71 |
-PATCHES=( |
72 |
- "${FILESDIR}"/gentoo-global-npm-config.patch |
73 |
-) |
74 |
- |
75 |
-pkg_pretend() { |
76 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
77 |
- die "Your CPU doesn't support the required SSE2 instruction." |
78 |
- |
79 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
80 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
81 |
-} |
82 |
- |
83 |
-src_prepare() { |
84 |
- tc-export CC CXX PKG_CONFIG |
85 |
- export V=1 |
86 |
- export BUILDTYPE=Release |
87 |
- |
88 |
- # fix compilation on Darwin |
89 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
90 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
91 |
- |
92 |
- # make sure we use python2.* while using gyp |
93 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
94 |
- sed -i -e "s/|| 'python2'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
95 |
- |
96 |
- # less verbose install output (stating the same as portage, basically) |
97 |
- sed -i -e "/print/d" tools/install.py || die |
98 |
- |
99 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
100 |
- local LIBDIR=$(get_libdir) |
101 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
102 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js deps/npm/lib/npm.js || die |
103 |
- |
104 |
- # Avoid writing a depfile, not useful |
105 |
- sed -i -e "/DEPFLAGS =/d" tools/gyp/pylib/gyp/generator/make.py || die |
106 |
- |
107 |
- sed -i -e "/'-O3'/d" common.gypi deps/v8/gypfiles/toolchain.gypi || die |
108 |
- |
109 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
110 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
111 |
- # The issue is that no stdin handle is openened when asked for one. |
112 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
113 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
114 |
- rm test/parallel/test-stdout-close-unref.js || die |
115 |
- |
116 |
- # debug builds. change install path, remove optimisations and override buildtype |
117 |
- if use debug; then |
118 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
119 |
- BUILDTYPE=Debug |
120 |
- fi |
121 |
- |
122 |
- default |
123 |
-} |
124 |
- |
125 |
-src_configure() { |
126 |
- local myconf=( --shared-http-parser --shared-libuv --shared-nghttp2 --shared-zlib ) |
127 |
- use debug && myconf+=( --debug ) |
128 |
- use icu && myconf+=( --with-intl=system-icu ) || myconf+=( --with-intl=none ) |
129 |
- use inspector || myconf+=( --without-inspector ) |
130 |
- use npm || myconf+=( --without-npm ) |
131 |
- use snapshot && myconf+=( --with-snapshot ) |
132 |
- use ssl && myconf+=( --shared-openssl ) || myconf+=( --without-ssl ) |
133 |
- |
134 |
- local myarch="" |
135 |
- case ${ABI} in |
136 |
- amd64) myarch="x64";; |
137 |
- arm) myarch="arm";; |
138 |
- arm64) myarch="arm64";; |
139 |
- ppc64) myarch="ppc64";; |
140 |
- x32) myarch="x32";; |
141 |
- x86) myarch="ia32";; |
142 |
- *) myarch="${ABI}";; |
143 |
- esac |
144 |
- |
145 |
- GYP_DEFINES="linux_use_gold_flags=0 |
146 |
- linux_use_bundled_binutils=0 |
147 |
- linux_use_bundled_gold=0" \ |
148 |
- "${PYTHON}" configure \ |
149 |
- --prefix="${EPREFIX}"/usr \ |
150 |
- --dest-cpu=${myarch} \ |
151 |
- $(use_with systemtap dtrace) \ |
152 |
- "${myconf[@]}" || die |
153 |
-} |
154 |
- |
155 |
-src_compile() { |
156 |
- emake -C out mksnapshot |
157 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
158 |
- emake -C out |
159 |
-} |
160 |
- |
161 |
-src_install() { |
162 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
163 |
- emake install DESTDIR="${D}" |
164 |
- pax-mark -m "${ED}"usr/bin/node |
165 |
- |
166 |
- # set up a symlink structure that node-gyp expects.. |
167 |
- dodir /usr/include/node/deps/{v8,uv} |
168 |
- dosym . /usr/include/node/src |
169 |
- for var in deps/{uv,v8}/include; do |
170 |
- dosym ../.. /usr/include/node/${var} |
171 |
- done |
172 |
- |
173 |
- if use doc; then |
174 |
- # Patch docs to make them offline readable |
175 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
176 |
- sed -i '/fonts.googleapis.com/ d' $i; |
177 |
- done |
178 |
- # Install docs! |
179 |
- dohtml -r "${S}"/doc/* |
180 |
- fi |
181 |
- |
182 |
- if use npm; then |
183 |
- dodir /etc/npm |
184 |
- |
185 |
- # Install bash completion for `npm` |
186 |
- # We need to temporarily replace default config path since |
187 |
- # npm otherwise tries to write outside of the sandbox |
188 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
189 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
190 |
- local tmp_npm_completion_file="$(emktemp)" |
191 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
192 |
- newbashcomp "${tmp_npm_completion_file}" npm |
193 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
194 |
- |
195 |
- # Move man pages |
196 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
197 |
- |
198 |
- # Clean up |
199 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
200 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
201 |
- |
202 |
- local find_exp="-or -name" |
203 |
- local find_name=() |
204 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
205 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
206 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
207 |
- find_name+=( ${find_exp} "${match}" ) |
208 |
- done |
209 |
- |
210 |
- # Remove various development and/or inappropriate files and |
211 |
- # useless docs of dependend packages. |
212 |
- find "${LIBDIR}"/node_modules \ |
213 |
- \( -type d -name examples \) -or \( -type f \( \ |
214 |
- -iname "LICEN?E*" \ |
215 |
- "${find_name[@]}" \ |
216 |
- \) \) -exec rm -rf "{}" \; |
217 |
- fi |
218 |
-} |
219 |
- |
220 |
-src_test() { |
221 |
- out/${BUILDTYPE}/cctest || die |
222 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
223 |
-} |
224 |
- |
225 |
-pkg_postinst() { |
226 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
227 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
228 |
- einfo "" |
229 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
230 |
- einfo "avoid having to download extras by doing the following:" |
231 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
232 |
-} |