nodejs 0.2.1: fix regressions introduced by 0.2.0 -> 0.2.1 upgrade
authorKoen Kooi <koen@openembedded.org>
Thu, 16 Sep 2010 07:25:24 +0000 (09:25 +0200)
committerKoen Kooi <koen@openembedded.org>
Thu, 16 Sep 2010 07:25:24 +0000 (09:25 +0200)
please be more carefull next time!

recipes/nodejs/nodejs_0.2.1.bb

index 5479118..b2bbcc3 100644 (file)
@@ -1,7 +1,11 @@
 DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
 HOMEPAGE = "http://nodejs.org"
 LICENSE = "MIT"
+
+PR = "r1"
+
 DEPENDS = "openssl"
+
 SRC_URI = " \
   http://nodejs.org/dist/node-v${PV}.tar.gz \
   file://libev-cross-cc.patch \
@@ -9,20 +13,21 @@ SRC_URI = " \
 "
 SRC_URI[md5sum] = "c6051dd216817bf0f95bea80c42cf262"
 SRC_URI[sha256sum] = "5bb7d084b2138ce43fcb34739ed894379c450a1dd569a1c710405bc39d2861c2"
+
 S = "${WORKDIR}/node-v${PV}"
+
+# v8 errors out if you have set CCACHE
+CCACHE = ""
+
 do_configure () {
-  ./configure --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}/build/default/node ${D}${bindir}/
-  install -m 0755 ${S}/bin/node-waf ${D}${bindir}/
-  install -m 0755 ${S}/bin/node-repl ${D}${bindir}/
+do_install () {
+  DESTDIR=${D} oe_runmake install
 }
-FILES_${PN} = "${bindir}/node ${bindir}/node-repl ${bindir}/node-waf"
+