From 6a06759e447609169fc222cd404d253f7c5c8264 Mon Sep 17 00:00:00 2001 From: bmxav <5422569+bmxav@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:59:24 -0400 Subject: [PATCH] Add versioned formula for 0.5.0-beta --- Formula/gen-ir@0.5.0-beta.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/gen-ir@0.5.0-beta.rb diff --git a/Formula/gen-ir@0.5.0-beta.rb b/Formula/gen-ir@0.5.0-beta.rb new file mode 100644 index 0000000..ab9a079 --- /dev/null +++ b/Formula/gen-ir@0.5.0-beta.rb @@ -0,0 +1,28 @@ +class GenIrAT050Beta < Formula + desc "Generate LLVM IR from an Xcode Build Log" + homepage "https://github.com/veracode/gen-ir" + url "https://github.com/veracode/gen-ir.git", + tag: "0.5.0-beta", + revision: "1e8375e1c910d35445e048e56c6cf91b1c79d5c9" + version_scheme 1 + head "https://github.com/veracode/gen-ir.git", branch: "develop" + + livecheck do + url :stable + strategy :github_latest + end + + keg_only :versioned_formula + + depends_on xcode: ["13.0", :build] + depends_on macos: :monterey + + def install + system "swift", "build", "-c", "release", "--disable-sandbox" + bin.install "./.build/release/gen-ir" + end + + test do + system "#{bin}/gen-ir", "--help" + end +end