aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-11-09 16:46:06 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-11-09 18:18:31 +0100
commit352e6b2881ab93bf17c5d9416f4095bbc1924aa9 (patch)
treec13188facbe3fd48bd51bbdc86bbded31d017d01
parente13bf217d2f0071062c6728640c13b4a4de8e3b8 (diff)
downloadoverlay-352e6b2881ab93bf17c5d9416f4095bbc1924aa9.tar.gz
overlay-352e6b2881ab93bf17c5d9416f4095bbc1924aa9.tar.xz
overlay-352e6b2881ab93bf17c5d9416f4095bbc1924aa9.zip
net-libs/node: added new package
-rw-r--r--net-libs/nodejs/Manifest2
-rw-r--r--net-libs/nodejs/nodejs-0.6.0.ebuild45
2 files changed, 47 insertions, 0 deletions
diff --git a/net-libs/nodejs/Manifest b/net-libs/nodejs/Manifest
new file mode 100644
index 0000000..feaab94
--- /dev/null
+++ b/net-libs/nodejs/Manifest
@@ -0,0 +1,2 @@
+DIST node-v0.6.0.tar.gz 9242110 RMD160 9dcfb94a55352b72efc10cfa078a9047ee4e610f SHA1 731bb2d5d8235470e5e14d71549c082eba5a5b66 SHA256 1b6a34b6f2099145c44a0c20d3a5cab7c9ec063de1a195ddeda61ad55d601d7f
+EBUILD nodejs-0.6.0.ebuild 907 RMD160 697edfa4bd1982a2d004d8bfa8891ce8050c6b53 SHA1 edf53f220863267137c09d09a2599211f71d4183 SHA256 5cb06ca2bc5979924ce94ca1d9b548d744bee96923d1d299821a0f0e1c5fcd85
diff --git a/net-libs/nodejs/nodejs-0.6.0.ebuild b/net-libs/nodejs/nodejs-0.6.0.ebuild
new file mode 100644
index 0000000..2e198d8
--- /dev/null
+++ b/net-libs/nodejs/nodejs-0.6.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils python
+
+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 g
+}
+
+src_configure() {
+ # econf supplies more arguments than supported by waf-configure
+ ./configure --prefix=/usr --shared-v8
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ dodoc ChangeLog README.md AUTHORS || die
+ dodoc -r doc/api/api || die
+}