nodejs: add 0.4.0
authorEric Bénard <eric@eukrea.com>
Tue, 15 Feb 2011 20:27:22 +0000 (21:27 +0100)
committerEric Bénard <eric@eukrea.com>
Thu, 17 Feb 2011 13:41:07 +0000 (14:41 +0100)
compile tested for armv5, previous node-cross-cc_0.2.6.patch
doesn't seems anymore necessary unless I made a mistake, AJ may
you please check this point ?

Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: AJ ONeal <coolaj86@gmail.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Tested-by: AJ ONeal <coolaj86@gmail.com>
recipes/nodejs/files/libev-cross-cc_0.4.0.patch [new file with mode: 0644]
recipes/nodejs/nodejs_0.4.0.bb [new file with mode: 0644]

diff --git a/recipes/nodejs/files/libev-cross-cc_0.4.0.patch b/recipes/nodejs/files/libev-cross-cc_0.4.0.patch
new file mode 100644 (file)
index 0000000..2b9838f
--- /dev/null
@@ -0,0 +1,13 @@
+diff --git a/deps/libev/wscript b/deps/libev/wscript
+index 4f6c9a8..1796749 100644
+--- a/deps/libev/wscript
++++ b/deps/libev/wscript
+@@ -58,7 +58,7 @@ def configure(conf):
+           return 0;
+       }
+   """
+-  conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True,
++  conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=False,
+                 msg="Checking for SYS_clock_gettime")
+   have_librt = conf.check(lib='rt', uselib_store='RT')
diff --git a/recipes/nodejs/nodejs_0.4.0.bb b/recipes/nodejs/nodejs_0.4.0.bb
new file mode 100644 (file)
index 0000000..be3d23e
--- /dev/null
@@ -0,0 +1,32 @@
+DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
+HOMEPAGE = "http://nodejs.org"
+LICENSE = "MIT"
+
+DEPENDS = "openssl"
+
+SRC_URI = " \
+  http://nodejs.org/dist/node-v${PV}.tar.gz \
+  file://libev-cross-cc_${PV}.patch \
+"
+
+SRC_URI[md5sum] = "18f89256751f9b8e27dee8494f508171"
+SRC_URI[sha256sum] = "4a30bd9963373cb86a994479bdd451ab3b6f2124f0089493366315da79d3408e"
+
+S = "${WORKDIR}/node-v${PV}"
+
+# v8 errors out if you have set CCACHE
+CCACHE = ""
+
+do_configure () {
+  ./configure --prefix=${prefix} --without-snapshot
+}
+
+do_compile () {
+  make
+}
+
+do_install () {
+  DESTDIR=${D} oe_runmake install
+}
+
+BBCLASSEXTEND = "native"