Working npm for node 0.4
[slapos.git] / component / nodejs / buildout.cfg
1 [buildout]
2 extends =
3   ../git/buildout.cfg
4   ../pkgconfig/buildout.cfg
5   ../openssl/buildout.cfg
6   ../python-2.7/buildout.cfg
7   ../zlib/buildout.cfg
8
9 parts =
10   nodejs
11
12 [nodejs]
13 # Server-side Javascript.
14 recipe = hexagonit.recipe.cmmi
15 url = http://nodejs.org/dist/v0.6.10/node-v0.6.10.tar.gz
16 md5sum = 8a74fd5d48c2c7c64abc60b2b8f3fbc7
17 configure-options =
18   --openssl-includes=${openssl:location}/include
19   --openssl-libpath=${openssl:location}/lib
20 environment =
21   PATH=${pkgconfig:location}/bin:${python2.7:location}/bin:%(PATH)s
22   PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
23   CPPFLAGS=-I${zlib:location}/include
24   LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
25
26 [nodejs-0.4]
27 recipe = hexagonit.recipe.cmmi
28 url = http://nodejs.org/dist/node-v0.4.12.tar.gz
29 md5sum = a6375eaa43db5356bf443e25b828ae16
30 configure-options =
31   --openssl-includes=${openssl:location}/include
32   --openssl-libpath=${openssl:location}/lib
33 environment =
34   PATH=${pkgconfig:location}/bin:${python2.7:location}/bin:%(PATH)s
35   PKG_CONFIG_PATH=${openssl:location}/lib/pkgconfig/
36   CPPFLAGS=-I${zlib:location}/include
37   LDFLAGS=-Wl,-rpath=${openssl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
38
39 [npm]
40 # Node.js Package Manager
41 # Deprecated. Included in node >= 0.6.3.
42 recipe = plone.recipe.command
43 location = ${buildout:parts-directory}/${:_buildout_section_name_}
44 stop-on-error = true
45 commit = 3136abc5c6b3ed332c4700ece24450fada63639b
46 origin = https://github.com/isaacs/npm.git
47 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 =
51