buildout.cfg 2.79 KB
Newer Older
1 2
[buildout]
extends =
3 4 5 6 7
  ../dcron/buildout.cfg
  ../libxml2/buildout.cfg
  ../logrotate/buildout.cfg
  ../rdiff-backup/buildout.cfg
  ../nodejs/buildout.cfg
8 9

parts =
10
  nodejs
11 12 13 14
  npm
  cloud9

[cloud9]
15 16
<= cloud9-git

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
17 18
[node-sm]
recipe = slapos.recipe.build:npm
19
packages = sm@0.2.7
20 21 22
node = nodejs
environment =
  PATH=${nodejs:location}/bin:%(PATH)s
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
23

Alain Takoudjou's avatar
Alain Takoudjou committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37
[cloud9-stable]
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location} 
recipe = plone.recipe.command
stop-on-error = true
commit = 97db1467c517d265438684bd2a70b0b76ee282f6
repository = https://github.com/ajaxorg/cloud9.git
location = ${buildout:parts-directory}/${:_buildout_section_name_}
git-binary = ${git:location}/bin/git
npm-binary = ${nodejs-0.4:location}/bin/node ${npm:location}/bin/npm
command = export GIT_SSL_NO_VERIFY=true; export HOME=${:location}; (${:git-binary} clone --quiet ${:repository} ${:location} && cd ${:location} && ${:git-binary} reset --hard ${:commit} && ${:git-binary} submodule update --init && cd support/jsdav && PATH=${nodejs-0.4:location}/bin:$PATH LDFLAGS=-L${libxml2:location}/lib ${:npm-binary} install) || (rm -fr ${:location}; exit 1)
update-command =
38
executable = ${:location}/bin/cloud9.js
Alain Takoudjou's avatar
Alain Takoudjou committed
39

40
[cloud9-git]
41 42 43 44 45
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location} 
recipe = plone.recipe.command
46
stop-on-error = true
47
commit = c66284221143c175fc889418d499da6f37492a7c
48
repository = https://github.com/ajaxorg/cloud9.git
49
location = ${buildout:parts-directory}/${:_buildout_section_name_}
50 51
environment = export GIT_SSL_NO_VERIFY=true; export PATH=${git:location}/bin:${nodejs:location}/bin:${node-sm:location}/node_modules/sm/bin:$PATH; export CPPFLAGS="-I${libxml2:location}/include -I${nodejs:location}/include"; export LDFLAGS="-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib"; export HOME=${:location};
command = ${:environment} (git clone --quiet ${:repository} ${:location} && cd ${:location} && git reset --hard ${:commit} && ${node-sm:location}/node_modules/.bin/sm install) || (rm -fr ${:location}; exit 1)
52
update-command =
53
executable = ${:location}/server.js
54 55 56 57 58 59 60 61

[cloud9-npm]
# Online IDE written in javascript/node.js
# URL : c9.io 
# You can use it using the following command :
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location} 
recipe = slapos.recipe.npm
# Node part has to be specified, otherwise system node is used.
62
node = nodejs
63 64
# List of packages to install
packages =
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
65
  cloud9==0.7
66 67
# Specify environment jsDAV (dependency of cloud9) needs libxml2
environment = 
Alain Takoudjou's avatar
Alain Takoudjou committed
68
  LDFLAGS=-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib