homebrew-core/Formula/dynamips.rb
Viktor Szakats e94fcea044 dynamips: update homepage
Old page didn't work. Couldn't find the project on this page anymore either:
https://community.gns3.com/welcome

Closes Homebrew/homebrew#41118.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-27 05:06:05 +01:00

32 lines
995 B
Ruby

class Dynamips < Formula
desc "Cisco 7200/3600/3725/3745/2600/1700 Router Emulator"
homepage "https://github.com/GNS3/dynamips"
url "https://github.com/GNS3/dynamips/archive/v0.2.15.tar.gz"
sha1 "890c9357c668c91b7fd39a96f017b4e5e6ca580e"
bottle do
cellar :any
sha256 "3b23d9683f4344d5bbca80bfb4328484e409e215ae7aa4c22c01d5e45217b4f9" => :yosemite
sha256 "c460f69bc4b30af2d57a7e624bab98ce244b7492d2ef5bd39b24c155708e0625" => :mavericks
sha256 "c5732f50e1571b3027d3254cce93c29bd6a6e1973a6f9830e02a9fc95721cc46" => :mountain_lion
end
depends_on "libelf"
depends_on "cmake" => :build
def install
ENV.append "CFLAGS", "-I#{Formula["libelf"].include}/libelf"
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}",
"install"
end
test do
system "#{bin}/dynamips", "-e"
end
end