From: | "Patrick Lauer (patrick)" <patrick@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-libs/nodejs: nodejs-0.8.11.ebuild ChangeLog |
Date: | Tue, 02 Oct 2012 05:20:39 |
Message-Id: | 20121002052021.977D821600@flycatcher.gentoo.org |
1 | patrick 12/10/02 05:20:21 |
2 | |
3 | Modified: ChangeLog |
4 | Added: nodejs-0.8.11.ebuild |
5 | Log: |
6 | Bump |
7 | |
8 | (Portage version: 2.2.0_alpha128/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.59 net-libs/nodejs/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.59&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?rev=1.59&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/ChangeLog?r1=1.58&r2=1.59 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v |
20 | retrieving revision 1.58 |
21 | retrieving revision 1.59 |
22 | diff -u -r1.58 -r1.59 |
23 | --- ChangeLog 24 Sep 2012 05:06:00 -0000 1.58 |
24 | +++ ChangeLog 2 Oct 2012 05:20:21 -0000 1.59 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for net-libs/nodejs |
27 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.58 2012/09/24 05:06:00 patrick Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/ChangeLog,v 1.59 2012/10/02 05:20:21 patrick Exp $ |
30 | + |
31 | +*nodejs-0.8.11 (02 Oct 2012) |
32 | + |
33 | + 02 Oct 2012; Patrick Lauer <patrick@g.o> +nodejs-0.8.11.ebuild: |
34 | + Bump |
35 | |
36 | *nodejs-0.8.9 (24 Sep 2012) |
37 | *nodejs-0.9.1 (24 Sep 2012) |
38 | |
39 | |
40 | |
41 | 1.1 net-libs/nodejs/nodejs-0.8.11.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.8.11.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/nodejs/nodejs-0.8.11.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: nodejs-0.8.11.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2012 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.8.11.ebuild,v 1.1 2012/10/02 05:20:21 patrick Exp $ |
51 | |
52 | EAPI=4 |
53 | |
54 | PYTHON_DEPEND="2" |
55 | |
56 | inherit python eutils multilib pax-utils |
57 | |
58 | # omgwtf |
59 | RESTRICT="test" |
60 | |
61 | DESCRIPTION="Evented IO for V8 Javascript" |
62 | HOMEPAGE="http://nodejs.org/" |
63 | SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz" |
64 | |
65 | LICENSE="GPL-2" |
66 | SLOT="0" |
67 | KEYWORDS="~amd64 ~x86 ~x64-macos" |
68 | IUSE="" |
69 | |
70 | DEPEND=">=dev-lang/v8-3.11.10 |
71 | dev-libs/openssl" |
72 | RDEPEND="${DEPEND}" |
73 | |
74 | S=${WORKDIR}/node-v${PV} |
75 | |
76 | pkg_setup() { |
77 | python_set_active_version 2 |
78 | python_pkg_setup |
79 | } |
80 | |
81 | src_prepare() { |
82 | # fix compilation on Darwin |
83 | # http://code.google.com/p/gyp/issues/detail?id=260 |
84 | sed -i -e "/append('-arch/d" tools/gyp/pylib/gyp/xcode_emulation.py || die |
85 | # Hardcoded braindamage extraction helper |
86 | #sed -i -e 's:wafdir = join(prefix, "lib", "node"):wafdir = "/lib/node/":' tools/node-waf || die |
87 | python_convert_shebangs 2 tools/node-waf || die |
88 | } |
89 | |
90 | src_configure() { |
91 | # this is an autotools lookalike confuserator |
92 | ./configure --shared-v8 --prefix="${EPREFIX}"/usr --shared-v8-includes="${EPREFIX}"/usr/include --openssl-use-sys --shared-zlib || die |
93 | } |
94 | |
95 | src_compile() { |
96 | emake || die |
97 | } |
98 | |
99 | src_install() { |
100 | docompress -x /lib/node_modules/npm/man |
101 | local MYLIB=$(get_libdir) |
102 | mkdir -p "${ED}"/usr/include/node |
103 | mkdir -p "${ED}"/usr/bin |
104 | mkdir -p "${ED}"/usr/"${MYLIB}"/node_modules/npm |
105 | mkdir -p "${ED}"/usr/"${MYLIB}"/node |
106 | cp 'src/eio-emul.h' 'src/ev-emul.h' 'src/node.h' 'src/node_buffer.h' 'src/node_object_wrap.h' 'src/node_version.h' "${ED}"/usr/include/node || die "Failed to copy stuff" |
107 | cp -R deps/uv/include/* "${ED}"/usr/include/node || die "Failed to copy stuff" |
108 | cp 'out/Release/node' "${ED}"/usr/bin/node || die "Failed to copy stuff" |
109 | cp -R deps/npm/* "${ED}"/usr/"${MYLIB}"/node_modules/npm || die "Failed to copy stuff" |
110 | cp -R tools/wafadmin "${ED}"/usr/"${MYLIB}"/node/ || die "Failed to copy stuff" |
111 | cp 'tools/node-waf' "${ED}"/usr/bin/ || die "Failed to copy stuff" |
112 | |
113 | # now add some extra stupid just because we can |
114 | # needs to be a symlink because of hardcoded paths ... no es bueno! |
115 | dosym /usr/"${MYLIB}"/node_modules/npm/bin/npm-cli.js /usr/bin/npm |
116 | pax-mark -m "${ED}"/usr/bin/node |
117 | } |
118 | |
119 | src_test() { |
120 | emake test || die |
121 | } |