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/iojs: iojs-1.0.4.ebuild iojs-1.0.4-r1.ebuild ChangeLog
Date: Fri, 30 Jan 2015 03:46:33
Message-Id: 20150130034629.5F3FC10A3C@oystercatcher.gentoo.org
1 patrick 15/01/30 03:46:29
2
3 Modified: iojs-1.0.4.ebuild ChangeLog
4 Added: iojs-1.0.4-r1.ebuild
5 Log:
6 Fixes for test phase etc. by jbergstroem
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.2 net-libs/iojs/iojs-1.0.4.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-1.0.4.ebuild?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-1.0.4.ebuild?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-1.0.4.ebuild?r1=1.1&r2=1.2
16
17 Index: iojs-1.0.4.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/iojs/iojs-1.0.4.ebuild,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- iojs-1.0.4.ebuild 27 Jan 2015 03:01:33 -0000 1.1
24 +++ iojs-1.0.4.ebuild 30 Jan 2015 03:46:29 -0000 1.2
25 @@ -1,11 +1,11 @@
26 # Copyright 1999-2015 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/iojs-1.0.4.ebuild,v 1.1 2015/01/27 03:01:33 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/iojs-1.0.4.ebuild,v 1.2 2015/01/30 03:46:29 patrick Exp $
30
31 EAPI=5
32
33 # Sigh, this can't work ... silly upstream
34 -RESTRICT="test"
35 +#RESTRICT="test"
36
37 PYTHON_COMPAT=( python2_7 )
38
39
40
41
42 1.2 net-libs/iojs/ChangeLog
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?rev=1.2&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?rev=1.2&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?r1=1.1&r2=1.2
47
48 Index: ChangeLog
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v
51 retrieving revision 1.1
52 retrieving revision 1.2
53 diff -u -r1.1 -r1.2
54 --- ChangeLog 27 Jan 2015 03:01:33 -0000 1.1
55 +++ ChangeLog 30 Jan 2015 03:46:29 -0000 1.2
56 @@ -1,6 +1,12 @@
57 # ChangeLog for net-libs/iojs
58 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
59 -# $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v 1.1 2015/01/27 03:01:33 patrick Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v 1.2 2015/01/30 03:46:29 patrick Exp $
61 +
62 +*iojs-1.0.4-r1 (30 Jan 2015)
63 +
64 + 30 Jan 2015; Patrick Lauer <patrick@g.o> +iojs-1.0.4-r1.ebuild,
65 + iojs-1.0.4.ebuild:
66 + Fixes for test phase etc. by jbergstroem
67
68 *iojs-1.0.4 (27 Jan 2015)
69
70
71
72
73 1.1 net-libs/iojs/iojs-1.0.4-r1.ebuild
74
75 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-1.0.4-r1.ebuild?rev=1.1&view=markup
76 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-1.0.4-r1.ebuild?rev=1.1&content-type=text/plain
77
78 Index: iojs-1.0.4-r1.ebuild
79 ===================================================================
80 # Copyright 1999-2015 Gentoo Foundation
81 # Distributed under the terms of the GNU General Public License v2
82 # $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/iojs-1.0.4-r1.ebuild,v 1.1 2015/01/30 03:46:29 patrick Exp $
83
84 EAPI=5
85
86 PYTHON_COMPAT=( python2_7 )
87
88 MY_PV="v${PV}"
89 MY_P="${PN}-${MY_PV}"
90
91 inherit python-any-r1 pax-utils toolchain-funcs flag-o-matic
92
93 DESCRIPTION="An npm compatible platform originally based on node.js"
94 HOMEPAGE="http://iojs.org/"
95 SRC_URI="http://iojs.org/dist/${MY_PV}/${MY_P}.tar.xz"
96
97 LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
98 SLOT="0"
99 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
100 IUSE="icu +npm snapshot"
101
102 RDEPEND="!!net-libs/nodejs
103 >=dev-libs/openssl-1.0.1j"
104 DEPEND="${PYTHON_DEPS}
105 ${RDEPEND}
106 icu? ( dev-libs/icu )
107 >=net-libs/http-parser-2.4.1
108 >=dev-libs/libuv-1.2.1"
109
110 S="${WORKDIR}/${MY_P}"
111
112 pkg_pretend() {
113 if ! test-flag-CXX -std=c++11 ; then
114 die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
115 fi
116 }
117
118 src_prepare() {
119 # fix compilation on Darwin
120 # http://code.google.com/p/gyp/issues/detail?id=260
121 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
122
123 # make sure we use python2.* while using gyp
124 sed -i -e "s/python/python2/" deps/npm/node_modules/node-gyp/gyp/gyp || die
125 sed -i -e "s/|| 'python'/|| 'python2'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
126
127 # less verbose install output (stating the same as portage, basically)
128 sed -i -e "/print/d" tools/install.py || die
129
130 # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
131 local LIBDIR=$(get_libdir)
132 sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
133 sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
134 sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
135
136 # Avoid a test that I've only been able to reproduce from emerge. It doesnt
137 # seem sandbox related either (invoking it from a sandbox works fine).
138 # The issue is that no stdin handle is openened when asked for one.
139 # It doesn't really belong upstream , so it'll just be removed until someone
140 # with more gentoo-knowledge than me (jbergstroem) figures it out.
141 rm test/parallel/test-stdout-close-unref.js
142
143 tc-export CC CXX
144 export V=1
145 }
146
147 src_configure() {
148 local myconf=""
149 local myarch=""
150 ! use npm && myconf="--without-npm"
151 use icu && myconf+=" --with-intl=system-icu"
152 use snapshot && myconf+=" --with-snapshot"
153
154 case ${CHOST} in
155 i?86-*)
156 myarch="ia32"
157 myconf+=" -Dv8_target_arch=ia32" ;;
158 x86_64-*)
159 if [[ $ABI = x86 ]]; then
160 myarch="ia32"
161 elif [[ $ABI = x32 ]]; then
162 myarch="x32"
163 else
164 myarch="x64"
165 fi ;;
166 arm*-*)
167 myarch="arm"
168 ;;
169 *) die "Unrecognized CHOST: ${CHOST}"
170 esac
171
172 "${PYTHON}" configure --prefix="${EPREFIX}"/usr \
173 --shared-openssl \
174 --shared-libuv \
175 --shared-http-parser \
176 --shared-zlib \
177 --dest-cpu=${myarch} \
178 --without-dtrace ${myconf} || die
179 }
180
181 src_install() {
182 local LIBDIR="${ED}/usr/$(get_libdir)"
183 emake install DESTDIR="${D}"
184
185 use npm && dohtml -r "${LIBDIR}"/node_modules/npm/html/*
186 rm -rf "${LIBDIR}"/node_modules/npm/{doc,html}
187 rm -rf "${LIBDIR}"/dtrace
188 find "${LIBDIR}"/node_modules -type f -name "LICENSE" -delete
189
190 pax-mark -m "${ED}"/usr/bin/iojs
191 }