tee-clc: merge with team-explorer-everywhere (#17542)

master
Chris Long 2017-09-03 01:20:38 -07:00 committed by ilovezfs
parent 70073c6aa4
commit 384b81c87e
4 changed files with 22 additions and 36 deletions

View File

@ -0,0 +1 @@
../Formula/tee-clc.rb

View File

@ -1,35 +0,0 @@
class TeamExplorerEverywhere < Formula
desc "Run version control commands against a TFS server"
homepage "https://go.microsoft.com/fwlink/?LinkId=242481"
url "https://github.com/Microsoft/team-explorer-everywhere/releases/download/14.123.0/TEE-CLC-14.123.0.zip"
sha256 "93fbf2372c7c719b41fe243fa3cef8ea1fa6b1e6dfb84990ad8664bbdbbb262b"
bottle :unneeded
depends_on :java => "1.6+"
def install
prefix.install "ThirdPartyNotices.html"
libexec.install Dir["*"]
(bin/"tf").write_env_script(libexec/"tf", :TF_CLC_HOME => libexec)
end
test do
ENV["TF_ADDITIONAL_JAVA_ARGS"] = "-Duser.home=#{ENV["HOME"]}"
(testpath/"test.exp").write <<-EOS.undent
spawn #{bin}/tf workspace
set timeout 5
expect {
timeout { exit 1 }
"workspace could not be determined"
}
spawn #{bin}/tf eula
expect {
"MICROSOFT TEAM EXPLORER EVERYWHERE" { exit 0 }
timeout { exit 1 }
}
EOS
system "expect", "-f", "test.exp"
end
end

View File

@ -6,16 +6,35 @@ class TeeClc < Formula
bottle :unneeded
depends_on :java => "1.6+"
conflicts_with "tiny-fugue", :because => "both install a `tf` binary"
def install
libexec.install "tf", "lib"
(libexec/"native").install "native/macosx"
bin.write_exec_script libexec/"tf"
prefix.install "ThirdPartyNotices.html"
share.install "help"
end
test do
system "#{bin}/tf"
ENV["TF_ADDITIONAL_JAVA_ARGS"] = "-Duser.home=#{ENV["HOME"]}"
(testpath/"test.exp").write <<-EOS.undent
spawn #{bin}/tf workspace
set timeout 5
expect {
timeout { exit 1 }
"workspace could not be determined"
}
spawn #{bin}/tf eula
expect {
"MICROSOFT TEAM EXPLORER EVERYWHERE" { exit 0 }
timeout { exit 1 }
}
EOS
system "expect", "-f", "test.exp"
end
end

View File

@ -160,6 +160,7 @@
"subversion18": "subversion@1.8",
"swig2": "swig@2",
"swig304": "swig@3.04",
"team-explorer-everywhere": "tee-clc",
"tensorflow": "libtensorflow",
"thrift090": "thrift@0.90",
"tomcat6": "tomcat@6",