New formula: htmlcompressor

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Lars 2010-11-29 12:11:09 +02:00 committed by Mike McQuaid
parent 35e7432874
commit b2f2b18fb9

15
Formula/htmlcompressor.rb Normal file
View file

@ -0,0 +1,15 @@
require 'formula'
class Htmlcompressor <Formula
url 'http://htmlcompressor.googlecode.com/files/htmlcompressor-0.9.4.jar'
homepage 'http://code.google.com/p/htmlcompressor/'
md5 '6b6a68a048ce52b4fd567e1beeb2cfb6'
def install
libexec.install "htmlcompressor-0.9.4.jar"
(bin+'htmlcompressor').write <<-EOS.undent
#!/bin/sh
java -jar "#{libexec}/htmlcompressor-0.9.4.jar" $@
EOS
end
end