1 |
patrick 15/07/06 02:19:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nodejs-0.12.6.ebuild |
5 |
Removed: nodejs-0.12.5.ebuild nodejs-0.10.36.ebuild |
6 |
nodejs-0.12.3.ebuild nodejs-0.12.4-r1.ebuild |
7 |
Log: |
8 |
Bump, remove old |
9 |
|
10 |
(Portage version: 2.2.20/cvs/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
Revision Changes Path |
13 |
1.149 net-libs/nodejs/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.149&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.149&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?r1=1.148&r2=1.149 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v |
22 |
retrieving revision 1.148 |
23 |
retrieving revision 1.149 |
24 |
diff -u -r1.148 -r1.149 |
25 |
--- ChangeLog 25 Jun 2015 05:49:59 -0000 1.148 |
26 |
+++ ChangeLog 6 Jul 2015 02:19:00 -0000 1.149 |
27 |
@@ -1,6 +1,13 @@ |
28 |
# ChangeLog for net-libs/nodejs |
29 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.148 2015/06/25 05:49:59 patrick Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.149 2015/07/06 02:19:00 patrick Exp $ |
32 |
+ |
33 |
+*nodejs-0.12.6 (06 Jul 2015) |
34 |
+ |
35 |
+ 06 Jul 2015; Patrick Lauer <patrick@g.o> +nodejs-0.12.6.ebuild, |
36 |
+ -nodejs-0.10.36.ebuild, -nodejs-0.12.3.ebuild, -nodejs-0.12.4-r1.ebuild, |
37 |
+ -nodejs-0.12.5.ebuild: |
38 |
+ Bump, remove old |
39 |
|
40 |
*nodejs-0.12.5 (25 Jun 2015) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 net-libs/nodejs/nodejs-0.12.6.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.12.6.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.12.6.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: nodejs-0.12.6.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2015 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.12.6.ebuild,v 1.1 2015/07/06 02:19:00 patrick Exp $ |
55 |
|
56 |
EAPI=5 |
57 |
|
58 |
# has known failures. sigh. |
59 |
RESTRICT="test" |
60 |
|
61 |
PYTHON_COMPAT=( python2_7 ) |
62 |
PYTHON_REQ_USE="threads" |
63 |
|
64 |
inherit pax-utils python-single-r1 toolchain-funcs |
65 |
|
66 |
DESCRIPTION="Evented IO for V8 Javascript" |
67 |
HOMEPAGE="http://nodejs.org/" |
68 |
SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz" |
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="debug icu +npm +snapshot +ssl" |
74 |
|
75 |
RDEPEND="icu? ( dev-libs/icu ) |
76 |
${PYTHON_DEPS} |
77 |
ssl? ( dev-libs/openssl:0=[-bindist] ) |
78 |
>=net-libs/http-parser-2.3 |
79 |
>=dev-libs/libuv-1.4.2" |
80 |
DEPEND="${RDEPEND} |
81 |
!!net-libs/iojs" |
82 |
|
83 |
S="${WORKDIR}/node-v${PV}" |
84 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
85 |
|
86 |
src_prepare() { |
87 |
tc-export CC CXX PKG_CONFIG |
88 |
export V=1 # Verbose build |
89 |
export BUILDTYPE=Release |
90 |
|
91 |
# fix compilation on Darwin |
92 |
# http://code.google.com/p/gyp/issues/detail?id=260 |
93 |
sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
94 |
|
95 |
# make sure we use python2.* while using gyp |
96 |
sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die |
97 |
sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die |
98 |
|
99 |
# less verbose install output (stating the same as portage, basically) |
100 |
sed -i -e "/print/d" tools/install.py || die |
101 |
|
102 |
# proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504 |
103 |
local LIBDIR=$(get_libdir) |
104 |
sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die |
105 |
sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die |
106 |
sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die |
107 |
|
108 |
# debug builds. change install path, remove optimisations and override buildtype |
109 |
if use debug; then |
110 |
sed -i -e "s|out/Release/|out/Debug/|g" tools/install.py || die |
111 |
BUILDTYPE=Debug |
112 |
fi |
113 |
} |
114 |
|
115 |
src_configure() { |
116 |
local myconf=() |
117 |
local myarch="" |
118 |
use debug && myconf+=( --debug ) |
119 |
use icu && myconf+=( --with-intl=system-icu ) |
120 |
use npm || myconf+=( --without-npm ) |
121 |
use snapshot || myconf+=( --without-snapshot ) |
122 |
use ssl || myconf+=( --without-ssl ) |
123 |
|
124 |
case ${ABI} in |
125 |
x86) myarch="ia32";; |
126 |
amd64) myarch="x64";; |
127 |
arm) myarch="arm";; |
128 |
*) die "Unrecognized ARCH ${ARCH}";; |
129 |
esac |
130 |
|
131 |
"${PYTHON}" configure \ |
132 |
--prefix="${EPREFIX}"/usr \ |
133 |
--dest-cpu=${myarch} \ |
134 |
--shared-openssl \ |
135 |
--shared-libuv \ |
136 |
--shared-http-parser \ |
137 |
--shared-zlib \ |
138 |
--without-dtrace \ |
139 |
"${myconf[@]}" || die |
140 |
} |
141 |
|
142 |
src_compile() { |
143 |
emake -C out mksnapshot |
144 |
pax-mark m "out/${BUILDTYPE}/mksnapshot" |
145 |
emake -C out |
146 |
} |
147 |
|
148 |
src_install() { |
149 |
local LIBDIR="${ED}/usr/$(get_libdir)" |
150 |
emake install DESTDIR="${ED}" PREFIX=/usr |
151 |
use npm && dodoc -r "${LIBDIR}"/node_modules/npm/html |
152 |
rm -rf "${LIBDIR}"/node_modules/npm/{doc,html} || die |
153 |
find "${LIBDIR}"/node_modules -type f -name "LICENSE*" -or -name "LICENCE*" -delete |
154 |
|
155 |
# set up a symlink structure that npm expects.. |
156 |
dodir /usr/include/node/deps/{v8,uv} |
157 |
dosym . /usr/include/node/src |
158 |
for var in deps/{uv,v8}/include; do |
159 |
dosym ../.. /usr/include/node/${var} |
160 |
done |
161 |
|
162 |
pax-mark -m "${ED}"/usr/bin/node |
163 |
} |
164 |
|
165 |
src_test() { |
166 |
declare -xl TESTTYPE="${BUILDTYPE}" |
167 |
"${PYTHON}" tools/test.py --mode=${TESTTYPE} -J message simple || die |
168 |
} |
169 |
|
170 |
pkg_postinst() { |
171 |
einfo "When using node-gyp to install native modules, you can avoid" |
172 |
einfo "having to download the full tarball by doing the following:" |
173 |
einfo "" |
174 |
einfo "node-gyp --nodedir /usr/include/node <command>" |
175 |
} |