Commit 05174c12 authored by Jérome Perrin's avatar Jérome Perrin

component/jsl: switch to slapos.recipe.cmmi shared mode

This keeps the bug compatibility that we ignore error in the build.

jsl does not understand modern javascript syntax and does not do so many
useful checks, it would be waste of time trying to fix it.
parent f00b7a55
...@@ -5,16 +5,10 @@ ...@@ -5,16 +5,10 @@
parts = jsl parts = jsl
[jsl] [jsl]
recipe = slapos.recipe.build recipe = slapos.recipe.cmmi
shared = true
url = http://www.javascriptlint.com/download/jsl-0.3.0-src.tar.gz url = http://www.javascriptlint.com/download/jsl-0.3.0-src.tar.gz
md5sum = 2b94ffa4fab07acabe0c5e73cd49bcdf md5sum = 2b94ffa4fab07acabe0c5e73cd49bcdf
script = configure-command = :
location = %(location)r make-binary = cd src && make -f Makefile.ref -j 1 DIST="@@LOCATION@@" all export || true
self.failIfPathExists(location) make-targets =
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 -j 1 DIST="%(location)s" all export')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment