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.11.12.ebuild ChangeLog
Date: Mon, 31 Mar 2014 06:30:05
Message-Id: 20140331062958.911862005C@flycatcher.gentoo.org
1 patrick 14/03/31 06:29:58
2
3 Modified: ChangeLog
4 Added: nodejs-0.11.12.ebuild
5 Log:
6 Bump #505506
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.116 net-libs/nodejs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.116&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.116&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?r1=1.115&r2=1.116
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v
20 retrieving revision 1.115
21 retrieving revision 1.116
22 diff -u -r1.115 -r1.116
23 --- ChangeLog 14 Mar 2014 02:33:51 -0000 1.115
24 +++ ChangeLog 31 Mar 2014 06:29:58 -0000 1.116
25 @@ -1,6 +1,11 @@
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.115 2014/03/14 02:33:51 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.116 2014/03/31 06:29:58 patrick Exp $
30 +
31 +*nodejs-0.11.12 (31 Mar 2014)
32 +
33 + 31 Mar 2014; Patrick Lauer <patrick@g.o> +nodejs-0.11.12.ebuild:
34 + Bump #505506
35
36 *nodejs-0.11.11-r1 (14 Mar 2014)
37
38
39
40
41 1.1 net-libs/nodejs/nodejs-0.11.12.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.11.12.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.11.12.ebuild?rev=1.1&content-type=text/plain
45
46 Index: nodejs-0.11.12.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.11.12.ebuild,v 1.1 2014/03/31 06:29:58 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 # Use target arch detection logic, see v8-3.18 ebuilds
93 case ${CHOST} in
94 i?86-*)
95 myarch="ia32"
96 myconf+=" -Dv8_target_arch=ia32" ;;
97 x86_64-*)
98 if [[ $ABI = x86 ]] ; then
99 myarch="ia32"
100 else
101 myarch="x64"
102 fi ;;
103 arm*-*)
104 myarch="arm"
105 ;;
106 *) die "Unrecognized CHOST: ${CHOST}"
107 esac
108
109 "${PYTHON}" configure --prefix="${EPREFIX}"/usr \
110 --openssl-use-sys --shared-zlib --without-dtrace ${myconf} || die
111 }
112
113 src_compile() {
114 emake out/Makefile
115 emake -C out "mksnapshot.${myarch}"
116 pax-mark m "out/Release/mksnapshot.${myarch}"
117 emake
118 }
119
120 src_install() {
121 "${PYTHON}" tools/install.py install "${D}" /usr
122
123 use npm && dohtml -r "${ED}"/usr/lib/node_modules/npm/html/*
124 rm -rf "${ED}"/usr/lib/node_modules/npm/doc "${ED}"/usr/lib/node_modules/npm/html
125 rm -rf "${ED}"/usr/lib/dtrace
126
127 pax-mark -m "${ED}"/usr/bin/node
128 }
129
130 src_test() {
131 "${PYTHON}" tools/test.py --mode=release simple message || die
132 }