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.1.0.ebuild ChangeLog
Date: Fri, 06 Feb 2015 04:19:34
Message-Id: 20150206041929.DC3D711277@oystercatcher.gentoo.org
1 patrick 15/02/06 04:19:29
2
3 Modified: ChangeLog
4 Added: iojs-1.1.0.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.3 net-libs/iojs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 30 Jan 2015 03:46:29 -0000 1.2
24 +++ ChangeLog 6 Feb 2015 04:19:29 -0000 1.3
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.2 2015/01/30 03:46:29 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-libs/iojs/ChangeLog,v 1.3 2015/02/06 04:19:29 patrick Exp $
30 +
31 +*iojs-1.1.0 (06 Feb 2015)
32 +
33 + 06 Feb 2015; Patrick Lauer <patrick@g.o> +iojs-1.1.0.ebuild:
34 + Bump
35
36 *iojs-1.0.4-r1 (30 Jan 2015)
37
38
39
40
41 1.1 net-libs/iojs/iojs-1.1.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-1.1.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/iojs/iojs-1.1.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: iojs-1.1.0.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.1.0.ebuild,v 1.1 2015/02/06 04:19:29 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"
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 # Avoid a test that I've only been able to reproduce from emerge. It doesnt
105 # seem sandbox related either (invoking it from a sandbox works fine).
106 # The issue is that no stdin handle is openened when asked for one.
107 # It doesn't really belong upstream , so it'll just be removed until someone
108 # with more gentoo-knowledge than me (jbergstroem) figures it out.
109 rm test/parallel/test-stdout-close-unref.js
110
111 tc-export CC CXX
112 export V=1
113 }
114
115 src_configure() {
116 local myconf=""
117 local myarch=""
118 ! use npm && myconf="--without-npm"
119 use icu && myconf+=" --with-intl=system-icu"
120 use snapshot && myconf+=" --with-snapshot"
121
122 case ${CHOST} in
123 i?86-*)
124 myarch="ia32"
125 myconf+=" -Dv8_target_arch=ia32" ;;
126 x86_64-*)
127 if [[ $ABI = x86 ]]; then
128 myarch="ia32"
129 elif [[ $ABI = x32 ]]; then
130 myarch="x32"
131 else
132 myarch="x64"
133 fi ;;
134 arm*-*)
135 myarch="arm"
136 ;;
137 *) die "Unrecognized CHOST: ${CHOST}"
138 esac
139
140 "${PYTHON}" configure --prefix="${EPREFIX}"/usr \
141 --shared-openssl \
142 --shared-libuv \
143 --shared-http-parser \
144 --shared-zlib \
145 --dest-cpu=${myarch} \
146 --without-dtrace ${myconf} || die
147 }
148
149 src_install() {
150 local LIBDIR="${ED}/usr/$(get_libdir)"
151 emake install DESTDIR="${D}"
152
153 use npm && dohtml -r "${LIBDIR}"/node_modules/npm/html/*
154 rm -rf "${LIBDIR}"/node_modules/npm/{doc,html}
155 rm -rf "${LIBDIR}"/dtrace
156 find "${LIBDIR}"/node_modules -type f -name "LICENSE" -delete
157
158 pax-mark -m "${ED}"/usr/bin/iojs
159 }