homebrew-core/Formula/whirr.rb
Adam Vandenberg bde6edaefa whirr 0.8.0
2012-09-14 07:30:05 -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.8.0/whirr-0.8.0.tar.gz'
sha1 '44056fee1fd0e83a7257772d1a20faeae8f5cd1d'
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