diff options
| author | Chris Cosby | 2012-04-10 10:04:34 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-07-28 10:18:15 -0700 |
| commit | c3fa339ec1d3795c4d36391fb923a1b5ade1d415 (patch) | |
| tree | a9ef26c2d193d192f24c40ada2328d39ebd3529d | |
| parent | 80cd68fcd103637ac6c51cbe43d66fba3cedec7e (diff) | |
| download | homebrew-c3fa339ec1d3795c4d36391fb923a1b5ade1d415.tar.bz2 | |
dynamips 0.2.8-RC3
Closes #11556.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/dynamips.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/dynamips.rb b/Library/Formula/dynamips.rb new file mode 100644 index 000000000..49f00511a --- /dev/null +++ b/Library/Formula/dynamips.rb @@ -0,0 +1,25 @@ +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 |
