Skip to content

Instantly share code, notes, and snippets.

@putermancer
Created December 20, 2011 22:17
Show Gist options
  • Save putermancer/1503545 to your computer and use it in GitHub Desktop.
Save putermancer/1503545 to your computer and use it in GitHub Desktop.
homebrew Formula to install blove's fork of gitflow
require 'formula'
class GitFlowCompletion < Formula
homepage 'https://github.com/bobthecow/git-flow-completion'
url 'https://github.com/bobthecow/git-flow-completion/tarball/0.4.1.0'
md5 '95c05d1a278c1c41067bd7cc6c281ecd'
head 'https://github.com/bobthecow/git-flow-completion.git', :branch => 'develop'
end
class BloveGitFlow < Formula
homepage 'https://github.com/bloveridge/gitflow'
# Use the tag instead of the tarball to get the submodule
url 'https://github.com/bloveridge/gitflow.git', :branch => 'blove'
version '0.4.1-blove'
head 'https://github.com/bloveridge/gitflow.git', :branch => 'develop'
def install
system "make", "prefix=#{prefix}", "install"
GitFlowCompletion.new.brew do
(prefix+'etc/bash_completion.d').install "git-flow-completion.bash"
(share+'zsh/functions').install "git-flow-completion.zsh"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment