Skip to content

Commit

Permalink
icarus-verilog: secure url
Browse files Browse the repository at this point in the history
Switch to the automatic source archive and update the formula accordingly.
The mirror now matches the primary source and hash.
  • Loading branch information
vszakats committed Mar 16, 2020
1 parent 7ecee5e commit 5bd5af9
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Formula/icarus-verilog.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
class IcarusVerilog < Formula
desc "Verilog simulation and synthesis tool"
homepage "http://iverilog.icarus.com/"
url "ftp://icarus.com/pub/eda/verilog/v10/verilog-10.3.tar.gz"
url "https://github.com/steveicarus/iverilog/archive/v10_3.tar.gz"
mirror "https://deb.debian.org/debian/pool/main/i/iverilog/iverilog_10.3.orig.tar.gz"
sha256 "86bd45e7e12d1bc8772c3cdd394e68a9feccb2a6d14aaf7dae0773b7274368ef"
sha256 "4b884261645a73b37467242d6ae69264fdde2e7c4c15b245d902531efaaeb234"
head "https://github.com/steveicarus/iverilog.git"

bottle do
sha256 "bf40a384b8432dfb72276e31e87d550b9b47515dc68bdfb25f0cde9becd4ac10" => :catalina
Expand All @@ -12,11 +13,7 @@ class IcarusVerilog < Formula
sha256 "ded40d14a1cd74f2b764d9cf667d48ee8b6c010e77d88ca47afc99188ace1255" => :sierra
end

head do
url "https://github.com/steveicarus/iverilog.git"
depends_on "autoconf" => :build
end

depends_on "autoconf" => :build
# parser is subtly broken when processed with an old version of bison
depends_on "bison" => :build

Expand All @@ -25,7 +22,7 @@ class IcarusVerilog < Formula
uses_from_macos "zlib"

def install
system "autoconf" if build.head?
system "autoconf"
system "./configure", "--prefix=#{prefix}"
# https://github.com/steveicarus/iverilog/issues/85
ENV.deparallelize
Expand Down

0 comments on commit 5bd5af9

Please sign in to comment.