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