homebrew-core/Formula/whirr.rb

21 lines
483 B
Ruby
Raw Normal View History

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