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.10.26.ebuild nodejs-0.11.11.ebuild ChangeLog
Date: Wed, 26 Feb 2014 06:22:44
Message-Id: 20140226062235.76E4E2004C@flycatcher.gentoo.org
1 patrick 14/02/26 06:22:35
2
3 Modified: ChangeLog
4 Added: nodejs-0.10.26.ebuild nodejs-0.11.11.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.114 net-libs/nodejs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.114&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.114&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?r1=1.113&r2=1.114
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v
20 retrieving revision 1.113
21 retrieving revision 1.114
22 diff -u -r1.113 -r1.114
23 --- ChangeLog 8 Jan 2014 08:50:25 -0000 1.113
24 +++ ChangeLog 26 Feb 2014 06:22:35 -0000 1.114
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-libs/nodejs
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.113 2014/01/08 08:50:25 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.114 2014/02/26 06:22:35 patrick Exp $
30 +
31 +*nodejs-0.11.11 (26 Feb 2014)
32 +*nodejs-0.10.26 (26 Feb 2014)
33 +
34 + 26 Feb 2014; Patrick Lauer <patrick@g.o> +nodejs-0.10.26.ebuild,
35 + +nodejs-0.11.11.ebuild:
36 + Bump
37
38 *nodejs-0.10.24 (08 Jan 2014)
39
40
41
42
43 1.1 net-libs/nodejs/nodejs-0.10.26.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.10.26.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.10.26.ebuild?rev=1.1&content-type=text/plain
47
48 Index: nodejs-0.10.26.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.10.26.ebuild,v 1.1 2014/02/26 06:22:35 patrick Exp $
53
54 EAPI=5
55
56 # has known failures. sigh.
57 RESTRICT="test"
58
59 PYTHON_COMPAT=( python2_{6,7} )
60
61 inherit python-any-r1 pax-utils
62
63 DESCRIPTION="Evented IO for V8 Javascript"
64 HOMEPAGE="http://nodejs.org/"
65 SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
66
67 LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
68 SLOT="0"
69 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
70 IUSE="+npm +snapshot"
71
72 RDEPEND="dev-libs/openssl"
73 DEPEND="${RDEPEND}"
74
75 S=${WORKDIR}/node-v${PV}
76
77 src_prepare() {
78 # fix compilation on Darwin
79 # http://code.google.com/p/gyp/issues/detail?id=260
80 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
81
82 # make sure we use python2.* while using gyp
83 sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
84
85 # less verbose install output (stating the same as portage, basically)
86 sed -i -e "/print/d" tools/install.py || die
87 }
88
89 src_configure() {
90 local myconf=""
91 ! use npm && myconf="--without-npm"
92 ! use snapshot && myconf="${myconf} --without-snapshot"
93
94 "${PYTHON}" configure --prefix="${EPREFIX}"/usr \
95 --openssl-use-sys --shared-zlib --without-dtrace ${myconf} || die
96 }
97
98 src_compile() {
99 emake out/Makefile
100 emake -C out mksnapshot
101 pax-mark m out/Release/mksnapshot
102 emake
103 }
104
105 src_install() {
106 "${PYTHON}" tools/install.py install "${D}"
107
108 use npm && dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
109 rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
110 rm -rf "${ED}"/usr/lib/dtrace
111
112 pax-mark -m "${ED}"/usr/bin/node
113 }
114
115 src_test() {
116 "${PYTHON}" tools/test.py --mode=release simple message || die
117 }
118
119
120
121 1.1 net-libs/nodejs/nodejs-0.11.11.ebuild
122
123 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.11.11.ebuild?rev=1.1&view=markup
124 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.11.11.ebuild?rev=1.1&content-type=text/plain
125
126 Index: nodejs-0.11.11.ebuild
127 ===================================================================
128 # Copyright 1999-2014 Gentoo Foundation
129 # Distributed under the terms of the GNU General Public License v2
130 # $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.11.11.ebuild,v 1.1 2014/02/26 06:22:35 patrick Exp $
131
132 EAPI=5
133
134 # has known failures. sigh.
135 RESTRICT="test"
136
137 PYTHON_COMPAT=( python2_{6,7} )
138
139 inherit python-any-r1 pax-utils
140
141 DESCRIPTION="Evented IO for V8 Javascript"
142 HOMEPAGE="http://nodejs.org/"
143 SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
144
145 LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
146 SLOT="0"
147 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
148 IUSE="+npm"
149
150 RDEPEND="dev-libs/openssl"
151 DEPEND="${RDEPEND}"
152
153 S=${WORKDIR}/node-v${PV}
154
155 src_prepare() {
156 # fix compilation on Darwin
157 # http://code.google.com/p/gyp/issues/detail?id=260
158 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
159
160 # make sure we use python2.* while using gyp
161 sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
162
163 # less verbose install output (stating the same as portage, basically)
164 sed -i -e "/print/d" tools/install.py || die
165 }
166
167 src_configure() {
168 local myconf=""
169 ! use npm && myconf="--without-npm"
170
171 # Use target arch detection logic, see v8-3.18 ebuilds
172 case ${CHOST} in
173 i?86-*)
174 myarch="ia32"
175 myconf+=" -Dv8_target_arch=ia32" ;;
176 x86_64-*)
177 if [[ $ABI = x86 ]] ; then
178 myarch="ia32"
179 else
180 myarch="x64"
181 fi ;;
182 arm*-*)
183 myarch="arm"
184 ;;
185 *) die "Unrecognized CHOST: ${CHOST}"
186 esac
187
188 "${PYTHON}" configure --prefix="${EPREFIX}"/usr \
189 --openssl-use-sys --shared-zlib --without-dtrace ${myconf} || die
190 }
191
192 src_compile() {
193 emake out/Makefile
194 emake -C out "mksnapshot.${myarch}"
195 pax-mark m "out/Release/mksnapshot.${myarch}"
196 emake
197 }
198
199 src_install() {
200 "${PYTHON}" tools/install.py install "${D}" /usr
201
202 use npm && dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
203 rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
204 rm -rf "${ED}"/usr/lib/dtrace
205
206 pax-mark -m "${ED}"/usr/bin/node
207 }
208
209 src_test() {
210 "${PYTHON}" tools/test.py --mode=release simple message || die
211 }