2015-07-28 00:27:53 +00:00
|
|
|
class Cake < Formula
|
2016-09-15 22:50:48 +00:00
|
|
|
desc "Cross platform build automation system with a C# DSL."
|
2015-07-28 00:27:53 +00:00
|
|
|
homepage "http://cakebuild.net/"
|
2016-11-09 21:20:51 +00:00
|
|
|
url "https://github.com/cake-build/cake/releases/download/v0.17.0/Cake-bin-net45-v0.17.0.zip"
|
|
|
|
sha256 "f32715c160025452277d73e060c0bbf674d68e4218d0e49d4bd76f10d88cc360"
|
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
|
|
|
|
(testpath/"build.cake").write <<-EOS.undent
|
|
|
|
var target = Argument ("target", "info");
|
|
|
|
|
|
|
|
Task("info").Does(() =>
|
|
|
|
{
|
|
|
|
Information ("Hello Homebrew");
|
|
|
|
});
|
|
|
|
|
|
|
|
RunTarget ("info");
|
|
|
|
EOS
|
2016-09-15 22:50:48 +00:00
|
|
|
assert_match "Hello Homebrew\n", shell_output("#{bin}/cake build.cake")
|
2015-07-28 00:27:53 +00:00
|
|
|
end
|
|
|
|
end
|