diff --git a/Formula/vera++.rb b/Formula/vera++.rb new file mode 100644 index 0000000000..51030cc20c --- /dev/null +++ b/Formula/vera++.rb @@ -0,0 +1,30 @@ +require 'formula' + +# Use prebuilt docs to avoid need for pandoc +class VeraMan < Formula + url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.0-doc.tar.gz' + sha1 '3c1dfd167928fb1d7c0d3c55830c7f4d5a2a61ae' +end + +class Veraxx < Formula + homepage 'https://bitbucket.org/verateam/vera' + url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.0.tar.gz' + sha1 '2c882c794761aa10867cdf30fb1e052e9f0c56d6' + + depends_on 'cmake' => :build + depends_on 'boost' + + def install + system "cmake", ".", *std_cmake_args + system "make install" + + VeraMan.new.brew do + man1.install 'vera++.1' + doc.install 'vera++.html' + end + end + + test do + `#{bin}/vera++ --version`.chomp == '1.2.0' + end +end