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