2013-06-04 06:17:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
# Use prebuilt docs to avoid need for pandoc
|
|
|
|
class VeraMan < Formula
|
2013-06-08 20:50:40 +00:00
|
|
|
url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1-doc.tar.gz'
|
|
|
|
sha1 'fce30676c815b99aa66d25c9dfbd2eda2c74bd7a'
|
2013-06-04 06:17:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
class Veraxx < Formula
|
|
|
|
homepage 'https://bitbucket.org/verateam/vera'
|
2013-06-08 20:50:40 +00:00
|
|
|
url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1.tar.gz'
|
|
|
|
sha1 '0bf7d463dabe41c2069dbe2fa4f7fca192cb7d6e'
|
2013-06-04 06:17:38 +00:00
|
|
|
|
|
|
|
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
|
2013-06-09 02:26:26 +00:00
|
|
|
assert_equal version.to_s, `#{bin}/vera++ --version`.strip
|
2013-06-04 06:17:38 +00:00
|
|
|
end
|
|
|
|
end
|