diff options
| author | Jack Nagel | 2012-02-10 00:41:56 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-10 00:42:35 -0600 |
| commit | bf500f54a1683b5b2de615357d7a4381206b90a9 (patch) | |
| tree | 23efcf0594072a193e852e65c42ed5b4a84e6f7f /Library | |
| parent | 41bba15b1ee1896cb411d477cfc2b76a351eaf08 (diff) | |
| download | homebrew-bf500f54a1683b5b2de615357d7a4381206b90a9.tar.bz2 | |
git-flow: style fixups
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/git-flow.rb | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/Library/Formula/git-flow.rb b/Library/Formula/git-flow.rb index ce60d7523..6d4ae4a95 100644 --- a/Library/Formula/git-flow.rb +++ b/Library/Formula/git-flow.rb @@ -2,43 +2,32 @@ require 'formula' class GitFlowCompletion < Formula + homepage 'https://github.com/bobthecow/git-flow-completion' url 'https://github.com/bobthecow/git-flow-completion.git', :tag => '0.4.1.0' version '0.4.1.0' + head 'https://github.com/bobthecow/git-flow-completion.git', :branch => 'develop' def initialize # We need to hard-code the formula name since Homebrew can't # deduce it from the formula's filename, and the git download # strategy really needs a valid name. - super "git-flow-completion" end - - homepage 'https://github.com/bobthecow/git-flow-completion' end class GitFlow < Formula + homepage 'https://github.com/nvie/gitflow' url 'https://github.com/nvie/gitflow.git', :tag => '0.4.1' version '0.4.1' - head 'https://github.com/nvie/gitflow.git', :branch => 'develop' - homepage 'https://github.com/nvie/gitflow' + head 'https://github.com/nvie/gitflow.git', :branch => 'develop' def install system "make", "prefix=#{prefix}", "install" - # Normally, etc files are installed directly into HOMEBREW_PREFIX, - # rather than being linked from the Cellar — this is so that - # configuration files don't get clobbered when you update. The - # bash-completion file isn't really configuration, though; it - # should be updated when we upgrade the package. - - cellar_etc = prefix + 'etc' - bash_completion_d = cellar_etc + "bash_completion.d" - - completion = GitFlowCompletion.new - completion.brew do - bash_completion_d.install "git-flow-completion.bash" + GitFlowCompletion.new.brew do + (prefix+'etc/bash_completion.d').install "git-flow-completion.bash" end end end |
