buildout.cfg 665 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# jsl - command line javascript lint
# http://javascriptlint.com/

[buildout]
parts = jsl

[jsl]
recipe = slapos.recipe.build
url = http://www.javascriptlint.com/download/jsl-0.3.0-src.tar.gz
md5sum = 2b94ffa4fab07acabe0c5e73cd49bcdf
script =
  location = %(location)r
  self.failIfPathExists(location)
  import sys
  url = self.options['url']
  md5sum = self.options['md5sum']
  extract_dir = self.extract(self.download(url, md5sum))
  workdir = guessworkdir(extract_dir)
  os.chdir(os.path.join(workdir, 'src'))
  os.system('make -f Makefile.ref')
  os.mkdir(location)
  bindir = os.path.join(location, 'bin')
  os.mkdir(bindir)
  os.system('cp */jsl ' + bindir)