class UnittestCpp < Formula desc "Unit testing framework for C++" homepage "https://github.com/unittest-cpp/unittest-cpp" stable do url "https://github.com/unittest-cpp/unittest-cpp/archive/v1.4.tar.gz" sha256 "e075760b7082380058e7bbe3a69f8739524c73dc82d8362b418aaa0f873c6c20" # Clang failure fixed in the HEAD already fails_with :clang do build 600 cause "Failure in test: Expected 2 but was 0" end end bottle do cellar :any sha256 "44d3ebdf38a4fe0f6e7c31385a6f2474eabbf228277e67fec8accb4437140f72" => :yosemite sha256 "5e383d6c98685cab234a7c8ddf3839df42059e5e8db493e185ff4c2259fbbe3e" => :mavericks sha256 "942d4451a5985818fd1a881be3405573eba6d4a93e2dabca04dfe7b9e3afc105" => :mountain_lion end head do url "https://github.com/unittest-cpp/unittest-cpp.git" depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build end def install if build.head? system "autoreconf", "-fvi" system "./configure", "--prefix=#{prefix}", "--disable-silent-rules" system "make", "install" end if build.stable? system "make" # Install the headers include.install Dir["src/*.h"] include.install "src/Posix" # Install the compiled library lib.install "libUnitTest++.a" # Install the documentation doc.install "docs/UnitTest++.html" end end end