Skip to content

Commit

Permalink
Merge pull request #589 from diffblue/homebrew-formula
Browse files Browse the repository at this point in the history
add a Homebrew formula
  • Loading branch information
kroening authored Jul 10, 2024
2 parents f59c64d + 2924823 commit f1f38b9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class Ebmc < Formula
desc "Model Checker for SystemVerilog"
homepage "https://www.cprover.org/ebmc/"
url "https://github.com/diffblue/hw-cbmc.git",
revision: "f2f3a40951f9e505a90621b430035b811dfc2b1a"
version "5.0"
license "BSD-3-Clause"

uses_from_macos "flex" => :build
uses_from_macos "curl" => :build
depends_on "bison" => :build

def install
system "make", "-C", "lib/cbmc/src", "minisat2-download"
system "make", "-C", "src"
system "mkdir", "-p", "#{prefix}/usr/bin"
system "cp", "src/ebmc/ebmc", "#{prefix}/usr/bin/"
end

test do
system "make", "-C", "regression/ebmc", "test"
end
end

0 comments on commit f1f38b9

Please sign in to comment.