c295771c9b
Closes Homebrew/homebrew#12924. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
20 lines
483 B
Ruby
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
|