Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Formula for git-flow AVH Edition #16876

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions Library/Formula/git-flow-avh.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require 'formula'

class GitFlowAvh < Formula
homepage 'https://github.com/petervanderdoes/gitflow'
url 'https://github.com/petervanderdoes/gitflow/archive/1.4.2.zip'
version '1.4.2'
sha1 'bbfc065d0d72d87d7480a39db44b6f4684882945'

head 'https://github.com/petervanderdoes/gitflow.git', :branch => 'develop'

depends_on 'gnu-getopt'

conflicts_with 'git-flow'

def install
system "make", "prefix=#{prefix}", "install"
end

def caveats; <<-EOS.undent
Create a ~/.gitflow_export file with the content
alias getopt="$(brew --prefix gnu-getopt)/bin/getopt"
EOS
end

def test
system "#{bin}/git-flow version"
end
end
2 changes: 2 additions & 0 deletions Library/Formula/git-flow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class GitFlow < Formula

head 'https://github.com/nvie/gitflow.git', :branch => 'develop'

conflicts_with 'git-flow-avh'

def install
system "make", "prefix=#{prefix}", "install"

Expand Down