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