Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/nodejs: nodejs-0.8.8-r1.ebuild nodejs-0.9.0-r2.ebuild nodejs-0.6.21-r1.ebuild ChangeLog
Date: Wed, 29 Aug 2012 08:19:35
Message-Id: 20120829081922.9A9A320B0C@flycatcher.gentoo.org
1 patrick 12/08/29 08:19:22
2
3 Modified: ChangeLog
4 Added: nodejs-0.8.8-r1.ebuild nodejs-0.9.0-r2.ebuild
5 nodejs-0.6.21-r1.ebuild
6 Log:
7 Fix for npm docs, #425520
8
9 (Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.57 net-libs/nodejs/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.57&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.57&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?r1=1.56&r2=1.57
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v
21 retrieving revision 1.56
22 retrieving revision 1.57
23 diff -u -r1.56 -r1.57
24 --- ChangeLog 23 Aug 2012 04:34:50 -0000 1.56
25 +++ ChangeLog 29 Aug 2012 08:19:22 -0000 1.57
26 @@ -1,6 +1,14 @@
27 # ChangeLog for net-libs/nodejs
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.56 2012/08/23 04:34:50 patrick Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.57 2012/08/29 08:19:22 patrick Exp $
31 +
32 +*nodejs-0.8.8-r1 (29 Aug 2012)
33 +*nodejs-0.9.0-r2 (29 Aug 2012)
34 +*nodejs-0.6.21-r1 (29 Aug 2012)
35 +
36 + 29 Aug 2012; Patrick Lauer <patrick@g.o> +nodejs-0.6.21-r1.ebuild,
37 + +nodejs-0.8.8-r1.ebuild, +nodejs-0.9.0-r2.ebuild:
38 + Fix for npm docs, #425520
39
40 *nodejs-0.8.8 (23 Aug 2012)
41
42
43
44
45 1.1 net-libs/nodejs/nodejs-0.8.8-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.8.8-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.8.8-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: nodejs-0.8.8-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2012 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.8.8-r1.ebuild,v 1.1 2012/08/29 08:19:22 patrick Exp $
55
56 EAPI=4
57
58 PYTHON_DEPEND="2"
59
60 inherit python eutils multilib pax-utils
61
62 # omgwtf
63 RESTRICT="test"
64
65 DESCRIPTION="Evented IO for V8 Javascript"
66 HOMEPAGE="http://nodejs.org/"
67 SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86 ~x64-macos"
72 IUSE=""
73
74 DEPEND=">=dev-lang/v8-3.11.10
75 dev-libs/openssl"
76 RDEPEND="${DEPEND}"
77
78 S=${WORKDIR}/node-v${PV}
79
80 pkg_setup() {
81 python_set_active_version 2
82 python_pkg_setup
83 }
84
85 src_prepare() {
86 # fix compilation on Darwin
87 # http://code.google.com/p/gyp/issues/detail?id=260
88 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
89 # Hardcoded braindamage extraction helper
90 #sed -i -e 's:wafdir = join(prefix, "lib", "node"):wafdir = "/lib/node/":' tools/node-waf || die
91 python_convert_shebangs 2 tools/node-waf || die
92 }
93
94 src_configure() {
95 # this is an autotools lookalike confuserator
96 ./configure --shared-v8 --prefix="${EPREFIX}"/usr --shared-v8-includes="${EPREFIX}"/usr/include --openssl-use-sys --shared-zlib || die
97 }
98
99 src_compile() {
100 emake || die
101 }
102
103 src_install() {
104 docompress -x /lib/node_modules/npm/man
105 local MYLIB=$(get_libdir)
106 mkdir -p "${ED}"/usr/include/node
107 mkdir -p "${ED}"/usr/bin
108 mkdir -p "${ED}"/usr/"${MYLIB}"/node_modules/npm
109 mkdir -p "${ED}"/usr/"${MYLIB}"/node
110 cp 'src/eio-emul.h' 'src/ev-emul.h' 'src/node.h' 'src/node_buffer.h' 'src/node_object_wrap.h' 'src/node_version.h' "${ED}"/usr/include/node || die "Failed to copy stuff"
111 cp -R deps/uv/include/* "${ED}"/usr/include/node || die "Failed to copy stuff"
112 cp 'out/Release/node' "${ED}"/usr/bin/node || die "Failed to copy stuff"
113 cp -R deps/npm/* "${ED}"/usr/"${MYLIB}"/node_modules/npm || die "Failed to copy stuff"
114 cp -R tools/wafadmin "${ED}"/usr/"${MYLIB}"/node/ || die "Failed to copy stuff"
115 cp 'tools/node-waf' "${ED}"/usr/bin/ || die "Failed to copy stuff"
116
117 # now add some extra stupid just because we can
118 # needs to be a symlink because of hardcoded paths ... no es bueno!
119 dosym /usr/"${MYLIB}"/node_modules/npm/bin/npm-cli.js /usr/bin/npm
120 pax-mark -m "${ED}"/usr/bin/node
121 }
122
123 src_test() {
124 emake test || die
125 }
126
127
128
129 1.1 net-libs/nodejs/nodejs-0.9.0-r2.ebuild
130
131 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.9.0-r2.ebuild?rev=1.1&view=markup
132 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.9.0-r2.ebuild?rev=1.1&content-type=text/plain
133
134 Index: nodejs-0.9.0-r2.ebuild
135 ===================================================================
136 # Copyright 1999-2012 Gentoo Foundation
137 # Distributed under the terms of the GNU General Public License v2
138 # $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.9.0-r2.ebuild,v 1.1 2012/08/29 08:19:22 patrick Exp $
139
140 EAPI=4
141
142 PYTHON_DEPEND="2"
143
144 inherit python eutils multilib pax-utils
145
146 # omgwtf
147 RESTRICT="test"
148
149 DESCRIPTION="Evented IO for V8 Javascript"
150 HOMEPAGE="http://nodejs.org/"
151 SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
152
153 LICENSE="GPL-2"
154 SLOT="0"
155 KEYWORDS="~amd64 ~x86 ~x64-macos"
156 IUSE=""
157
158 DEPEND=">=dev-lang/v8-3.11.10
159 dev-libs/openssl"
160 RDEPEND="${DEPEND}"
161
162 S=${WORKDIR}/node-v${PV}
163
164 pkg_setup() {
165 python_set_active_version 2
166 python_pkg_setup
167 }
168
169 src_prepare() {
170 # fix compilation on Darwin
171 # http://code.google.com/p/gyp/issues/detail?id=260
172 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
173 # Hardcoded braindamage extraction helper
174 #sed -i -e 's:wafdir = join(prefix, "lib", "node"):wafdir = "/lib/node/":' tools/node-waf || die
175 python_convert_shebangs 2 tools/node-waf || die
176 }
177
178 src_configure() {
179 # this is an autotools lookalike confuserator
180 ./configure --shared-v8 --prefix="${EPREFIX}"/usr --shared-v8-includes="${EPREFIX}"/usr/include --openssl-use-sys --shared-zlib || die
181 }
182
183 src_compile() {
184 emake || die
185 }
186
187 src_install() {
188 docompress -x /lib/node_modules/npm/man
189 local MYLIB=$(get_libdir)
190 mkdir -p "${ED}"/usr/include/node
191 mkdir -p "${ED}"/usr/bin
192 mkdir -p "${ED}"/usr/"${MYLIB}"/node_modules/npm
193 mkdir -p "${ED}"/usr/"${MYLIB}"/node
194 cp 'src/eio-emul.h' 'src/ev-emul.h' 'src/node.h' 'src/node_buffer.h' 'src/node_object_wrap.h' 'src/node_version.h' "${ED}"/usr/include/node || die "Failed to copy stuff"
195 cp -R deps/uv/include/* "${ED}"/usr/include/node || die "Failed to copy stuff"
196 cp 'out/Release/node' "${ED}"/usr/bin/node || die "Failed to copy stuff"
197 cp -R deps/npm/* "${ED}"/usr/"${MYLIB}"/node_modules/npm || die "Failed to copy stuff"
198 cp -R tools/wafadmin "${ED}"/usr/"${MYLIB}"/node/ || die "Failed to copy stuff"
199 cp 'tools/node-waf' "${ED}"/usr/bin/ || die "Failed to copy stuff"
200
201 # now add some extra stupid just because we can
202 # needs to be a symlink because of hardcoded paths ... no es bueno!
203 dosym /usr/"${MYLIB}"/node_modules/npm/bin/npm-cli.js /usr/bin/npm
204 pax-mark -m "${ED}"/usr/bin/node
205 }
206
207 src_test() {
208 emake test || die
209 }
210
211
212
213 1.1 net-libs/nodejs/nodejs-0.6.21-r1.ebuild
214
215 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.6.21-r1.ebuild?rev=1.1&view=markup
216 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.6.21-r1.ebuild?rev=1.1&content-type=text/plain
217
218 Index: nodejs-0.6.21-r1.ebuild
219 ===================================================================
220 # Copyright 1999-2012 Gentoo Foundation
221 # Distributed under the terms of the GNU General Public License v2
222 # $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.6.21-r1.ebuild,v 1.1 2012/08/29 08:19:22 patrick Exp $
223
224 EAPI=4
225
226 PYTHON_DEPEND="2"
227
228 inherit python eutils pax-utils
229
230 # omgwtf
231 RESTRICT="test"
232
233 DESCRIPTION="Evented IO for V8 Javascript"
234 HOMEPAGE="http://nodejs.org/"
235 SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
236
237 LICENSE="GPL-2"
238 SLOT="0"
239 KEYWORDS="~amd64 ~x86 ~x64-macos"
240 IUSE=""
241
242 DEPEND=">=dev-lang/v8-3.6.6.24
243 dev-libs/openssl"
244 RDEPEND="${DEPEND}"
245
246 S=${WORKDIR}/node-v${PV}
247
248 pkg_setup() {
249 python_set_active_version 2
250 python_pkg_setup
251 }
252
253 src_prepare() {
254 sed -i -e "/flags = \['-arch', arch\]/s/= .*$/= ''/" wscript || die
255 }
256
257 src_configure() {
258 # this is a waf confuserator
259 ./configure --shared-v8 --prefix="${EPREFIX}"/usr || die
260 }
261
262 src_compile() {
263 emake || die
264 }
265
266 src_install() {
267 docompress -x /lib/node_modules/npm/man
268 emake DESTDIR="${D}" install || die
269 pax-mark -m "${ED}"/usr/bin/node
270 }
271
272 src_test() {
273 emake test || die
274 }