Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 370967
Collapse All | Expand All

(-)a/net-libs/nodejs/nodejs-0.4.9.ebuild (-4 / +13 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.4.9.ebuild,v 1.1 2011/07/02 15:53:57 patrick Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/nodejs/nodejs-0.4.9.ebuild,v 1.1 2011/07/02 15:53:57 patrick Exp $
4
4
5
EAPI="2"
5
EAPI="3"
6
6
7
inherit eutils
7
inherit eutils
8
8
Lines 15-29 SRC_URI="http://nodejs.org/dist/node-v${PV}.tar.gz" Link Here
15
15
16
LICENSE="GPL-2"
16
LICENSE="GPL-2"
17
SLOT="0"
17
SLOT="0"
18
KEYWORDS="~x86 ~amd64"
18
KEYWORDS="x86 amd64"
19
IUSE=""
19
IUSE=""
20
20
21
DEPEND=">=dev-lang/v8-2.5.9.6-r1
21
DEPEND=">=dev-lang/v8-2.5.9.6-r1
22
	dev-libs/openssl"
22
	dev-libs/openssl
23
	=dev-lang/python-2*"
23
RDEPEND="${DEPEND}"
24
RDEPEND="${DEPEND}"
24
25
25
S=${WORKDIR}/node-v${PV}
26
S=${WORKDIR}/node-v${PV}
26
27
28
src_prepare() {
29
	cd ${S}
30
	for x in $(grep -r "/usr/bin/env python" * | cut -f1 -d":" ); do
31
		einfo "Tweaking $x for python2..."
32
		sed -e "s:/usr/bin/env python:/usr/bin/env python2:g" -i $x || die
33
	done
34
	sed -e "s/python/python2/g" -i Makefile || die
35
}
36
27
src_configure() {
37
src_configure() {
28
	# this is a waf confuserator
38
	# this is a waf confuserator
29
	./configure --shared-v8 --prefix=/usr || die
39
	./configure --shared-v8 --prefix=/usr || die
30
- 

Return to bug 370967