2012-12-27 03:46:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitTf < Formula
|
|
|
|
homepage 'http://gittf.codeplex.com/'
|
2013-03-01 09:59:27 +00:00
|
|
|
url 'http://download.microsoft.com/download/A/E/2/AE23B059-5727-445B-91CC-15B7A078A7F4/git-tf-2.0.2.20130214.zip'
|
|
|
|
sha1 '889c1bba6aba892e570a18a386654a50293efbd0'
|
2012-12-27 03:46:04 +00:00
|
|
|
|
|
|
|
depends_on 'maven' unless build.stable?
|
|
|
|
|
2013-03-24 05:20:02 +00:00
|
|
|
head 'https://git01.codeplex.com/gittf', :using => :git
|
2012-12-27 03:46:04 +00:00
|
|
|
|
|
|
|
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'
|
2013-01-31 06:01:58 +00:00
|
|
|
(libexec + "native").install install_prefix + 'native/macosx'
|
2012-12-27 03:46:04 +00:00
|
|
|
|
2013-01-30 04:20:53 +00:00
|
|
|
bin.write_exec_script libexec/'git-tf'
|
2012-12-27 03:46:04 +00:00
|
|
|
(share/'doc/git-tf').install Dir['Git-TF_*'] + Dir['ThirdPartyNotices*']
|
|
|
|
end
|
|
|
|
|
2013-03-24 05:20:02 +00:00
|
|
|
test do
|
2012-12-27 03:46:04 +00:00
|
|
|
system "#{bin}/git-tf"
|
|
|
|
end
|
|
|
|
end
|