1 |
commit: 95dcb8cbf1aede21ad8f74d48850ea9171b05e03 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 11 12:43:27 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 11 12:51:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95dcb8cb |
7 |
|
8 |
net-libs/nodejs: Old. |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
net-libs/nodejs/Manifest | 1 - |
13 |
net-libs/nodejs/nodejs-6.14.1.ebuild | 197 ----------------------------------- |
14 |
2 files changed, 198 deletions(-) |
15 |
|
16 |
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest |
17 |
index 524b68457d4..0bb68644b0a 100644 |
18 |
--- a/net-libs/nodejs/Manifest |
19 |
+++ b/net-libs/nodejs/Manifest |
20 |
@@ -4,7 +4,6 @@ DIST node-v10.9.0.tar.xz 19987812 BLAKE2B 4a5bd257cd527500b691b15d177bde53158b5e |
21 |
DIST node-v4.8.7.tar.xz 13370828 BLAKE2B b1ee93a586b66f8582783b1be50667547afe4bf48038ebc0b8148db55542cbc0520ac84ef88e4a7f453cabc245f484c32dbc238c1932bbc708791ceeb5c9d2ab SHA512 25837a31023747723b146c45984a5b2096b61c0aa43cbf45fc8ff50b4bd5079bd0bc9f1dfd3fb076817448dc5537eb93ffb2f345280b7756ba93b67ad757c696 |
22 |
DIST node-v4.9.1.tar.xz 13250164 BLAKE2B 7a689b99bb4bf507f7f21dd2c096a5766d023a8174c0f468cab37365af1920b8700da04157e1a406917790524255ef32c243a74662fd50ef7d3567d189dac9cf SHA512 690c9fdf608e5194069a10955bdd94ec87cb1c308f13bc4d2cae92fa01436ace10fadf58f2e51d477dde6c570b23edc1c71fafea79bfc9cab2903eb2fa5f87aa |
23 |
DIST node-v6.11.5.tar.xz 15699404 BLAKE2B ba2df91bf5ef38cedb60b42919cf56f16807e619a81876fc92a5741e49da7ec91c4239d00f549c5e80d0bb8282bb9b396dd984507916cd18d61b403a3a7cef94 SHA512 62490725ef7957294c1bddf21ef0626c7472876791210168116501255ecee58457e9de9b044e10033706243299bbfd1495efeca169596fbf26f5eeba6d8fa4c9 |
24 |
-DIST node-v6.14.1.tar.xz 15758180 BLAKE2B 63db5d1f73cc16f5c73012953799193cbd58da3aa92d3d48c5419d4e5c4e9126a2eb45b7e27e7396269deeca7836cac62c5f89e5d23b695a3455305739d5df90 SHA512 c1f725c76bfad914d8d607e1d0bddbb6cb75a99adcf781d12291830bc41610ede346a5ab29648d16ad8bb3031dade89f7f4e16708083b5fcda2def965f0c7d21 |
25 |
DIST node-v6.14.4.tar.xz 15842824 BLAKE2B fc56364be64fe5824e2bb50d861ebf8f58f9895f2c9c108b8df3315b127ffb2755eac85c28165ac9779adab4611ce8f5ea1a5745f43ebaa1389e82b8215c6396 SHA512 1ead0c097ec125230dd631f19a5c3ec06a1371f9ca3b392b5ad08fcc227dd0142f33ad52f96890c2c17448a4951a635b9099dfff00d7d8b3ffb59b07904d1bfa |
26 |
DIST node-v8.11.1.tar.xz 18279516 BLAKE2B b06f31571c93455d16899e3ba57d1e5835951be7a644fafbfcac9cce1bf33ed8ca47929e0a5d0df72034a6c2b967c578e3c78a2ed27ba85e41c4af1de2307293 SHA512 0ca0dead15a1623ece7f972d420dec623141a795ddd984c32ce7e92ae32ead97bb0153ebd8c1c249b91a1bd6efcef7fb313105455f66d4d181473153c4e0736f |
27 |
DIST node-v8.11.4.tar.xz 18323120 BLAKE2B 8deeb1d577ec5b8547fae79dd212d2aa92b567f249afd59f8668ee5cd323949546f744f9e42b37b4a1f2683d2589cde8842304ecd83c2a49204345dedcf1c93f SHA512 b1650148e9bdebeff639f0d313719589a9727fa620a9be46b4ceb9a60038b5c5f4f68e6e0f9806fa56e6bea03c3de1b0e5878a2548c3921dbccf8be3fe411f26 |
28 |
|
29 |
diff --git a/net-libs/nodejs/nodejs-6.14.1.ebuild b/net-libs/nodejs/nodejs-6.14.1.ebuild |
30 |
deleted file mode 100644 |
31 |
index d6ab30abab8..00000000000 |
32 |
--- a/net-libs/nodejs/nodejs-6.14.1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,197 +0,0 @@ |
35 |
-# Copyright 1999-2018 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
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 test" |
53 |
-REQUIRED_USE=" |
54 |
- ${PYTHON_REQUIRED_USE} |
55 |
- inspector? ( icu ssl ) |
56 |
-" |
57 |
- |
58 |
-RDEPEND=" |
59 |
- >=dev-libs/libuv-1.16.1:= |
60 |
- >=net-libs/http-parser-2.7.0:= |
61 |
- sys-libs/zlib |
62 |
- icu? ( >=dev-libs/icu-58.2:= ) |
63 |
- ssl? ( >=dev-libs/openssl-1.0.2n:0=[-bindist] ) |
64 |
-" |
65 |
-DEPEND=" |
66 |
- ${RDEPEND} |
67 |
- ${PYTHON_DEPS} |
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/|| 'python'/|| '${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 || die |
103 |
- sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" 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 |
- # Avoid a test that I've only been able to reproduce from emerge. It doesnt |
109 |
- # seem sandbox related either (invoking it from a sandbox works fine). |
110 |
- # The issue is that no stdin handle is openened when asked for one. |
111 |
- # It doesn't really belong upstream , so it'll just be removed until someone |
112 |
- # with more gentoo-knowledge than me (jbergstroem) figures it out. |
113 |
- rm test/parallel/test-stdout-close-unref.js || die |
114 |
- |
115 |
- # debug builds. change install path, remove optimisations and override buildtype |
116 |
- if use debug; then |
117 |
- sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
118 |
- BUILDTYPE=Debug |
119 |
- fi |
120 |
- |
121 |
- default |
122 |
-} |
123 |
- |
124 |
-src_configure() { |
125 |
- local myarch="" |
126 |
- local myconf=( --shared-libuv --shared-http-parser --shared-zlib ) |
127 |
- use debug && myconf+=( --debug ) |
128 |
- use icu && myconf+=( --with-intl=system-icu ) |
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 |
- case ${ABI} in |
135 |
- amd64) myarch="x64";; |
136 |
- arm) myarch="arm";; |
137 |
- arm64) myarch="arm64";; |
138 |
- ppc64) myarch="ppc64";; |
139 |
- x32) myarch="x32";; |
140 |
- x86) myarch="ia32";; |
141 |
- *) myarch="${ABI}";; |
142 |
- esac |
143 |
- |
144 |
- GYP_DEFINES="linux_use_gold_flags=0 |
145 |
- linux_use_bundled_binutils=0 |
146 |
- linux_use_bundled_gold=0" \ |
147 |
- "${PYTHON}" configure \ |
148 |
- --prefix="${EPREFIX}"/usr \ |
149 |
- --dest-cpu=${myarch} \ |
150 |
- --without-dtrace \ |
151 |
- "${myconf[@]}" || die |
152 |
-} |
153 |
- |
154 |
-src_compile() { |
155 |
- emake -C out mksnapshot |
156 |
- pax-mark m "out/${BUILDTYPE}/mksnapshot" |
157 |
- emake -C out |
158 |
-} |
159 |
- |
160 |
-src_install() { |
161 |
- local LIBDIR="${ED}/usr/$(get_libdir)" |
162 |
- emake install DESTDIR="${D}" |
163 |
- pax-mark -m "${ED}"usr/bin/node |
164 |
- |
165 |
- # set up a symlink structure that node-gyp expects.. |
166 |
- dodir /usr/include/node/deps/{v8,uv} |
167 |
- dosym . /usr/include/node/src |
168 |
- for var in deps/{uv,v8}/include; do |
169 |
- dosym ../.. /usr/include/node/${var} |
170 |
- done |
171 |
- |
172 |
- if use doc; then |
173 |
- # Patch docs to make them offline readable |
174 |
- for i in `grep -rl 'fonts.googleapis.com' "${S}"/out/doc/api/*`; do |
175 |
- sed -i '/fonts.googleapis.com/ d' $i; |
176 |
- done |
177 |
- # Install docs! |
178 |
- dohtml -r "${S}"/doc/* |
179 |
- fi |
180 |
- |
181 |
- if use npm; then |
182 |
- dodir /etc/npm |
183 |
- |
184 |
- # Install bash completion for `npm` |
185 |
- # We need to temporarily replace default config path since |
186 |
- # npm otherwise tries to write outside of the sandbox |
187 |
- local npm_config="usr/$(get_libdir)/node_modules/npm/lib/config/core.js" |
188 |
- sed -i -e "s|'/etc'|'${ED}/etc'|g" "${ED}/${npm_config}" || die |
189 |
- local tmp_npm_completion_file="$(emktemp)" |
190 |
- "${ED}/usr/bin/npm" completion > "${tmp_npm_completion_file}" |
191 |
- newbashcomp "${tmp_npm_completion_file}" npm |
192 |
- sed -i -e "s|'${ED}/etc'|'/etc'|g" "${ED}/${npm_config}" || die |
193 |
- |
194 |
- # Move man pages |
195 |
- doman "${LIBDIR}"/node_modules/npm/man/man{1,5,7}/* |
196 |
- |
197 |
- # Clean up |
198 |
- rm "${LIBDIR}"/node_modules/npm/{.mailmap,.npmignore,Makefile} || die |
199 |
- rm -rf "${LIBDIR}"/node_modules/npm/{doc,html,man} || die |
200 |
- |
201 |
- local find_exp="-or -name" |
202 |
- local find_name=() |
203 |
- for match in "AUTHORS*" "CHANGELOG*" "CONTRIBUT*" "README*" \ |
204 |
- ".travis.yml" ".eslint*" ".wercker.yml" ".npmignore" \ |
205 |
- "*.md" "*.markdown" "*.bat" "*.cmd"; do |
206 |
- find_name+=( ${find_exp} "${match}" ) |
207 |
- done |
208 |
- |
209 |
- # Remove various development and/or inappropriate files and |
210 |
- # useless docs of dependend packages. |
211 |
- find "${LIBDIR}"/node_modules \ |
212 |
- \( -type d -name examples \) -or \( -type f \( \ |
213 |
- -iname "LICEN?E*" \ |
214 |
- "${find_name[@]}" \ |
215 |
- \) \) -exec rm -rf "{}" \; |
216 |
- fi |
217 |
-} |
218 |
- |
219 |
-src_test() { |
220 |
- out/${BUILDTYPE}/cctest || die |
221 |
- "${PYTHON}" tools/test.py --mode=${BUILDTYPE,,} -J message parallel sequential || die |
222 |
-} |
223 |
- |
224 |
-pkg_postinst() { |
225 |
- einfo "The global npm config lives in /etc/npm. This deviates slightly" |
226 |
- einfo "from upstream which otherwise would have it live in /usr/etc/." |
227 |
- einfo "" |
228 |
- einfo "Protip: When using node-gyp to install native modules, you can" |
229 |
- einfo "avoid having to download extras by doing the following:" |
230 |
- einfo "$ node-gyp --nodedir /usr/include/node <command>" |
231 |
-} |