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