From d9c34a71c653064df003d81aa7b40a509dfcae2f Mon Sep 17 00:00:00 2001 From: "Sean T. Allen" Date: Thu, 19 Dec 2019 11:30:37 -0500 Subject: [PATCH] corral 0.3.0 (new formula) Closes #48075. Signed-off-by: Rui Chen --- Formula/corral.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/corral.rb diff --git a/Formula/corral.rb b/Formula/corral.rb new file mode 100644 index 0000000000..54a202b350 --- /dev/null +++ b/Formula/corral.rb @@ -0,0 +1,23 @@ +class Corral < Formula + desc "Dependency manager for the Pony language" + homepage "https://github.com/ponylang/corral" + url "https://github.com/ponylang/corral/archive/0.3.0.tar.gz" + sha256 "5e2f825dd67a060623bdbd992bcdf2d4a377a6d491f4bd60e8754f60df33e578" + head "https://github.com/ponylang/corral.git" + + depends_on "ponyc" + + def install + system "make", "prefix=#{prefix}", "install" + end + + test do + (testpath/"test/main.pony").write <<~EOS + actor Main + new create(env: Env) => + env.out.print("Hello World!") + EOS + system "#{bin}/corral", "run", "--", "ponyc", "test" + assert_equal "Hello World!", shell_output("./test1").chomp + end +end