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.20.ebuild ChangeLog
Date: Tue, 01 Oct 2013 01:31:23
Message-Id: 20131001013113.3FABA2004C@flycatcher.gentoo.org
1 patrick 13/10/01 01:31:11
2
3 Modified: ChangeLog
4 Added: nodejs-0.10.20.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.107 net-libs/nodejs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.107&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.107&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?r1=1.106&r2=1.107
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v
20 retrieving revision 1.106
21 retrieving revision 1.107
22 diff -u -r1.106 -r1.107
23 --- ChangeLog 25 Sep 2013 02:42:49 -0000 1.106
24 +++ ChangeLog 1 Oct 2013 01:31:11 -0000 1.107
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/nodejs
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.106 2013/09/25 02:42:49 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.107 2013/10/01 01:31:11 patrick Exp $
30 +
31 +*nodejs-0.10.20 (01 Oct 2013)
32 +
33 + 01 Oct 2013; Patrick Lauer <patrick@g.o> +nodejs-0.10.20.ebuild:
34 + Bump
35
36 *nodejs-0.10.19 (25 Sep 2013)
37
38
39
40
41 1.1 net-libs/nodejs/nodejs-0.10.20.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.10.20.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.10.20.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nodejs-0.10.20.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.10.20.ebuild,v 1.1 2013/10/01 01:31:11 patrick Exp $
51
52 EAPI=5
53
54 # has known failures. sigh.
55 RESTRICT="test"
56
57 PYTHON_COMPAT=( python2_{6,7} )
58
59 inherit python-any-r1 pax-utils
60
61 DESCRIPTION="Evented IO for V8 Javascript"
62 HOMEPAGE="http://nodejs.org/"
63 SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"
64
65 LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
66 SLOT="0"
67 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
68 IUSE="+npm +snapshot"
69
70 RDEPEND="dev-libs/openssl"
71 DEPEND="${RDEPEND}"
72
73 S=${WORKDIR}/node-v${PV}
74
75 src_prepare() {
76 # fix compilation on Darwin
77 # http://code.google.com/p/gyp/issues/detail?id=260
78 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
79
80 # make sure we use python2.* while using gyp
81 sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
82
83 # less verbose install output (stating the same as portage, basically)
84 sed -i -e "/print/d" tools/install.py || die
85 }
86
87 src_configure() {
88 local myconf=""
89 ! use npm && myconf="--without-npm"
90 ! use snapshot && myconf="${myconf} --without-snapshot"
91
92 "${PYTHON}" configure --prefix="${EPREFIX}"/usr \
93 --openssl-use-sys --shared-zlib --without-dtrace ${myconf} || die
94 }
95
96 src_compile() {
97 emake out/Makefile
98 emake -C out mksnapshot
99 pax-mark m out/Release/mksnapshot
100 emake
101 }
102
103 src_install() {
104 "${PYTHON}" tools/install.py install "${D}"
105
106 use npm && dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
107 rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
108 rm -rf "${ED}"/usr/lib/dtrace
109
110 pax-mark -m "${ED}"/usr/bin/node
111 }
112
113 src_test() {
114 "${PYTHON}" tools/test.py --mode=release simple message || die
115 }