homebrew-core/Formula/whirr.rb
Drew Stephens c295771c9b Apache Whirr 0.7.1
Closes Homebrew/homebrew#12924.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-06-20 07:28:50 -07:00

20 lines
483 B
Ruby

require 'formula'
class Whirr < Formula
homepage 'http://whirr.apache.org/'
url 'http://www.apache.org/dyn/closer.cgi?path=whirr/whirr-0.7.1/whirr-0.7.1.tar.gz'
sha1 '15772fd7bf35cbc1c50023f4a22bcbb1cd1f80c9'
def shim_script target
<<-EOS.undent
#!/bin/bash
exec "#{libexec}/bin/#{target}" "$@"
EOS
end
def install
libexec.install %w[bin conf lib]
# Leave "examples" script in libexec
(bin/'whirr').write shim_script('whirr')
end
end