This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

git-tf 2.0.0.20121030

Closes #16793.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent 8ca9c3a commit 04f8c7f93acf186d840e9eb6b115663e800bb917 @alexreg alexreg committed with klausmeyer Dec 27, 2012
Showing with 36 additions and 0 deletions.
  1. +36 −0 Library/Formula/git-tf.rb
View
@@ -0,0 +1,36 @@
+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.0.20121030.zip'
+ sha1 '0c51b2cc6316f37b9daed5f06d080a12003d3810'
+
+ depends_on 'maven' unless build.stable?
+
+ head do
+ url 'https://git01.codeplex.com/gittf', :using => :git
+ end
+
+ 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.install install_prefix + 'native/macosx'
+
+ bin.write_exec_script 'git-tf'
+ (share/'doc/git-tf').install Dir['Git-TF_*'] + Dir['ThirdPartyNotices*']
+ end
+
+ def test
+ system "mvn", "test" unless build.stable?
+ system "#{bin}/git-tf"
+ system "git", "tf"
+ end
+end

0 comments on commit 04f8c7f

Please sign in to comment.