slaprunner: fix https for cloud9
[slapos.git] / component / cloud9 / buildout.cfg
1 [buildout]
2 extends =
3   ../dcron/buildout.cfg
4   ../libxml2/buildout.cfg
5   ../logrotate/buildout.cfg
6   ../rdiff-backup/buildout.cfg
7   ../nodejs/buildout.cfg
8
9 parts =
10   nodejs
11   npm
12   cloud9
13
14 [cloud9]
15 <= cloud9-git
16
17 [node-sm]
18 recipe = slapos.recipe.build:npm
19 packages = sm@0.2.11
20 node = nodejs
21 environment =
22   PATH=${nodejs:location}/bin:%(PATH)s
23
24 [cloud9-stable]
25 # Online IDE written in javascript/node.js
26 # URL : c9.io
27 # You can use it using the following command :
28 # NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
29 recipe = plone.recipe.command
30 stop-on-error = true
31 commit = 5d18344936baf1d86b0fa5fc2c690051b4c77cb2
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-0.4:location}/bin/node ${npm:location}/bin/npm
36 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)
37 update-command =
38 executable = ${:location}/bin/cloud9.js
39
40 [cloud9-session-directory.patch]
41 recipe = hexagonit.recipe.download
42 url = ${:_profile_base_location_}/${:filename}
43 filename = cloud9-session-directory.patch
44 download-only = true
45 md5sum = 5dc8cc28447ed3747b8a53c768d872aa
46
47 [cloud9-socket.patch]
48 recipe = hexagonit.recipe.download
49 url = ${:_profile_base_location_}/${:filename}
50 filename = cloud9-socket.patch
51 download-only = true
52 #md5sum = 5dc8cc28447ed3747b8a53c768d872aa
53
54 [cloud9-git]
55 # Online IDE written in javascript/node.js
56 # URL : c9.io
57 # You can use it using the following command :
58 # NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
59 recipe = plone.recipe.command
60 stop-on-error = true
61 commit = f7d102bc225c922f116d2cea52a746d64343ea59
62 repository = https://github.com/ajaxorg/cloud9.git
63 location = ${buildout:parts-directory}/${:_buildout_section_name_}
64 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};
65 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} && ${node-sm:location}/node_modules/.bin/sm install && patch -p1 < ${cloud9-socket.patch:location}/${cloud9-socket.patch:filename}) || (rm -fr ${:location}; exit 1)
66 update-command =
67 executable = ${:location}/server.js
68
69 [cloud9-npm]
70 # Online IDE written in javascript/node.js
71 # URL : c9.io
72 # You can use it using the following command :
73 # NODE_PATH=${:destination}/node_modules ${nodejs:node_location} ${:cloud9_js_location}
74 recipe = slapos.recipe.npm
75 # Node part has to be specified, otherwise system node is used.
76 node = nodejs
77 # List of packages to install
78 packages =
79   cloud9==0.7
80 # Specify environment jsDAV (dependency of cloud9) needs libxml2
81 environment = 
82   LDFLAGS=-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib