2014-05-04 19:12:41 +00:00
|
|
|
require "formula"
|
2013-06-04 06:17:38 +00:00
|
|
|
|
|
|
|
class Veraxx < Formula
|
2014-05-04 19:12:41 +00:00
|
|
|
homepage "https://bitbucket.org/verateam/vera"
|
|
|
|
url "https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1.tar.gz"
|
|
|
|
sha1 "0bf7d463dabe41c2069dbe2fa4f7fca192cb7d6e"
|
2013-06-04 06:17:38 +00:00
|
|
|
|
2014-05-04 19:12:41 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "boost"
|
2013-06-04 06:17:38 +00:00
|
|
|
|
2013-08-07 04:35:29 +00:00
|
|
|
# Use prebuilt docs to avoid need for pandoc
|
2014-05-04 19:12:41 +00:00
|
|
|
resource "doc" do
|
|
|
|
url "https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1-doc.tar.gz"
|
|
|
|
sha1 "fce30676c815b99aa66d25c9dfbd2eda2c74bd7a"
|
2013-08-07 04:35:29 +00:00
|
|
|
end
|
|
|
|
|
2013-06-04 06:17:38 +00:00
|
|
|
def install
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make install"
|
|
|
|
|
2014-05-04 19:12:41 +00:00
|
|
|
resource("doc").stage do
|
|
|
|
man1.install "vera++.1"
|
|
|
|
doc.install "vera++.html"
|
2013-06-04 06:17:38 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_equal version.to_s, shell_output("#{bin}/vera++ --version").strip
|
2013-06-04 06:17:38 +00:00
|
|
|
end
|
|
|
|
end
|