diff --git a/conf/machine/smarct335x.conf b/conf/machine/smarct335x.conf index cd4f85e..26cd640 100755 --- a/conf/machine/smarct335x.conf +++ b/conf/machine/smarct335x.conf @@ -35,6 +35,9 @@ PREFERRED_VERSION_ti-wifi-utils_smarct335x = "RLS.R4.12" UBOOT_ARCH = "arm" UBOOT_MACHINE = "smarct335x_evm_uart3_config" +# Specify Nodejs version if you would like Cloud9 to be build +PREFERRED_VERSION_nodejs-native_smarct335x = "0.8.21" + # For built-in LCD by default XSERVER += "xf86-input-tslib" diff --git a/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch b/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch new file mode 100644 index 0000000..b32311a --- /dev/null +++ b/recipes-devtools/cloud9/cloud9/0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch @@ -0,0 +1,29 @@ +From ac1953d04f3f26d6aa5d8f53a9397d3ba0e96fa3 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Fri, 11 May 2012 15:23:02 +0000 +Subject: [PATCH] ide: use 'node' as interpreter for sketches instead of + argv[0] + +This enables running scripts with node 0.6.x instead of 0.4.x + +Signed-off-by: root +--- + server/cloud9/ide.js | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/server/cloud9/ide.js b/server/cloud9/ide.js +index ce782f5..6c4e0f7 100644 +--- a/server/cloud9/ide.js ++++ b/server/cloud9/ide.js +@@ -53,7 +53,7 @@ var Ide = module.exports = function(options, httpServer, exts, socket) { + }; + + this.$users = {}; +- this.nodeCmd = process.argv[0]; ++ this.nodeCmd = "node"; + + var davOptions = { + node: this.options.mountDir, +-- +1.7.7 + diff --git a/recipes-devtools/cloud9/cloud9/cloud9-avahi.service b/recipes-devtools/cloud9/cloud9/cloud9-avahi.service new file mode 100644 index 0000000..cb9b6e2 --- /dev/null +++ b/recipes-devtools/cloud9/cloud9/cloud9-avahi.service @@ -0,0 +1,10 @@ + + + + + Cloud9 IDE on %h + + _http._tcp + 3000 + + diff --git a/recipes-devtools/cloud9/cloud9/index.js b/recipes-devtools/cloud9/cloud9/index.js new file mode 100644 index 0000000..e40dd6d --- /dev/null +++ b/recipes-devtools/cloud9/cloud9/index.js @@ -0,0 +1,2 @@ +var o3 = require('./o3.js') +module.exports = o3.xml; \ No newline at end of file diff --git a/recipes-devtools/cloud9/cloud9_0.6.bb b/recipes-devtools/cloud9/cloud9_0.6.bb new file mode 100644 index 0000000..9f27735 --- /dev/null +++ b/recipes-devtools/cloud9/cloud9_0.6.bb @@ -0,0 +1,107 @@ +DESCRIPTION = "Meet Cloud9, development-as-a-service for Javascripters and other developers" +HOMEPAGE = "http://c9.io" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4784c3bcff601fd8f9515f52a11e7018" + +PR = "r3" + +DEPENDS = "libxml2 nodejs-native" + +# The original sass repo has been moved + +SRC_URI = "git://github.com/ajaxorg/cloud9.git;name=cloud9ide \ + git://github.com/ajaxorg/o3;destsuffix=o3;name=o3 \ + git://github.com/ajaxorg/ace.git;destsuffix=git/support/ace;name=ace \ + git://github.com/ajaxorg/ace.wiki.git;destsuffix=git/support/ace/doc/wiki;name=acewiki \ + git://github.com/ajaxorg/apf.git;destsuffix=git/support/apf;name=apf \ + git://github.com/ajaxorg/async.js.git;destsuffix=git/support/asyncjs;name=asyncjs \ + git://github.com/ajaxorg/connect.git;destsuffix=git/support/connect;name=connect \ + git://github.com/jashkenas/coffee-script.git;destsuffix=git/support/connect/support/coffee-script;name=coffee-script \ + git://github.com/visionmedia/expresso.git;destsuffix=git/support/connect/support/expresso;name=expresso \ + git://github.com/visionmedia/node-jscoverage.git;destsuffix=git/support/connect/support/expresso/deps/jscoverage;name=jscoverage \ + git://github.com/cloudhead/less.js.git;destsuffix=git/support/connect/support/less;name=less \ + git://github.com/matehat/sass.js.git;destsuffix=git/support/connect/support/sass;name=sass \ + git://github.com/ajaxorg/jsDAV.git;destsuffix=git/support/jsdav;name=jsdav \ + git://github.com/fjakobs/async.js.git;destsuffix=git/support/jsdav/support/async.js;name=async-js \ + git://github.com/felixge/node-formidable.git;destsuffix=git/support/jsdav/support/formidable;name=formidable \ + git://github.com/ajaxorg/jsftp.git;destsuffix=git/support/jsdav/support/jsftp;name=jsftp \ + git://github.com/Gozala/streamer.git;destsuffix=git/support/jsdav/support/jsftp/support/streamer;name=streamer \ + git://github.com/ajaxorg/node-sftp.git;destsuffix=git/support/jsdav/support/node-sftp;name=sftp \ + git://github.com/ajaxorg/lib-v8debug.git;destsuffix=git/support/lib-v8debug;name=lib-v8debug \ + git://github.com/ajaxorg/socket.io.git;destsuffix=git/support/socket.io;name=socketio \ + git://github.com/LearnBoost/socket.io-client.git;destsuffix=git/support/socket.io-client;name=socketio-client \ + git://github.com/ajaxorg/treehugger.git;destsuffix=git/support/treehugger;name=treehugger \ + git://github.com/ajaxorg/UglifyJS.git;destsuffix=git/support/uglify-js;name=uglify-js \ + file://index.js \ + file://cloud9-avahi.service \ + file://0001-ide-use-node-as-interpreter-for-sketches-instead-of-.patch \ + " + +SRCREV_cloud9ide = "c4e2574896a22bb749f0500b25f41c888d346bed" +SRCREV_o3 = "302cd3a6d5039f53a9fa3932bed88b53281c1e1e" +SRCREV_ace = "0fc5392cbe46fb134052c3065a238ad8e3b31cfd" +SRCREV_acewiki = "d2a65d0addc2e5ab922bbff9cb6022a4652b4f13" +SRCREV_apf = "2560b762b2b0e5a8b46f8a4062f927a9a9d239f4" +SRCREV_asyncjs = "d36ead408e2959b1e99572114ef3a1b6a48c1072" +SRCREV_connect = "6bec95b51f2286b942bc7f340d62d816bcdc13d4" +SRCREV_coffee-script = "a53c104db16d3ac9d13cf9f16834edec250b9749" +SRCREV_expresso = "7f10ab7fa655299b4e2f519065b0495e6ac34ef2" +SRCREV_jscoverage = "0d4608a6b4275b020ba665389aa75897d5d4a584" +SRCREV_less = "a2807288008587b95c6c2f8ba5cac16f1bcab98f" +SRCREV_sass = "4dfd4c699e7a8baf226215ab044854c4507f4420" +SRCREV_jsdav = "f04ebf3d012cc8aeabfcfb2b8fab8966d52929e9" +SRCREV_async-js = "92fb710a70efd3cdc2376ebfba71a7fb3a4f1651" +SRCREV_formidable = "a37292d4b7d6d76a38909ed670334c9068d40871" +SRCREV_jsftp = "e3f10c8927347c170cdd0150ef38e18272acf942" +SRCREV_streamer = "1a7f75d4065819171ac91a09974199b932dbe17d" +SRCREV_sftp = "a0539345134970d7535a19cb2608e3d1bc119d71" +SRCREV_lib-v8debug = "7c11897f4bc77c7275c2b6dff5becc72ac018662" +SRCREV_socketio = "735d5239b325df2ba67d2b9bb4ec32442283bc06" +SRCREV_socketio-client = "4375ef1344ecb8ad75a3848a00af6b391822f86b" +SRCREV_treehugger = "436d0d6dd0ce43782e6be08ad12c356730626996" +SRCREV_uglify-js = "941c845c4a01e4e47a158458fe846eb36d0828ad" + +SRCREV_FORMAT = "cloud9ide" + +S = "${WORKDIR}/git" + +do_configure () { + cd ${WORKDIR}/o3 + node-waf -vv configure +} + +EXTRA_CXXFLAGS = "-Idefault/include -I../include -Idefault/hosts -I../hosts -Idefault/modules -I../modules -Idefault/deps -I../deps -I${STAGING_DIR_NATIVE}/usr/include/node -fPIC -DPIC" + +do_compile () { + cd ${WORKDIR}/o3 + node tools/gluegen.js + cd hosts + ${CXX} ${TARGET_CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o sh_node.o node-o3/sh_node.cc + ${CXX} ${TARGET_CXXFLAGS} ${EXTRA_CXXFLAGS} -c -o sh_node_libs.o node-o3/sh_node_libs.cc + cd .. + ${CXX} ${TARGET_LDFLAGS} hosts/sh_node.o hosts/sh_node_libs.o -o o3.node -shared -Wl,-Bdynamic -lxml2 +} + +do_install () { + install -m 0755 -d ${D}${datadir}/cloud9 ${D}${bindir} ${D}/var/lib/cloud9 + rsync -r --exclude=".*" ${S}/* ${D}${datadir}/cloud9 + + touch ${D}${bindir}/cloud9 + echo "#!/bin/sh" > ${D}${bindir}/cloud9 + echo "node4 ${datadir}/cloud9/bin/cloud9.js -l 0.0.0.0 -w /var/lib/cloud9 -p 3000" >> ${D}${bindir}/cloud9 + chmod 0755 ${D}${bindir}/cloud9 + + install -m 0755 -d ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml + install -m 0644 ${WORKDIR}/index.js ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/index.js + install -m 0644 ${WORKDIR}/o3/modules/o3.js ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.js + install -m 0755 ${WORKDIR}/o3/o3.node ${D}${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/o3.node + + install -m 0755 -d ${D}${sysconfdir}/avahi/services/ + install -m 0644 ${WORKDIR}/cloud9-avahi.service ${D}${sysconfdir}/avahi/services/ +} + +FILES_${PN}-dbg += "${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/o3-xml/.debug \ + ${datadir}/cloud9/support/jsdav/support/node-o3-xml-v4/lib/.debug \ + " + +RDEPENDS_${PN} = "nodejs4 nodejs gzip"