Created
June 21, 2013 01:25
-
-
Save cararemixed/5828211 to your computer and use it in GitHub Desktop.
Homebrew formula for Icarus Verilog (iverilog) that supports building from git master.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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