Skip to content

Commit c239df5

Browse files
makigumochenrui333
authored andcommitted
verilator 4.216
* verilator 4.126 * verilator: remove livecheck Closes #90582. Co-authored-by: rui <[email protected]> Signed-off-by: Michka Popoff <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
1 parent 07def4b commit c239df5

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Formula/verilator.rb

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
class Verilator < Formula
22
desc "Verilog simulator"
33
homepage "https://www.veripool.org/wiki/verilator"
4-
url "https://www.veripool.org/ftp/verilator-4.200.tgz"
5-
sha256 "773913f4410512a7a51de3d04964766438dc11fc22b213eab5c6c29730df3e36"
4+
url "https://github.com/verilator/verilator/archive/refs/tags/v4.216.tar.gz"
5+
sha256 "64e5093b629a7e96178e3b2494f208955f218dfac6f310a91e4fc07d050c980b"
66
license any_of: ["LGPL-3.0-only", "Artistic-2.0"]
7-
revision 1
8-
9-
livecheck do
10-
url "https://github.com/verilator/verilator.git"
11-
regex(/^v?(\d+(?:\.\d+)+)$/i)
12-
end
137

148
bottle do
159
sha256 arm64_monterey: "745234546ac4e29afcc4ed3ec60396b66a52d5f3ee1d5c50bff0b9f7adb9e6e0"
@@ -21,12 +15,13 @@ class Verilator < Formula
2115
end
2216

2317
head do
24-
url "https://git.veripool.org/git/verilator", using: :git
25-
depends_on "autoconf" => :build
26-
depends_on "automake" => :build
18+
url "https://github.com/verilator/verilator.git", using: :git
2719
end
2820

21+
depends_on "autoconf" => :build
22+
depends_on "automake" => :build
2923
depends_on "[email protected]" => :build
24+
depends_on "cmake" => :test
3025

3126
uses_from_macos "bison"
3227
uses_from_macos "flex"
@@ -35,7 +30,7 @@ class Verilator < Formula
3530
skip_clean "bin" # Allows perl scripts to keep their executable flag
3631

3732
def install
38-
system "autoconf" if build.head?
33+
system "autoconf"
3934
system "./configure", "--prefix=#{prefix}"
4035
# `make` and `make install` need to be separate for parallel builds
4136
system "make"
@@ -59,9 +54,16 @@ module test;
5954
exit(0);
6055
}
6156
EOS
62-
system "/usr/bin/perl", bin/"verilator", "-Wall", "--cc", "test.v", "--exe", "test.cpp"
63-
cd "obj_dir" do
64-
system "make", "-j", "-f", "Vtest.mk", "Vtest"
57+
(testpath/"CMakeLists.txt").write <<~EOS
58+
project(test)
59+
cmake_minimum_required(VERSION 3.12)
60+
find_package(verilator)
61+
add_executable(Vtest test.cpp)
62+
verilate(Vtest SOURCES test.v)
63+
EOS
64+
system "cmake", "-B", "build", "."
65+
system "cmake", "--build", "build", "--"
66+
cd "build" do
6567
expected = <<~EOS
6668
Hello World
6769
- test.v:2: Verilog $finish

0 commit comments

Comments
 (0)