Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/iojs: iojs-2.3.1.ebuild ChangeLog
Date: Thu, 25 Jun 2015 18:44:55
Message-Id: 20150625184442.B5BEFA52@oystercatcher.gentoo.org
1 mgorny 15/06/25 18:44:42
2
3 Modified: ChangeLog
4 Added: iojs-2.3.1.ebuild
5 Log:
6 Version bump with upstream fix for bug #552232. https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/153 by jbergstroem.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.22 net-libs/iojs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?rev=1.22&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?rev=1.22&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?r1=1.21&r2=1.22
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v
20 retrieving revision 1.21
21 retrieving revision 1.22
22 diff -u -r1.21 -r1.22
23 --- ChangeLog 15 Jun 2015 11:53:24 -0000 1.21
24 +++ ChangeLog 25 Jun 2015 18:44:42 -0000 1.22
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-libs/iojs
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v 1.21 2015/06/15 11:53:24 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v 1.22 2015/06/25 18:44:42 mgorny Exp $
30 +
31 +*iojs-2.3.1 (25 Jun 2015)
32 +
33 + 25 Jun 2015; Michał Górny <mgorny@g.o> +iojs-2.3.1.ebuild:
34 + Version bump with upstream fix for bug #552232. https://github.com/gentoo
35 + /gentoo-portage-rsync-mirror/pull/153 by jbergstroem.
36
37 *iojs-2.3.0 (15 Jun 2015)
38
39
40
41
42 1.1 net-libs/iojs/iojs-2.3.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-2.3.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-2.3.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: iojs-2.3.1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/iojs-2.3.1.ebuild,v 1.1 2015/06/25 18:44:42 mgorny Exp $
52
53 EAPI=5
54
55 PYTHON_COMPAT=( python2_7 )
56
57 MY_PV="v${PV}"
58 MY_P="${PN}-${MY_PV}"
59
60 inherit flag-o-matic pax-utils python-single-r1 toolchain-funcs
61
62 DESCRIPTION="An npm compatible platform originally based on node.js"
63 HOMEPAGE="http://iojs.org/"
64 SRC_URI="http://iojs.org/dist/${MY_PV}/${MY_P}.tar.xz"
65
66 LICENSE="Apache-1.1 Apache-2.0 BSD BSD-2 MIT"
67 SLOT="0"
68 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
69 IUSE="bundled-libs debug icu +npm snapshot +ssl"
70
71 RDEPEND="icu? ( dev-libs/icu )
72 ${PYTHON_DEPS}
73 !bundled-libs? (
74 >=net-libs/http-parser-2.5
75 >=dev-libs/libuv-1.6.1
76 >=dev-libs/openssl-1.0.2c[-bindist]
77 )"
78 DEPEND="${RDEPEND}
79 !!net-libs/nodejs"
80 S="${WORKDIR}/${MY_P}"
81 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
82
83 pkg_pretend() {
84 if ! test-flag-CXX -std=c++11 ; then
85 die "Your compiler doesn't support C++11. Use GCC 4.8, Clang 3.3 or newer."
86 fi
87 }
88
89 src_prepare() {
90 tc-export CC CXX PKG_CONFIG
91 export V=1 # Verbose build
92 export BUILDTYPE=Release
93
94 # fix compilation on Darwin
95 # http://code.google.com/p/gyp/issues/detail?id=260
96 sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die
97
98 # make sure we use python2.* while using gyp
99 sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
100 sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
101
102 # less verbose install output (stating the same as portage, basically)
103 sed -i -e "/print/d" tools/install.py || die
104
105 # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
106 local LIBDIR=$(get_libdir)
107 sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
108 sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
109 sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
110
111 # Avoid a test that I've only been able to reproduce from emerge. It doesnt
112 # seem sandbox related either (invoking it from a sandbox works fine).
113 # The issue is that no stdin handle is openened when asked for one.
114 # It doesn't really belong upstream , so it'll just be removed until someone
115 # with more gentoo-knowledge than me (jbergstroem) figures it out.
116 rm test/parallel/test-stdout-close-unref.js || die
117
118 # debug builds. change install path, remove optimisations and override buildtype
119 if use debug; then
120 sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die
121 BUILDTYPE=Debug
122 fi
123
124 epatch_user
125 }
126
127 src_configure() {
128 local myconf=()
129 local myarch=""
130 use bundled-libs || myconf+=( --shared-openssl --shared-libuv --shared-http-parser --shared-zlib )
131 use npm || myconf+=( --without-npm )
132 use icu && myconf+=( --with-intl=system-icu )
133 use snapshot && myconf+=( --with-snapshot )
134 use ssl || myconf+=( --without-ssl )
135 use debug && myconf+=( --debug )
136
137 case ${ABI} in
138 x86) myarch="ia32";;
139 amd64) myarch="x64";;
140 x32) myarch="x32";;
141 arm) myarch="arm";;
142 arm64) myarch="arm64";;
143 *) die "Unrecognized ARCH ${ARCH}";;
144 esac
145
146 "${PYTHON}" configure \
147 --prefix="${EPREFIX}"/usr \
148 --dest-cpu=${myarch} \
149 --without-dtrace \
150 "${myconf[@]}" || die
151 }
152
153 src_compile() {
154 emake -C out mksnapshot
155 pax-mark m "out/${BUILDTYPE}/mksnapshot"
156 emake -C out
157 }
158
159 src_install() {
160 local LIBDIR="${ED}/usr/$(get_libdir)"
161 emake install DESTDIR="${ED}" PREFIX=/usr
162 use npm && dodoc -r "${LIBDIR}"/node_modules/npm/html
163 rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die
164 find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete || die
165
166 # set up a symlink structure that npm expects..
167 dodir /usr/include/node/deps/{v8,uv}
168 dosym . /usr/include/node/src
169 for var in deps/{uv,v8}/include; do
170 dosym ../.. /usr/include/node/${var}
171 done
172
173 pax-mark -m "${ED}"/usr/bin/iojs
174 }
175
176 src_test() {
177 out/${BUILDTYPE}/cctest || die
178 declare -xl TESTTYPE="${BUILDTYPE}"
179 "${PYTHON}" tools/test.py --mode=${TESTTYPE} -J message parallel sequential || die
180 }
181
182 pkg_postinst() {
183 einfo "When using node-gyp to install native modules, you can avoid"
184 einfo "having to download the full tarball by doing the following:"
185 einfo ""
186 einfo "node-gyp --nodedir /usr/include/node <command>"
187 }