[buildout]

parts = spidermonkey

[spidermonkey-1.7]
recipe = slapos.recipe.build
url = http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz
md5sum = 5571134c3863686b623ebe4e6b1f6fe6
install =
  import os
  url = self.download(options['url'], options['md5sum'])
  extract_dir = self.extract(url)
  workdir = os.path.join(guessworkdir(extract_dir), 'src')
  env = self.environ
  env['JS_DIST'] = location
  call(['make', '-f', 'Makefile.ref', '-j1'], cwd=workdir, env=env)
  call(['make', '-f', 'Makefile.ref', 'export'], cwd=workdir, env=env)

[spidermonkey]
<= spidermonkey-1.7
