Skip to content

Instantly share code, notes, and snippets.

@cararemixed
Created June 21, 2013 01:25
Show Gist options
  • Save cararemixed/5828211 to your computer and use it in GitHub Desktop.
Save cararemixed/5828211 to your computer and use it in GitHub Desktop.
Homebrew formula for Icarus Verilog (iverilog) that supports building from git master.
require 'formula'
class IcarusVerilog < Formula
homepage 'http://iverilog.icarus.com/'
url 'ftp://icarus.com/pub/eda/verilog/v0.9/verilog-0.9.6.tar.gz'
sha1 'd81f586b801a2d897ba8c35971d660b960220ed4'
head 'https://github.com/steveicarus/iverilog.git'
if build.head?
depends_on :autoconf
end
def install
system "sh ./autoconf.sh" if build.head?
# Fixes an assertion when XCode-4.4 tries to link with clang or llvm-gcc.
ENV['LD'] = MacOS.locate("ld")
system "./configure", "--prefix=#{prefix}"
# Separate steps, as install does not depend on compile properly
system 'make'
system 'make installdirs'
system 'make install'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment