aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yuicompressor.rb
blob: fa4f961e9169ed196480efd86ef21d5a76e96fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'formula'

class Yuicompressor < Formula
  homepage 'http://yuilibrary.com/projects/yuicompressor'
  url 'http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.7.zip'
  md5 '885657c68ed617737e730b4c2ce52dda'

  def install
    libexec.install "build/yuicompressor-#{version}.jar"
    (bin+'yuicompressor').write <<-EOS.undent
      #!/bin/sh
      java -jar "#{libexec}/yuicompressor-#{version}.jar" "$@"
    EOS
  end
end