diff options
| author | Dominyk Tiller | 2015-02-01 13:52:14 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-03 17:01:52 +0000 |
| commit | 794d0631cef9140254ee73b1dc86ec10a2c2b39e (patch) | |
| tree | ab51307d044793368816585688f59b8744ada0a5 /Library/Formula | |
| parent | c19893fa9cfdba2d4d836b610a52ff751086b058 (diff) | |
| download | homebrew-794d0631cef9140254ee73b1dc86ec10a2c2b39e.tar.bz2 | |
unittest-cpp: homepage/url move
The Homepage and URL have moved from SourceForge to Github. The latter
is a “fork” maintained by one of the original SourceForge authors and a
new maintainer.
Closes #36400
Closes #36433.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/unittest-cpp.rb | 49 |
1 files changed, 36 insertions, 13 deletions
diff --git a/Library/Formula/unittest-cpp.rb b/Library/Formula/unittest-cpp.rb index f3a175d80..8c2fa3389 100644 --- a/Library/Formula/unittest-cpp.rb +++ b/Library/Formula/unittest-cpp.rb @@ -1,21 +1,44 @@ -require 'formula' - class UnittestCpp < Formula - homepage 'http://unittest-cpp.sourceforge.net/' - url 'https://downloads.sourceforge.net/project/unittest-cpp/UnitTest++/1.4/unittest-cpp-1.4.zip' - sha1 'dad944159e2e135aea74039987490eaaee00f2ad' + homepage "https://github.com/unittest-cpp/unittest-cpp" + + stable do + url "https://github.com/unittest-cpp/unittest-cpp/archive/v1.4.tar.gz" + sha1 "ec7bdbebeb6f4d7a069f1125f7b4f473198e491d" + + # Clang failure fixed in the HEAD already + fails_with :clang do + build 600 + cause "Failure in test: Expected 2 but was 0" + end + 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 - system "make" + 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 headers + include.install Dir["src/*.h"] + include.install "src/Posix" - # Install the compiled library - lib.install 'libUnitTest++.a' + # Install the compiled library + lib.install "libUnitTest++.a" - # Install the documentation - doc.install 'docs/UnitTest++.html' + # Install the documentation + doc.install "docs/UnitTest++.html" + end end end |
