c 0.14 (new formula)

Copied from <https://github.com/ryanmjacobs/c/blob/master/c.rb>

Closes #109656.

Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Wu Zhenyu 2022-09-04 23:21:48 +08:00 committed by BrewTestBot
parent 687571b159
commit 79e80b4bee
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 17 additions and 0 deletions

17
Formula/c.rb Normal file
View File

@ -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