diff options
| author | Baptiste Fontaine | 2015-01-19 10:55:27 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-20 16:10:49 +0100 |
| commit | fac57507293848f30a104ee6429561533cebb004 (patch) | |
| tree | 5b18dccb7708abd100e70962ea27b4d90f952527 /Library/Formula | |
| parent | b01662848a2cd59da08233f793c83b3fefac73ba (diff) | |
| download | homebrew-fac57507293848f30a104ee6429561533cebb004.tar.bz2 | |
dynamips 0.2.14
Closes #36026.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/dynamips.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Formula/dynamips.rb b/Library/Formula/dynamips.rb index 7d7712b6f..14a7ea2e0 100644 --- a/Library/Formula/dynamips.rb +++ b/Library/Formula/dynamips.rb @@ -1,21 +1,24 @@ -require 'formula' - class Dynamips < Formula - homepage 'http://www.gns3.net/dynamips/' - url 'https://downloads.sourceforge.net/project/gns-3/Dynamips/0.2.10/dynamips-0.2.10-source.zip' - sha1 '6b8fc56e21db2fabfa684813b3fa56b59c6fce0a' + homepage "http://www.gns3.net/dynamips/" + url "https://github.com/GNS3/dynamips/archive/v0.2.14.tar.gz" + sha1 "1f0b62d19586365246a957b4eb4dab0cdbd657ad" - depends_on 'libelf' + depends_on "libelf" + depends_on "cmake" => :build def install - ENV.append 'CFLAGS', "-I#{Formula["libelf"].include}/libelf" + ENV.append "CFLAGS", "-I#{Formula["libelf"].include}/libelf" - arch = Hardware.is_64_bit? ? 'amd64' : 'x86' + arch = Hardware.is_64_bit? ? "amd64" : "x86" ENV.j1 + system "cmake", ".", "-DANY_COMPILER=1", *std_cmake_args system "make", "DYNAMIPS_CODE=stable", "DYNAMIPS_ARCH=#{arch}", - "DESTDIR=#{prefix}", "install" end + + test do + system "#{bin}/dynamips", "-e" + end end |
