aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDrew Stephens2012-06-18 16:25:42 -0400
committerAdam Vandenberg2012-06-20 07:28:50 -0700
commit38bfee5d7c7c4a5eb2651211d2735708309d45e4 (patch)
treef712530be3f44d3b36381aeee99ed7a622d45a6c /Library/Formula
parent48ecc8b25d9724a02d621cbb4e990484dcd3af26 (diff)
downloadhomebrew-38bfee5d7c7c4a5eb2651211d2735708309d45e4.tar.bz2
Apache Whirr 0.7.1
Closes #12924. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/whirr.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/whirr.rb b/Library/Formula/whirr.rb
new file mode 100644
index 000000000..9f5301bdc
--- /dev/null
+++ b/Library/Formula/whirr.rb
@@ -0,0 +1,20 @@
+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