homebrew-core/Formula/dynamips.rb
Chris Cosby 5798bc98ea dynamips 0.2.8-RC3
Closes Homebrew/homebrew#11556.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-28 10:18:15 -07:00

25 lines
681 B
Ruby

require 'formula'
class Dynamips < Formula
homepage 'http://www.gns3.net/dynamips/'
url 'http://sourceforge.net/projects/gns-3/files/Dynamips/0.2.8-RC3-community/dynamips-0.2.8-RC3-community.tar.gz'
sha1 'ed7138859e6bc381ae0cf0d2620b32099845847c'
version '0.2.8-RC3'
depends_on 'libelf'
def install
# Install man pages to the standard Homebrew location
inreplace 'Makefile' do |s|
s.gsub! %r|\$\(DESTDIR\)/man|, man
end
arch = Hardware.is_64_bit? ? 'amd64' : 'x86'
ENV.j1
system "make", "DYNAMIPS_CODE=stable",
"DYNAMIPS_ARCH=#{arch}",
"DESTDIR=#{prefix}",
"install"
end
end