Skip to content

Commit 4cd0d36

Browse files
authored
Merge pull request #48 from veracode/gen_ir_0.4.3
Add versioned formula for gen-ir 0.4.3
2 parents a8cff5e + 30f0a25 commit 4cd0d36

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Formula/gen-ir@0.4.3.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
class GenIrAT043 < Formula
2+
desc "Generate LLVM IR from an Xcode Build Log"
3+
homepage "https://github.com/veracode/gen-ir"
4+
url "https://github.com/veracode/gen-ir.git",
5+
tag: "0.4.3",
6+
revision: "8fde502e75c9079c31e58d028cff8cb375480fef"
7+
version_scheme 1
8+
head "https://github.com/veracode/gen-ir.git", branch: "develop"
9+
10+
livecheck do
11+
url :stable
12+
strategy :github_latest
13+
end
14+
15+
bottle do
16+
root_url "https://github.com/veracode/homebrew-tap/releases/download/gen-ir-0.4.3"
17+
sha256 cellar: :any_skip_relocation, monterey: "8ef8b2c80de59c27a437e59308b0ee4602150e992227ed357dd8e3d3b8f50d0c"
18+
end
19+
20+
keg_only :versioned_formula
21+
22+
depends_on xcode: ["13.0", :build]
23+
depends_on macos: :monterey
24+
25+
def install
26+
system "swift", "build", "-c", "release", "--disable-sandbox"
27+
bin.install "./.build/release/gen-ir"
28+
end
29+
30+
test do
31+
system "#{bin}/gen-ir", "--help"
32+
end
33+
end

0 commit comments

Comments
 (0)