buildout.cfg 682 Bytes
Newer Older
Antoine Catton's avatar
Antoine Catton committed
1 2
[buildout]

3 4
parts = spidermonkey

Antoine Catton's avatar
Antoine Catton committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
[spidermonkey-1.7]
recipe = slapos.recipe.build
url = ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
md5sum = 5571134c3863686b623ebe4e6b1f6fe6
slapos_promise =
  directory:include/
  directory:bin/
  file:bin/js
  statlib:lib/libjs.a
  file:lib/libjs.so
script =
  url = self.download(self.options['url'], self.options['md5sum'])
  extract_dir = self.extract(url)
  workdir = os.path.join(guessworkdir(extract_dir), 'src')
  env.update(JS_DIST=self.options['location'])
  call(['make', '-f', 'Makefile.ref'], cwd=workdir, env=env)
  call(['make', '-f', 'Makefile.ref', 'export'], cwd=workdir, env=env)
22 23 24

[spidermonkey]
<= spidermonkey-1.7