aboutsummaryrefslogblamecommitdiffstats
path: root/net-libs/nodejs/nodejs-0.6.3.ebuild
blob: 3ab4493fb0ba442cb1bead4922798aa71ed9392d (plain) (tree)

















































                                                                  
# 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
}