homebrew-core/Formula/cake.rb
Redth eeb471e222 cake 0.5.2
cake 0.5.2 Updated to latest released version of cake

Closes Homebrew/homebrew#43021.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-08-17 17:53:23 +01:00

38 lines
910 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.5.2/Cake-bin-v0.5.2.zip"
sha256 "364ecaadc5f3ac5fc3d2fd33dce75413d9c717532d84d6a3a00b4dec35496c11"
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