diff options
| author | Alex Regueiro | 2012-12-27 03:46:04 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-04 09:42:01 -0800 |
| commit | 80450dbdc8fb2c658a3fa7c4c272bc880a50d9d9 (patch) | |
| tree | b7a1b39eac4ae71ec51ec73e94ab4720c9131e34 /Library/Formula | |
| parent | 90c476e761eae0caf3735ad3c0fe018534c6fbe8 (diff) | |
| download | homebrew-80450dbdc8fb2c658a3fa7c4c272bc880a50d9d9.tar.bz2 | |
git-tf 2.0.0.20121030
Closes #16793.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/git-tf.rb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Library/Formula/git-tf.rb b/Library/Formula/git-tf.rb new file mode 100644 index 000000000..9e3cc51b9 --- /dev/null +++ b/Library/Formula/git-tf.rb @@ -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 |
