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