From 2a2471210c5728824226c4065ec98565073c0071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gae=CC=88tan=20Lehmann?= Date: Tue, 4 Jun 2013 08:17:38 +0200 Subject: [PATCH] vera++ 1.2.0 Closes Homebrew/homebrew#20240. Signed-off-by: Adam Vandenberg --- Formula/vera++.rb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Formula/vera++.rb 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