c193029476
Updated to latest released version of cake There is a gap in the released versions since 0.6.1, 0.6.2, 0.6.3 had issues on mono on OSX and were ignored. Closes Homebrew/homebrew#46881. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
40 lines
930 B
Ruby
40 lines
930 B
Ruby
class Cake < Formula
|
|
desc "Cake (C# Make) is a build automation system with a C# DSL."
|
|
homepage "http://cakebuild.net/"
|
|
url "https://github.com/cake-build/cake/releases/download/v0.6.4/Cake-bin-v0.6.4.zip"
|
|
sha256 "d2135cac859abcb002833c89d47ac0ab22fd6d849e4bd72aa9a21d8e0e5b0aa6"
|
|
|
|
bottle :unneeded
|
|
|
|
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
|