2011-01-25 01:15:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Jslint4java < Formula
|
2011-01-25 01:15:39 +00:00
|
|
|
url "http://jslint4java.googlecode.com/files/jslint4java-1.4.6-dist.zip"
|
|
|
|
homepage 'http://code.google.com/p/jslint4java/'
|
|
|
|
md5 '5cde5cb0d34c78d21ec19e7ffd6afc9c'
|
|
|
|
version '1.4.6'
|
|
|
|
|
|
|
|
def install
|
2011-03-21 20:35:53 +00:00
|
|
|
prefix.install Dir['*']
|
|
|
|
bin.mkpath
|
|
|
|
(bin + 'jslint4java').write <<-EOF.undent
|
2011-01-25 01:15:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
java -jar #{prefix}/jslint4java-1.4.6.jar "$@"
|
|
|
|
EOF
|
|
|
|
end
|
|
|
|
end
|