2012-12-27 03:46:04 +00:00
|
|
|
class GitTf < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Share changes between TFS and git"
|
2015-10-26 21:31:02 +00:00
|
|
|
homepage "https://gittf.codeplex.com/"
|
|
|
|
url "https://download.microsoft.com/download/A/E/2/AE23B059-5727-445B-91CC-15B7A078A7F4/git-tf-2.0.3.20131219.zip"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "91fd12e7db19600cc908e59b82104dbfbb0dbfba6fd698804a8330d6103aae74"
|
2014-01-29 12:37:54 +00:00
|
|
|
|
2013-09-20 15:15:54 +00:00
|
|
|
head do
|
2015-08-03 12:55:31 +00:00
|
|
|
url "https://git01.codeplex.com/gittf", :using => :git
|
|
|
|
depends_on "maven" => :build
|
2013-09-20 15:15:54 +00:00
|
|
|
end
|
2012-12-27 03:46:04 +00:00
|
|
|
|
2015-10-27 02:06:24 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2012-12-27 03:46:04 +00:00
|
|
|
def install
|
|
|
|
if build.stable?
|
2015-08-03 12:55:31 +00:00
|
|
|
install_prefix = ""
|
2012-12-27 03:46:04 +00:00
|
|
|
else
|
2015-08-03 12:55:31 +00:00
|
|
|
system "mvn", "assembly:assembly"
|
|
|
|
system "unzip", Dir["target/git-tf-*.zip"], "-dtarget"
|
|
|
|
install_prefix = Dir["target/git-tf-*/"].first.to_s
|
2012-12-27 03:46:04 +00:00
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
libexec.install install_prefix + "git-tf"
|
|
|
|
libexec.install install_prefix + "lib"
|
|
|
|
(libexec + "native").install install_prefix + "native/macosx"
|
2012-12-27 03:46:04 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
bin.write_exec_script libexec/"git-tf"
|
|
|
|
doc.install Dir["Git-TF_*", "ThirdPartyNotices*"]
|
2012-12-27 03:46:04 +00:00
|
|
|
end
|
|
|
|
|
2014-01-29 12:37:54 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
This release removes support for TFS 2005 and 2008. Use a previous version if needed.
|
|
|
|
EOS
|
|
|
|
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
|