Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Formula for Apache Whirr #12924

Closed
wants to merge 3 commits into from

3 participants

@dinomite

This time with proper indentation and happiness.

@andreisavu

cool!

@adamv adamv closed this pull request from a commit
@dinomite dinomite Apache Whirr 0.7.1
Closes #12924.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
38bfee5
@adamv adamv closed this in 38bfee5
@zhangcheng zhangcheng referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@CharlieRoot CharlieRoot referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@petrhosek petrhosek referenced this pull request from a commit
@dinomite dinomite Apache Whirr 0.7.1
Closes #12924.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
47e3c27
@eproxus eproxus referenced this pull request from a commit in eproxus/homebrew
@dinomite dinomite Apache Whirr 0.7.1
Closes #12924.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
e102785
@h10n h10n referenced this pull request from a commit
@dinomite dinomite Apache Whirr 0.7.1
Closes #12924.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
aa41881
@Sharpie Sharpie referenced this pull request from a commit in Sharpie/homebrew
@dinomite dinomite Apache Whirr 0.7.1
Closes #12924.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
9cad31b
@snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
@dinomite dinomite Apache Whirr 0.7.1
Closes #12924.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
43bd775
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 25 additions and 0 deletions.
  1. +25 −0 Library/Formula/whirr.rb
View
25 Library/Formula/whirr.rb
@@ -0,0 +1,25 @@
+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]
+ #bin.install Dir['bin/whirr']
+
+ bin.mkpath
+ Dir["#{libexec}/bin/*"].each do |b|
+ n = Pathname.new(b).basename
+ (bin+n).write shim_script(n)
+ end
+ end
+end
Something went wrong with that request. Please try again.