buildout.cfg 3.1 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
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
19
packages = sm@0.2.11
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
[cloud9-stable]
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
28
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
Alain Takoudjou's avatar
Alain Takoudjou committed
29 30
recipe = plone.recipe.command
stop-on-error = true
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
31
commit = 5d18344936baf1d86b0fa5fc2c690051b4c77cb2
Alain Takoudjou's avatar
Alain Takoudjou committed
32 33 34 35 36 37
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 41 42 43 44 45 46
[cloud9-session-directory.patch]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
filename = cloud9-session-directory.patch
download-only = true
md5sum = 5dc8cc28447ed3747b8a53c768d872aa

47
[cloud9-git]
48 49 50
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
51
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
52
recipe = plone.recipe.command
53
stop-on-error = true
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
54
commit = 6b0112363dd0f9523430808394a162d3cc699550
55
repository = https://github.com/ajaxorg/cloud9.git
56
location = ${buildout:parts-directory}/${:_buildout_section_name_}
57
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};
58
command = ${:environment} (git clone --quiet ${:repository} ${:location} && cd ${:location} && git reset --hard ${:commit} && ${node-sm:location}/node_modules/.bin/sm install && patch -p1 < ${cloud9-session-directory.patch:location}/${cloud9-session-directory.patch:filename}) || (rm -fr ${:location}; exit 1)
59
update-command =
60
executable = ${:location}/server.js
61 62 63

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