buildout.cfg 1.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 19
[node-sm]
recipe = slapos.recipe.build:npm
packages = sm
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

24
[cloud9-git]
25 26 27 28 29
# 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
30
stop-on-error = true
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
31
commit = ab689c5d3cc29d02d788506c0f1b2ab0742a0f05
32
repository = https://github.com/ajaxorg/cloud9.git
33
location = ${buildout:parts-directory}/${:_buildout_section_name_}
34
git-binary = ${git:location}/bin/git
35
npm-binary = ${nodejs:location}/bin/node ${nodejs:location}/bin/npm
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
36 37
environment = export GIT_SSL_NO_VERIFY=true; export PATH=${nodejs:location}/bin:${node-sm:location}/node_modules/sm/bin/:$PATH; export LDFLAGS=-L${libxml2:location}/lib; export HOME=${:location};
command = ${:environment} (${:git-binary} clone --quiet ${:repository} ${:location} && cd ${:location} && ${:git-binary} reset --hard ${:commit} && ${node-sm:location}/node_modules/.bin/sm install) || (rm -fr ${:location}; exit 1)
38 39 40 41 42 43 44 45 46
update-command =

[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.
47
node = nodejs
48 49
# List of packages to install
packages =
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
50
  cloud9==0.7
51 52
# Specify environment jsDAV (dependency of cloud9) needs libxml2
environment = 
53
  LDFLAGS=-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib