aboutsummaryrefslogtreecommitdiffstats
path: root/server-coverage.sh
AgeCommit message (Expand)Author
2010-11-12Add test coverage analysis.Igor Minar
n15' href='#n15'>15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
class Dynamips < Formula
  homepage "http://www.gns3.net/dynamips/"
  url "https://github.com/GNS3/dynamips/archive/v0.2.14.tar.gz"
  sha1 "1f0b62d19586365246a957b4eb4dab0cdbd657ad"

  bottle do
    cellar :any
    sha1 "d0d6ed53cac613224298052a4403f215d41cdeaa" => :yosemite
    sha1 "bdcd75d6bfd8800340620f934193ac952e9ee455" => :mavericks
    sha1 "14bf80d8127981a9fab5e8cb94fd1c771a0cbe4c" => :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