homebrew-core/Formula/yuicompressor.rb

16 lines
429 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Yuicompressor < Formula
homepage 'http://yuilibrary.com/projects/yuicompressor'
2012-02-11 23:40:38 +00:00
url 'http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.7.zip'
md5 '885657c68ed617737e730b4c2ce52dda'
def install
libexec.install "build/yuicompressor-2.4.7.jar"
(bin+'yuicompressor').write <<-EOS.undent
#!/bin/sh
2012-02-11 23:40:38 +00:00
java -jar "#{libexec}/yuicompressor-2.4.7.jar" "$@"
EOS
end
end