buildout.cfg 4.54 KB
Newer Older
1 2
[buildout]
extends =
3
  ../coreutils/buildout.cfg
4
  ../patch/buildout.cfg
5
  ../git/buildout.cfg
6
  ../pkgconfig/buildout.cfg
7 8
  ../openssl/buildout.cfg
  ../zlib/buildout.cfg
Jérome Perrin's avatar
Jérome Perrin committed
9
  ../python-2.7/buildout.cfg
10
  ../gcc/buildout.cfg
11 12 13 14 15

parts =
  nodejs

[nodejs]
16
<= nodejs-8.9.4
17

18 19 20 21 22 23
[nodejs-8.9.4]
<= nodejs-base
recipe = slapos.recipe.cmmi
version = v8.9.4
md5sum = 4ddc1daff327d7e6f63da57fdfc24f55

Jérome Perrin's avatar
Jérome Perrin committed
24
[nodejs-8.6.0]
25 26 27 28 29
<= nodejs-base
version = v8.6.0
md5sum = 0c95e08220667d8a18b97ecec8218ac6

[nodejs-base]
Jérome Perrin's avatar
Jérome Perrin committed
30
# Server-side Javascript.
31 32 33
version =
md5sum =

Jérome Perrin's avatar
Jérome Perrin committed
34 35 36 37
recipe = slapos.recipe.cmmi
url = https://nodejs.org/dist/${:version}/node-${:version}.tar.gz
configure-options =
  --shared-openssl
38 39
  --shared-openssl-includes=${openssl-1.0:location}/include
  --shared-openssl-libpath=${openssl-1.0:location}/lib
Jérome Perrin's avatar
Jérome Perrin committed
40 41
environment =
  HOME=${buildout:parts-directory}/${:_buildout_section_name_}
42
  PATH=${gcc:location}/bin:${pkgconfig:location}/bin:${python2.7:location}/bin/:%(PATH)s
43
  PKG_CONFIG_PATH=${openssl-1.0:location}/lib/pkgconfig/
Jérome Perrin's avatar
Jérome Perrin committed
44
  CPPFLAGS=-I${zlib:location}/include
45 46
  LDFLAGS=-Wl,-rpath=${gcc:location}/lib -Wl,-rpath=${gcc:location}/lib64 -Wl,-rpath=${openssl-1.0:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
  LD_LIBRARY_PATH=${openssl-1.0:location}/lib
Jérome Perrin's avatar
Jérome Perrin committed
47

48 49 50 51 52 53 54 55 56
[nodejs-8.6.0-output]
# Shared binary location to ease migration
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = ${coreutils-output:test} -x ${:node} -a -x ${:npm}
node = ${nodejs-8.6.0:location}/bin/node
npm = ${nodejs-8.6.0:location}/bin/npm

57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
[nodejs-5]
# Server-side Javascript.
recipe = slapos.recipe.cmmi
version = v5.9.1
url = http://nodejs.org/dist/${:version}/node-${:version}.tar.gz
md5sum = 346c9325912271dc7614fe955c75c3a6
configure-options =
  --shared-openssl
  --shared-openssl-includes=${openssl:location}/include
  --shared-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-4]
# Server-side Javascript.
recipe = slapos.recipe.cmmi
version = v4.4.1
url = http://nodejs.org/dist/${:version}/node-${:version}.tar.gz
md5sum = ef756c3e773f08bccada08eb37ee699c
configure-options =
  --shared-openssl
  --shared-openssl-includes=${openssl:location}/include
  --shared-openssl-libpath=${openssl:location}/lib
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
84 85 86 87 88 89 90 91
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]
92
# Server-side Javascript.
93
recipe = slapos.recipe.cmmi
94 95
url = http://nodejs.org/dist/v0.6.21/node-v0.6.21.tar.gz
md5sum = 0da985a0bf820400af92363b9f453fe4
96 97 98 99
configure-options =
  --openssl-includes=${openssl:location}/include
  --openssl-libpath=${openssl:location}/lib
environment =
100
  HOME=${buildout:parts-directory}/${:_buildout_section_name_}
101
  PATH=${pkgconfig:location}/bin:%(PATH)s
102
  PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
103 104
  CPPFLAGS=-I${zlib:location}/include
  LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
105

106
[nodejs-0.4]
107
recipe = slapos.recipe.cmmi
108 109
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
110 111 112 113
configure-options =
  --openssl-includes=${openssl:location}/include
  --openssl-libpath=${openssl:location}/lib
environment =
114
  PATH=${pkgconfig:location}/bin:%(PATH)s
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
115 116 117
  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
118 119 120

[npm]
# Node.js Package Manager
121
# Deprecated. Included in node >= 0.6.3.
122 123 124 125 126 127
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
128
node-bin = ${nodejs-0.4:location}/bin/node
129
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)
130
update-command =