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

[cloud9]
10 11
<= cloud9-git

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
12 13
[node-sm]
recipe = slapos.recipe.build:npm
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
14
packages = sm@0.2.11
15 16 17
node = nodejs
environment =
  PATH=${nodejs:location}/bin:%(PATH)s
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
18

Alain Takoudjou's avatar
Alain Takoudjou committed
19 20 21 22
[cloud9-stable]
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
23
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
Alain Takoudjou's avatar
Alain Takoudjou committed
24 25
recipe = plone.recipe.command
stop-on-error = true
26
commit = 5d18344936baf1d86b0fa5fc2c690051b4c77cb2
Alain Takoudjou's avatar
Alain Takoudjou committed
27 28 29 30 31 32
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 =
33
executable = ${:location}/bin/cloud9.js
Alain Takoudjou's avatar
Alain Takoudjou committed
34

35 36 37 38 39 40 41
[cloud9-session-directory.patch]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/${:filename}
filename = cloud9-session-directory.patch
download-only = true
md5sum = 5dc8cc28447ed3747b8a53c768d872aa

42
[cloud9-git]
43 44 45
# Online IDE written in javascript/node.js
# URL : c9.io
# You can use it using the following command :
46
# NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
47
recipe = plone.recipe.command
48
stop-on-error = true
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
49
commit = f7d102bc225c922f116d2cea52a746d64343ea59
50
repository = https://github.com/ajaxorg/cloud9.git
51
location = ${buildout:parts-directory}/${:_buildout_section_name_}
52
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};
53
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)
54
update-command =
55
executable = ${:location}/server.js
56 57 58

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