diff options
| author | Ryan Wang | 2013-02-02 01:00:16 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-02-01 10:50:05 -0800 |
| commit | cfe19f01b81c230ef3e86e2ddba3bbac28328bea (patch) | |
| tree | 606208cd933a13cba7b1df19ac5ec486ba87c5b0 /Library | |
| parent | 102c988e7319f0e518fa182864554a61a4ddc1a9 (diff) | |
| download | homebrew-cfe19f01b81c230ef3e86e2ddba3bbac28328bea.tar.bz2 | |
tee-clc 11.0.0.1212
Closes #17508.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tee-clc.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/tee-clc.rb b/Library/Formula/tee-clc.rb new file mode 100644 index 000000000..8a3503ddb --- /dev/null +++ b/Library/Formula/tee-clc.rb @@ -0,0 +1,29 @@ +require 'formula' + +class TeeClc < Formula + homepage 'http://www.microsoft.com/en-us/download/details.aspx?id=4240' + url 'http://download.microsoft.com/download/4/2/7/427AC2CF-8A5B-4DE9-8221-22F54B1903E2/TEE-CLC-11.0.0.1212.zip' + sha1 '1f16ac62ab64cfbd88ad471ea3d21a62d5eb78e6' + + def install + if build.stable? + install_prefix = '' + else + system 'mvn', 'assembly:assembly' + system 'unzip', Dir['target/tf-*.zip'], "-dtarget" + install_prefix = Dir['target/tf-*/'].to_s + end + + libexec.install install_prefix + 'tf' + libexec.install install_prefix + 'lib' + (libexec + "native").install install_prefix + 'native/macosx' + + bin.write_exec_script libexec/'tf' + share.install 'help' + end + + def test + system "mvn", "test" unless build.stable? + system "#{bin}/tf" + end +end |
