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

parts =
  nodejs

[nodejs]
13
# Server-side Javascript.
14
recipe = hexagonit.recipe.cmmi
15 16
url = http://nodejs.org/dist/v0.6.12/node-v0.6.12.tar.gz
md5sum = a12766ae4003c9712927d1fa134ed9f6
17 18 19 20
configure-options =
  --openssl-includes=${openssl:location}/include
  --openssl-libpath=${openssl:location}/lib
environment =
21 22
  PATH=${pkgconfig:location}/bin:${python2.7:location}/bin:%(PATH)s
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
23 24
  CPPFLAGS=-I${zlib:location}/include
  LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
25

26
[nodejs-0.4]
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
27
recipe = hexagonit.recipe.cmmi
28 29
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
30 31 32 33 34 35 36 37
configure-options =
  --openssl-includes=${openssl:location}/include
  --openssl-libpath=${openssl:location}/lib
environment =
  PATH=${pkgconfig:location}/bin:${python2.7: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
38 39 40

[npm]
# Node.js Package Manager
41
# Deprecated. Included in node >= 0.6.3.
42 43 44 45 46 47
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
48
node-bin = ${nodejs-0.4:location}/bin/node
49
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)
50
update-command =