[oe-commits] Koen Kooi : nodejs: fix recipe

git version control git at git.openembedded.org
Tue Sep 7 18:10:15 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3967caeb51d7427980e06fd8b6e23c8fdc75e791
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3967caeb51d7427980e06fd8b6e23c8fdc75e791

Author: Koen Kooi <koen at openembedded.org>
Date:   Tue Sep  7 20:08:21 2010 +0200

nodejs: fix recipe

* fix configure
* fix do_install
* fix packaging

---

 recipes/nodejs/nodejs_0.2.0.bb |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/recipes/nodejs/nodejs_0.2.0.bb b/recipes/nodejs/nodejs_0.2.0.bb
index 83bfa2e..7dfa04e 100644
--- a/recipes/nodejs/nodejs_0.2.0.bb
+++ b/recipes/nodejs/nodejs_0.2.0.bb
@@ -1,28 +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://node-cross-cc.patch \
   file://libev-cross-cc.patch \
   file://node-dont-include-hosts-usr-include.patch \
 "
-#file://libev-arm-cross.patch \
 SRC_URI[md5sum] = "99a6dacc44b3f9c6ec376ccb446dd0b8"
 SRC_URI[sha256sum] = "3d3eff9287c9917af4044f3cef99ae5b17946710a71e83039de4fcb4b0a26631"
+
 S = "${WORKDIR}/node-v${PV}"
+
+# v8 errors out if you have set CCACHE
+CCACHE = ""
+
 do_configure () {
-  ./configure --prefix=${D} --without-snapshot
+  ./configure --prefix=${prefix} --without-snapshot
 }
+
 do_compile () {
   make
 }
-do_install () {
-  #oe_runmake install # doesn't install to correct location
 
-  # This works
-  install -d ${D}${bindir}/
-  install -m 0755 ${S}/node ${D}${bindir}/
+do_install () {
+  DESTDIR=${D} oe_runmake install
 }
-FILES_${PN} = "${bindir}/node"
+





More information about the Openembedded-commits mailing list