2013-06-04 06:17:38 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
2013-08-07 04:35:29 +00:00
|
|
|
# Use prebuilt docs to avoid need for pandoc
|
|
|
|
resource 'doc' do
|
|
|
|
url 'https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1-doc.tar.gz'
|
|
|
|
sha1 'fce30676c815b99aa66d25c9dfbd2eda2c74bd7a'
|
|
|
|
end
|
|
|
|
|
2013-06-04 06:17:38 +00:00
|
|
|
def install
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make install"
|
|
|
|
|
2013-08-07 04:35:29 +00:00
|
|
|
resource('doc').stage do
|
2013-06-04 06:17:38 +00:00
|
|
|
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
|