1 |
commit: e15a9ad1fc77128ea035e53c47b5a4fba27c18b6 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 24 08:54:08 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 24 10:53:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e15a9ad1 |
7 |
|
8 |
net-libs/nodejs: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
net-libs/nodejs/Manifest | 2 - |
13 |
net-libs/nodejs/nodejs-0.12.17.ebuild | 122 ----------------------------- |
14 |
net-libs/nodejs/nodejs-4.8.5.ebuild | 143 ---------------------------------- |
15 |
3 files changed, 267 deletions(-) |
16 |
|
17 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
18 |
index 7b7e2996d8d..d9ba6f0d9b0 100644 |
19 |
--- a/net-libs/nodejs/Manifest |
20 |
+++ b/net-libs/nodejs/Manifest |
21 |
@@ -1,6 +1,4 @@ |
22 |
-DIST node-v0.12.17.tar.gz 19938029 BLAKE2B 0118fb016c70afc9940c3b9e2fbed9fd3a56ae7fd8bff6f2ec69320f1e3a71868f7e882783871e842d163b5195628040736e679ca715ebddc6eb6a76fff1288f SHA512 86c22b17f57018083b07096beeca10e6dfa7569b3d1a25a3b12dd82796db3c9536e6136e0dd0ff62b4de116413f3722b36ce396faa46d8640f80ab09ccfcbca7 |
23 |
DIST node-v0.12.18.tar.gz 19842591 BLAKE2B f94f4de6e2875267be194580c645087a262b90da99f10d651a22838c041da07056df81204bb04ce8da083a080062509dcca4d1e3ac2250d651ead8a4cc025028 SHA512 6866608a43eb213f3b715ea0fcc28983fd959ab679c567a1b464f62acd936506f2bce88ea48a60209d8ef8d98259f4b47cd3434893eb4ff82a132775edb37b7b |
24 |
-DIST node-v4.8.5.tar.xz 13316060 BLAKE2B fb32f176b9d4add3e9695f0bee7ebd0bba66770d479b1fade572de4694566603f08875da6ff97a1904edd1156708b58670fb1c4717e213aab6ad44ae5d470f40 SHA512 64d936ca14648b5648dedb41f2ee8d39466788762d335fbfc9ce4cb7484d05b6c24ad912fb4b1579a08f466be50b129a96be700fd89cbca5e1de84baa63ddd12 |
25 |
DIST node-v4.8.7.tar.xz 13370828 BLAKE2B b1ee93a586b66f8582783b1be50667547afe4bf48038ebc0b8148db55542cbc0520ac84ef88e4a7f453cabc245f484c32dbc238c1932bbc708791ceeb5c9d2ab SHA512 25837a31023747723b146c45984a5b2096b61c0aa43cbf45fc8ff50b4bd5079bd0bc9f1dfd3fb076817448dc5537eb93ffb2f345280b7756ba93b67ad757c696 |
26 |
DIST node-v6.11.5.tar.xz 15699404 BLAKE2B ba2df91bf5ef38cedb60b42919cf56f16807e619a81876fc92a5741e49da7ec91c4239d00f549c5e80d0bb8282bb9b396dd984507916cd18d61b403a3a7cef94 SHA512 62490725ef7957294c1bddf21ef0626c7472876791210168116501255ecee58457e9de9b044e10033706243299bbfd1495efeca169596fbf26f5eeba6d8fa4c9 |
27 |
DIST node-v6.12.3.tar.xz 15767900 BLAKE2B 2a986c8099d14b199e33676e1a7d416919407558a42d14e526794baa29d8788c74a5ff47e8d2a8509a747682bea393b45e31965569a4b72976b7691f2a84e971 SHA512 dcf30bc221aa949e6ca3bd9321ac68adb05d93af0b06119b4b73bfd4cfa2c31897520d90247ac0f783946c1fc2efe77178f52225150dad4522ac9408d036a8e4 |
28 |
|
29 |
diff --git a/net-libs/nodejs/nodejs-0.12.17.ebuild b/net-libs/nodejs/nodejs-0.12.17.ebuild |
30 |
deleted file mode 100644 |
31 |
index 01b3cb2234d..00000000000 |
32 |
--- a/net-libs/nodejs/nodejs-0.12.17.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,122 +0,0 @@ |
35 |
-# Copyright 1999-2016 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=5 |
39 |
- |
40 |
-# has known failures. sigh. |
41 |
-RESTRICT="test" |
42 |
- |
43 |
-PYTHON_COMPAT=( python2_7 ) |
44 |
-PYTHON_REQ_USE="threads" |
45 |
- |
46 |
-inherit pax-utils python-single-r1 toolchain-funcs |
47 |
- |
48 |
-DESCRIPTION="Evented IO for V8 Javascript" |
49 |
-HOMEPAGE="http://nodejs.org/" |
50 |
-SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz" |
51 |
- |
52 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
53 |
-SLOT="0" |
54 |
-KEYWORDS="amd64 ~arm x86 ~x64-macos" |
55 |
-IUSE="debug icu +npm +snapshot +ssl" |
56 |
- |
57 |
-RDEPEND="icu? ( dev-libs/icu ) |
58 |
- ${PYTHON_DEPS} |
59 |
- ssl? ( dev-libs/openssl:0=[-bindist] ) |
60 |
- >=net-libs/http-parser-2.6.1 |
61 |
- >=dev-libs/libuv-1.4.2" |
62 |
-DEPEND="${RDEPEND}" |
63 |
- |
64 |
-S="${WORKDIR}/node-v${PV}" |
65 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
66 |
- |
67 |
-src_prepare() { |
68 |
- tc-export CC CXX PKG_CONFIG |
69 |
- export V=1 # Verbose build |
70 |
- export BUILDTYPE=Release |
71 |
- |
72 |
- # fix compilation on Darwin |
73 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
74 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
75 |
- |
76 |
- # make sure we use python2.* while using gyp |
77 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
78 |
- sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
79 |
- |
80 |
- # less verbose install output (stating the same as portage, basically) |
81 |
- sed -i -e "/print/d" tools/install.py || die |
82 |
- |
83 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
84 |
- local LIBDIR=$(get_libdir) |
85 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
86 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die |
87 |
- sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die |
88 |
- |
89 |
- # debug builds. change install path, remove optimisations and override buildtype |
90 |
- if use debug; then |
91 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
92 |
- BUILDTYPE=Debug |
93 |
- fi |
94 |
-} |
95 |
- |
96 |
-src_configure() { |
97 |
- local myconf=() |
98 |
- local myarch="" |
99 |
- use debug && myconf+=( --debug ) |
100 |
- use icu && myconf+=( --with-intl=system-icu ) |
101 |
- use npm || myconf+=( --without-npm ) |
102 |
- use snapshot || myconf+=( --without-snapshot ) |
103 |
- use ssl || myconf+=( --without-ssl ) |
104 |
- |
105 |
- case ${ABI} in |
106 |
- x86) myarch="ia32";; |
107 |
- amd64) myarch="x64";; |
108 |
- arm) myarch="arm";; |
109 |
- *) die "Unrecognized ARCH ${ARCH}";; |
110 |
- esac |
111 |
- |
112 |
- "${PYTHON}" configure \ |
113 |
- --prefix="${EPREFIX}"/usr \ |
114 |
- --dest-cpu=${myarch} \ |
115 |
- --shared-openssl \ |
116 |
- --shared-libuv \ |
117 |
- --shared-http-parser \ |
118 |
- --shared-zlib \ |
119 |
- --without-dtrace \ |
120 |
- "${myconf[@]}" || die |
121 |
-} |
122 |
- |
123 |
-src_compile() { |
124 |
- emake -C out mksnapshot |
125 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
126 |
- emake -C out |
127 |
-} |
128 |
- |
129 |
-src_install() { |
130 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
131 |
- emake install DESTDIR="${ED}" PREFIX=/usr |
132 |
- use npm && dodoc -r "${LIBDIR}"/node_modules/npm/html |
133 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die |
134 |
- find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete |
135 |
- |
136 |
- # set up a symlink structure that npm expects.. |
137 |
- dodir /usr/include/node/deps/{v8,uv} |
138 |
- dosym . /usr/include/node/src |
139 |
- for var in deps/{uv,v8}/include; do |
140 |
- dosym ../.. /usr/include/node/${var} |
141 |
- done |
142 |
- |
143 |
- pax-mark -m "${ED}"/usr/bin/node |
144 |
-} |
145 |
- |
146 |
-src_test() { |
147 |
- declare -xl TESTTYPE="${BUILDTYPE}" |
148 |
- "${PYTHON}" tools/test.py --mode=${TESTTYPE} -J message simple || die |
149 |
-} |
150 |
- |
151 |
-pkg_postinst() { |
152 |
- einfo "When using node-gyp to install native modules, you can avoid" |
153 |
- einfo "having to download the full tarball by doing the following:" |
154 |
- einfo "" |
155 |
- einfo "node-gyp --nodedir /usr/include/node <command>" |
156 |
-} |
157 |
|
158 |
diff --git a/net-libs/nodejs/nodejs-4.8.5.ebuild b/net-libs/nodejs/nodejs-4.8.5.ebuild |
159 |
deleted file mode 100644 |
160 |
index fa5fe76f1f0..00000000000 |
161 |
--- a/net-libs/nodejs/nodejs-4.8.5.ebuild |
162 |
+++ /dev/null |
163 |
@@ -1,143 +0,0 @@ |
164 |
-# Copyright 1999-2017 Gentoo Foundation |
165 |
-# Distributed under the terms of the GNU General Public License v2 |
166 |
- |
167 |
-EAPI=5 |
168 |
- |
169 |
-PYTHON_COMPAT=( python2_7 ) |
170 |
-PYTHON_REQ_USE="threads" |
171 |
- |
172 |
-inherit flag-o-matic pax-utils python-single-r1 toolchain-funcs |
173 |
- |
174 |
-DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
175 |
-HOMEPAGE="https://nodejs.org/" |
176 |
-SRC_URI="https://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz" |
177 |
- |
178 |
-LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT" |
179 |
-SLOT="0" |
180 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~x64-macos" |
181 |
-IUSE="cpu_flags_x86_sse2 debug icu +npm snapshot +ssl test" |
182 |
- |
183 |
-RDEPEND="icu? ( >=dev-libs/icu-55:= ) |
184 |
- npm? ( ${PYTHON_DEPS} ) |
185 |
- >=net-libs/http-parser-2.5.2:= |
186 |
- >=dev-libs/libuv-1.8.0:= |
187 |
- >=dev-libs/openssl-1.0.2g:0=[-bindist] |
188 |
- sys-libs/zlib" |
189 |
-DEPEND="${RDEPEND} |
190 |
- ${PYTHON_DEPS} |
191 |
- test? ( net-misc/curl )" |
192 |
- |
193 |
-S="${WORKDIR}/node-v${PV}" |
194 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
195 |
- |
196 |
-pkg_pretend() { |
197 |
- (use x86 && ! use cpu_flags_x86_sse2) && \ |
198 |
- die "Your CPU doesn't support the required SSE2 instruction." |
199 |
- |
200 |
- ( [[ ${MERGE_TYPE} != "binary" ]] && ! test-flag-CXX -std=c++11 ) && \ |
201 |
- die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer." |
202 |
-} |
203 |
- |
204 |
-src_prepare() { |
205 |
- tc-export CC CXX PKG_CONFIG |
206 |
- export V=1 # Verbose build |
207 |
- export BUILDTYPE=Release |
208 |
- |
209 |
- # fix compilation on Darwin |
210 |
- # https://code.google.com/p/gyp/issues/detail?id=260 |
211 |
- sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
212 |
- |
213 |
- # make sure we use python2.* while using gyp |
214 |
- sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
215 |
- sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
216 |
- |
217 |
- # less verbose install output (stating the same as portage, basically) |
218 |
- sed -i -e "/print/d" tools/install.py || die |
219 |
- |
220 |
- # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
221 |
- local LIBDIR=$(get_libdir) |
222 |
- sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
223 |
- sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die |
224 |
- sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die |
225 |
- |
226 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
227 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
228 |
- # The issue is that no stdin handle is openened when asked for one. |
229 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
230 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
231 |
- rm test/parallel/test-stdout-close-unref.js || die |
232 |
- |
233 |
- # debug builds. change install path, remove optimisations and override buildtype |
234 |
- if use debug; then |
235 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
236 |
- BUILDTYPE=Debug |
237 |
- fi |
238 |
- |
239 |
- epatch_user |
240 |
-} |
241 |
- |
242 |
-src_configure() { |
243 |
- local myarch="" |
244 |
- local myconf+=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib ) |
245 |
- use npm || myconf+=( --without-npm ) |
246 |
- use icu && myconf+=( --with-intl=system-icu ) |
247 |
- use snapshot && myconf+=( --with-snapshot ) |
248 |
- use ssl || myconf+=( --without-ssl ) |
249 |
- use debug && myconf+=( --debug ) |
250 |
- |
251 |
- case ${ABI} in |
252 |
- amd64) myarch="x64";; |
253 |
- arm) myarch="arm";; |
254 |
- arm64) myarch="arm64";; |
255 |
- ppc64) myarch="ppc64";; |
256 |
- x32) myarch="x32";; |
257 |
- x86) myarch="ia32";; |
258 |
- *) die "Unrecognized ARCH ${ARCH}";; |
259 |
- esac |
260 |
- |
261 |
- GYP_DEFINES="linux_use_gold_flags=0 |
262 |
- linux_use_bundled_binutils=0 |
263 |
- linux_use_bundled_gold=0" \ |
264 |
- "${PYTHON}" configure \ |
265 |
- --prefix="${EPREFIX}"/usr \ |
266 |
- --dest-cpu=${myarch} \ |
267 |
- --without-dtrace \ |
268 |
- "${myconf[@]}" || die |
269 |
-} |
270 |
- |
271 |
-src_compile() { |
272 |
- emake -C out mksnapshot |
273 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
274 |
- emake -C out |
275 |
-} |
276 |
- |
277 |
-src_install() { |
278 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
279 |
- emake install DESTDIR="${ED}" PREFIX=/usr |
280 |
- if use npm; then |
281 |
- dodoc -r "${LIBDIR}"/node_modules/npm/html |
282 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die |
283 |
- find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete || die |
284 |
- fi |
285 |
- |
286 |
- # set up a symlink structure that npm expects.. |
287 |
- dodir /usr/include/node/deps/{v8,uv} |
288 |
- dosym . /usr/include/node/src |
289 |
- for var in deps/{uv,v8}/include; do |
290 |
- dosym ../.. /usr/include/node/${var} |
291 |
- done |
292 |
- |
293 |
- pax-mark -m "${ED}"/usr/bin/node |
294 |
-} |
295 |
- |
296 |
-src_test() { |
297 |
- out/${BUILDTYPE}/cctest || die |
298 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
299 |
-} |
300 |
- |
301 |
-pkg_postinst() { |
302 |
- einfo "When using node-gyp to install native modules, you can avoid" |
303 |
- einfo "having to download the full tarball by doing the following:" |
304 |
- einfo "" |
305 |
- einfo "node-gyp --nodedir /usr/include/node <command>" |
306 |
-} |