2015-07-28 00:27:53 +00:00
|
|
|
class Cake < Formula
|
2015-12-19 06:29:01 +00:00
|
|
|
desc "'C# Make' is a build automation system with a C# DSL."
|
2015-07-28 00:27:53 +00:00
|
|
|
homepage "http://cakebuild.net/"
|
2016-01-18 23:05:46 +00:00
|
|
|
url "https://github.com/cake-build/cake/releases/download/v0.8.0/Cake-bin-v0.8.0.zip"
|
|
|
|
sha256 "dd0141623bbce8d70855a345507ad2c37b27edf1d8f6dba5e4c4690d9b2544d0"
|
2015-07-28 00:27:53 +00:00
|
|
|
|
2015-10-22 13:10:03 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-07-28 00:27:53 +00:00
|
|
|
depends_on "mono" => :recommended
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*.dll"]
|
|
|
|
libexec.install Dir["*.exe"]
|
|
|
|
libexec.install Dir["*.xml"]
|
|
|
|
|
|
|
|
bin.mkpath
|
|
|
|
(bin/"cake").write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
mono #{libexec}/Cake.exe "$@"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
test_str = "Hello Homebrew"
|
|
|
|
(testpath/"build.cake").write <<-EOS.undent
|
|
|
|
|
|
|
|
var target = Argument ("target", "info");
|
|
|
|
|
|
|
|
Task("info").Does(() =>
|
|
|
|
{
|
|
|
|
Information ("Hello Homebrew");
|
|
|
|
});
|
|
|
|
|
|
|
|
RunTarget ("info");
|
|
|
|
|
|
|
|
EOS
|
|
|
|
|
|
|
|
assert_match test_str, shell_output("#{bin}/cake ./build.cake").strip
|
|
|
|
end
|
|
|
|
end
|