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