diff options
| author | Adam Vandenberg | 2013-11-16 16:54:10 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-16 16:54:10 -0800 |
| commit | 7936a41068bf31b93ba2c27e954e1a971a3d7471 (patch) | |
| tree | 3c0370eae3f79a45b0eb3d63965524b621888241 /Library/Formula/git-flow-avh.rb | |
| parent | 092672a59270c17cde43ae1849d6e710eff54db0 (diff) | |
| download | homebrew-7936a41068bf31b93ba2c27e954e1a971a3d7471.tar.bz2 | |
git-flow-avh: install to libexec
Create a wrapper script to set the gnu-getopt location and remove caveats.
Diffstat (limited to 'Library/Formula/git-flow-avh.rb')
| -rw-r--r-- | Library/Formula/git-flow-avh.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/git-flow-avh.rb b/Library/Formula/git-flow-avh.rb index 78d95a359..4c4d93002 100644 --- a/Library/Formula/git-flow-avh.rb +++ b/Library/Formula/git-flow-avh.rb @@ -23,7 +23,12 @@ class GitFlowAvh < Formula conflicts_with 'git-flow' def install - system "make", "prefix=#{prefix}", "install" + system "make", "prefix=#{libexec}", "install" + (bin/'git-flow').write <<-EOS.undent + #!/bin/bash + export FLAGS_GETOPT_CMD=#{HOMEBREW_PREFIX}/opt/gnu-getopt/bin/getopt + exec "#{libexec}/bin/git-flow" "$@" + EOS resource('completion').stage do bash_completion.install "git-flow-completion.bash" @@ -31,12 +36,6 @@ class GitFlowAvh < Formula end end - def caveats; <<-EOS.undent - Create a ~/.gitflow_export file with the content - export FLAGS_GETOPT_CMD="$(brew --prefix gnu-getopt)/bin/getopt" - EOS - end - test do system "#{bin}/git-flow", "version" end |
