homebrew-core/Formula/git-tf.rb
Jack Nagel fde02ed8b5 git-tf fix head, test
- head does not take a block
 - "mvn test" needs the source, of course
2013-03-24 00:20:05 -05:00

32 lines
912 B
Ruby

require 'formula'
class GitTf < Formula
homepage 'http://gittf.codeplex.com/'
url 'http://download.microsoft.com/download/A/E/2/AE23B059-5727-445B-91CC-15B7A078A7F4/git-tf-2.0.2.20130214.zip'
sha1 '889c1bba6aba892e570a18a386654a50293efbd0'
depends_on 'maven' unless build.stable?
head 'https://git01.codeplex.com/gittf', :using => :git
def install
if build.stable?
install_prefix = ''
else
system 'mvn', 'assembly:assembly'
system 'unzip', Dir['target/git-tf-*.zip'], "-dtarget"
install_prefix = Dir['target/git-tf-*/'].to_s
end
libexec.install install_prefix + 'git-tf'
libexec.install install_prefix + 'lib'
(libexec + "native").install install_prefix + 'native/macosx'
bin.write_exec_script libexec/'git-tf'
(share/'doc/git-tf').install Dir['Git-TF_*'] + Dir['ThirdPartyNotices*']
end
test do
system "#{bin}/git-tf"
end
end