aboutsummaryrefslogtreecommitdiffstats
path: root/net-libs/nodejs/nodejs-0.6.4.ebuild
blob: 3ab4493fb0ba442cb1bead4922798aa71ed9392d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4
inherit eutils python

# omgwtf
RESTRICT="test"

DESCRIPTION="Evented IO for V8 Javascript"
HOMEPAGE="http://nodejs.org/"
SRC_URI="http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

PYTHON_DEPEND="2"

DEPEND=">=dev-lang/v8-3.5.10.22
	dev-libs/openssl"
RDEPEND="${DEPEND}"

S=${WORKDIR}/node-v${PV}

pkg_setup() {
	python_set_active_version 2
	python_pkg_setup
}

src_prepare() {
	ebegin "Converting python shebangs"
	python_convert_shebangs -r -q -- 2 tools/
	eend $? || die
}

src_configure() {
	# this is a waf confuserator
	./configure --prefix=/usr --shared-v8 || die
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"


	dodoc ChangeLog README.md AUTHORS || die
	dodoc -r doc/api/api || die
}