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.12.2.ebuild ChangeLog
Date: Thu, 02 Apr 2015 06:23:16
Message-Id: 20150402062308.E2D10150A9@oystercatcher.gentoo.org
1 patrick 15/04/02 06:23:07
2
3 Modified: ChangeLog
4 Added: nodejs-0.12.2.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.140 net-libs/nodejs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.140&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.140&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?r1=1.139&r2=1.140
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v
20 retrieving revision 1.139
21 retrieving revision 1.140
22 diff -u -r1.139 -r1.140
23 --- ChangeLog 26 Mar 2015 04:06:51 -0000 1.139
24 +++ ChangeLog 2 Apr 2015 06:23:07 -0000 1.140
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-libs/nodejs
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.139 2015/03/26 04:06:51 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.140 2015/04/02 06:23:07 patrick Exp $
30 +
31 +*nodejs-0.12.2 (02 Apr 2015)
32 +
33 + 02 Apr 2015; Patrick Lauer <patrick@g.o> +nodejs-0.12.2.ebuild:
34 + Bump
35
36 *nodejs-0.12.1 (26 Mar 2015)
37
38
39
40
41 1.1 net-libs/nodejs/nodejs-0.12.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.12.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.12.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nodejs-0.12.2.ebuild
47 ===================================================================
48 # Copyright 1999-2015 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.12.2.ebuild,v 1.1 2015/04/02 06:23:07 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 toolchain-funcs
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"
69
70 RDEPEND="dev-libs/openssl[-bindist]
71 >=net-libs/http-parser-2.3
72 =dev-libs/libuv-1.1.0"
73 DEPEND="${PYTHON_DEPS}
74 ${RDEPEND}"
75
76 S=${WORKDIR}/node-v${PV}
77
78 src_prepare() {
79 # fix compilation on Darwin
80 # http://code.google.com/p/gyp/issues/detail?id=260
81 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
82
83 # make sure we use python2.* while using gyp
84 sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
85
86 # less verbose install output (stating the same as portage, basically)
87 sed -i -e "/print/d" tools/install.py || die
88
89 tc-export CC CXX
90 }
91
92 src_configure() {
93 local myconf=""
94 ! use npm && myconf="--without-npm"
95
96 # Use target arch detection logic, see v8-3.18 ebuilds
97 case ${CHOST} in
98 i?86-*)
99 myarch="ia32"
100 myconf+=" -Dv8_target_arch=ia32" ;;
101 x86_64-*)
102 if [[ $ABI = x86 ]] ; then
103 myarch="ia32"
104 else
105 myarch="x64"
106 fi ;;
107 arm*-*)
108 myarch="arm"
109 ;;
110 *) die "Unrecognized CHOST: ${CHOST}"
111 esac
112
113 "${PYTHON}" configure --prefix="${EPREFIX}"/usr \
114 --shared-openssl \
115 --shared-libuv \
116 --shared-http-parser \
117 --shared-zlib \
118 --without-dtrace ${myconf} || die
119 }
120
121 src_compile() {
122 local V=1
123 export V
124 emake out/Makefile
125 emake
126 }
127
128 src_install() {
129 "${PYTHON}" tools/install.py install "${D}" /usr
130
131 use npm && dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
132 rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
133 rm -rf "${ED}"/usr/lib/dtrace
134
135 pax-mark -m "${ED}"/usr/bin/node
136 }
137
138 src_test() {
139 "${PYTHON}" tools/test.py --mode=release simple message || die
140 }