Permalink
Browse files

nodejs update

  • Loading branch information...
1 parent 73249e8 commit 37557fbd9c87460466dfa5b979ccec28daa6fce9 @angryvincent angryvincent committed Mar 26, 2012
Showing with 48 additions and 0 deletions.
  1. +1 −0 net-libs/nodejs/Manifest
  2. +47 −0 net-libs/nodejs/nodejs-0.6.14.ebuild
View
@@ -1,2 +1,3 @@
DIST node-v0.6.12.tar.gz 10452498 RMD160 83dbceeff3a03eb69c2741e259f49708c381e326 SHA1 4482e1c09e571085668e8f50d6cc04e47fd9cb2c SHA256 a16392fb83b288bd40cb64593253756a44f8111478edf5e8cc439a64622281c4
DIST node-v0.6.13.tar.gz 10757157 RMD160 1f9134e764c60557a8452445383e395160c4f877 SHA1 04379ec7651db61bb0023f151b49c4ddbb1de4ff SHA256 fc4f3ceacfd2cfc4ec75fc59d97f1f2d04947efd5e191efaddeb552df486245b
+DIST node-v0.6.14.tar.gz 10742747 RMD160 e4720eec19c3f1d80bd2bdc204cc48834f63d99a SHA1 84da327465a96c8fdfb58f351e877e417570a8fb SHA256 e41922308155c5197c2d048948ca9cd76ea5f9a51f977e1591bd93fe17d4cf1f
@@ -0,0 +1,47 @@
+EAPI="3"
+
+inherit eutils
+
+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="~*"
+IUSE=""
+
+DEPEND="dev-lang/v8
+ dev-libs/openssl
+ =dev-lang/python-2*"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/node-v${PV}
+
+src_prepare() {
+ cd ${S}
+ for x in $(grep -r "/usr/bin/env python" * | cut -f1 -d":" ); do
+ einfo "Tweaking $x for python2..."
+ sed -e "s:/usr/bin/env python:/usr/bin/env python2:g" -i $x || die
+ done
+ sed -e "s/python/python2/g" -i Makefile || die
+}
+
+src_configure() {
+ # this is a waf confuserator
+ ./configure --shared-v8 --prefix=/usr || die
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
+
+src_test() {
+ emake test || die
+}

0 comments on commit 37557fb

Please sign in to comment.