homebrew-core/Formula/cake.rb

37 lines
900 B
Ruby
Raw Normal View History

class Cake < Formula
2016-09-15 22:50:48 +00:00
desc "Cross platform build automation system with a C# DSL."
homepage "http://cakebuild.net/"
2016-09-25 23:08:46 +00:00
url "https://github.com/cake-build/cake/releases/download/v0.16.1/Cake-bin-net45-v0.16.1.zip"
sha256 "cfc71f74090b74a24e1d93a383d82c81edd42665b707d8083f28121bacdfa67a"
2015-10-22 13:10:03 +00:00
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
(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")
end
end