Skip to content

Instantly share code, notes, and snippets.

@mrb
Forked from cararemixed/icarus-verilog.rb
Created June 22, 2013 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrb/5835604 to your computer and use it in GitHub Desktop.
Save mrb/5835604 to your computer and use it in GitHub Desktop.
require 'formula'
class IcarusVerilog < Formula
homepage 'http://iverilog.icarus.com/'
url 'http://hivelocity.dl.sourceforge.net/project/iverilog/iverilog/0.9.6/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