2014-05-17 14:01:42 +00:00
|
|
|
require "formula"
|
2012-06-12 22:05:31 +00:00
|
|
|
|
|
|
|
class Verilator < Formula
|
2014-05-17 14:01:42 +00:00
|
|
|
homepage "http://www.veripool.org/wiki/verilator"
|
2014-07-13 18:37:47 +00:00
|
|
|
url "http://www.veripool.org/ftp/verilator-3.862.tgz"
|
|
|
|
sha1 "dd5d3f13478b51b0bd7d37ed353fcf58a6e774e1"
|
2012-06-12 22:05:31 +00:00
|
|
|
|
2014-05-17 14:01:42 +00:00
|
|
|
skip_clean "bin" # Allows perl scripts to keep their executable flag
|
2012-06-12 22:05:31 +00:00
|
|
|
|
2014-03-01 08:40:55 +00:00
|
|
|
# Needs a newer flex on Lion (and presumably below)
|
|
|
|
# http://www.veripool.org/issues/720-Verilator-verilator-not-building-on-Mac-OS-X-Lion-10-7-
|
|
|
|
depends_on "flex" if MacOS.version <= :lion
|
|
|
|
|
2012-06-12 22:05:31 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|