buildout.cfg 2.51 KB
Newer Older
1 2
[buildout]
extends =
3
  ../git/buildout.cfg
4
  ../pkgconfig/buildout.cfg
5 6 7 8 9 10 11
  ../openssl/buildout.cfg
  ../zlib/buildout.cfg

parts =
  nodejs

[nodejs]
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
12 13 14 15 16
<= nodejs-0.8

[nodejs-0.8]
# Server-side Javascript.
recipe = hexagonit.recipe.cmmi
17 18
url = http://nodejs.org/dist/v0.8.14/node-v0.8.14.tar.gz
md5sum = 284fd2c7578064c339d9cf6a3a475ac7
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
19 20 21 22 23 24 25 26 27 28 29
configure-options =
  --openssl-includes=${openssl:location}/include
  --openssl-libpath=${openssl:location}/lib
environment =
  HOME=${buildout:parts-directory}/${:_buildout_section_name_}
  PATH=${pkgconfig:location}/bin:%(PATH)s
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
  CPPFLAGS=-I${zlib:location}/include
  LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib

[nodejs-0.6]
30
# Server-side Javascript.
31
recipe = hexagonit.recipe.cmmi
32 33
url = http://nodejs.org/dist/v0.6.21/node-v0.6.21.tar.gz
md5sum = 0da985a0bf820400af92363b9f453fe4
34 35 36 37
configure-options =
  --openssl-includes=${openssl:location}/include
  --openssl-libpath=${openssl:location}/lib
environment =
38
  HOME=${buildout:parts-directory}/${:_buildout_section_name_}
39
  PATH=${pkgconfig:location}/bin:%(PATH)s
40
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
41 42
  CPPFLAGS=-I${zlib:location}/include
  LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
43

44
[nodejs-0.4]
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
45
recipe = hexagonit.recipe.cmmi
46 47
url = http://nodejs.org/dist/node-v0.4.12.tar.gz
md5sum = a6375eaa43db5356bf443e25b828ae16
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
48 49 50 51
configure-options =
  --openssl-includes=${openssl:location}/include
  --openssl-libpath=${openssl:location}/lib
environment =
52
  PATH=${pkgconfig:location}/bin:%(PATH)s
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
53 54 55
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
  CPPFLAGS=-I${zlib:location}/include
  LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
56 57 58

[npm]
# Node.js Package Manager
59
# Deprecated. Included in node >= 0.6.3.
60 61 62 63 64 65
recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
commit = 3136abc5c6b3ed332c4700ece24450fada63639b
origin = https://github.com/isaacs/npm.git
git-bin = ${git:location}/bin/git
66
node-bin = ${nodejs-0.4:location}/bin/node
67
command = (GIT_SSL_NO_VERIFY=true ${:git-bin} clone --quiet ${:origin} ${:location} && cd ${:location} && ${:git-bin} reset --hard ${:commit} && ${:location}/configure --prefix=${:location} && GIT_SSL_NO_VERIFY=true ${:git-bin} submodule update --init --recursive && ${:node-bin} cli.js install npm@1.0.106 -g -f) || (rm -fr ${:location}; exit 1)
68
update-command =