2010-11-29 10:11:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Htmlcompressor < Formula
|
2011-10-24 13:22:02 +00:00
|
|
|
url 'http://htmlcompressor.googlecode.com/files/htmlcompressor-1.5.2.jar'
|
2010-11-29 10:11:09 +00:00
|
|
|
homepage 'http://code.google.com/p/htmlcompressor/'
|
2011-10-24 13:22:02 +00:00
|
|
|
md5 '91575c89c83d0563dcf2aad409e4748f'
|
2010-11-29 10:11:09 +00:00
|
|
|
|
|
|
|
def install
|
2011-10-24 13:22:02 +00:00
|
|
|
libexec.install "htmlcompressor-1.5.2.jar"
|
2010-11-29 10:11:09 +00:00
|
|
|
(bin+'htmlcompressor').write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
2011-10-24 13:22:02 +00:00
|
|
|
java -jar "#{libexec}/htmlcompressor-1.5.2.jar" $@
|
2010-11-29 10:11:09 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|