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