buildout.cfg 2.69 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

Alain Takoudjou's avatar
Alain Takoudjou committed
17 18 19 20
[cloud9-stable]
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
21
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
Alain Takoudjou's avatar
Alain Takoudjou committed
22 23
recipe = plone.recipe.command
stop-on-error = true
24
commit = 5d18344936baf1d86b0fa5fc2c690051b4c77cb2
Alain Takoudjou's avatar
Alain Takoudjou committed
25 26 27
repository = https://github.com/ajaxorg/cloud9.git
location = ${buildout:parts-directory}/${:_buildout_section_name_}
git-binary = ${git:location}/bin/git
28 29
npm-binary = ${nodejs-0.8:location}/bin/node ${nodejs-0.8: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.8:location}/bin:$PATH LDFLAGS=-L${libxml2:location}/lib ${:npm-binary} install) || (rm -fr ${:location}; exit 1)
Alain Takoudjou's avatar
Alain Takoudjou committed
30
update-command =
31
executable = ${:location}/bin/cloud9.js
Alain Takoudjou's avatar
Alain Takoudjou committed
32

33
[cloud9-git]
34 35 36
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
37
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
38
recipe = plone.recipe.command
39
stop-on-error = true
40
commit = 696a7dc34fbd943147fe2388a8ebb070e7f4024f
41
repository = https://github.com/ajaxorg/cloud9.git
42
location = ${buildout:parts-directory}/${:_buildout_section_name_}
43 44 45
npm-binary = ${nodejs-0.8:location}/bin/node ${nodejs-0.8:location}/bin/npm
environment = export GIT_SSL_NO_VERIFY=true; export PATH=${git:location}/bin:${nodejs:location}/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} && ${cloud9-git:npm-binary} install ${:location}) || (rm -fr ${:location}; exit 1)
46
update-command =
47
executable = ${:location}/server.js
48 49 50

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