From 79e80b4beefe4c128e88eead9d1cd893a2cf4b64 Mon Sep 17 00:00:00 2001 From: Wu Zhenyu Date: Sun, 4 Sep 2022 23:21:48 +0800 Subject: [PATCH] c 0.14 (new formula) Copied from Closes #109656. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: Rui Chen Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/c.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Formula/c.rb diff --git a/Formula/c.rb b/Formula/c.rb new file mode 100644 index 00000000000..d0ef2d4c7ef --- /dev/null +++ b/Formula/c.rb @@ -0,0 +1,17 @@ +class C < Formula + desc 'Compile and execute C "scripts" in one go' + homepage "https://github.com/ryanmjacobs/c" + url "https://github.com/ryanmjacobs/c/archive/v0.14.tar.gz" + sha256 "2b66d79d0d5c60b8e6760dac734b8ec9a7d6a5e57f033b97086821b1985a870b" + license "MIT" + head "https://github.com/ryanmjacobs/c.git", branch: "master" + + def install + bin.install "c" + end + + test do + (testpath/"test.c").write("int main(void){return 0;}") + system bin/"c", testpath/"test.c" + end +end