PageRenderTime 41ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/Library/Formula/vera++.rb

https://bitbucket.org/JoshHagins/homebrew
Ruby | 30 lines | 23 code | 6 blank | 1 comment | 0 complexity | 11ce7cc481d047a5ae55b4ad6dc332e2 MD5 | raw file
  1. require "formula"
  2. class Veraxx < Formula
  3. homepage "https://bitbucket.org/verateam/vera"
  4. url "https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1.tar.gz"
  5. sha1 "0bf7d463dabe41c2069dbe2fa4f7fca192cb7d6e"
  6. depends_on "cmake" => :build
  7. depends_on "boost"
  8. # Use prebuilt docs to avoid need for pandoc
  9. resource "doc" do
  10. url "https://bitbucket.org/verateam/vera/downloads/vera++-1.2.1-doc.tar.gz"
  11. sha1 "fce30676c815b99aa66d25c9dfbd2eda2c74bd7a"
  12. end
  13. def install
  14. system "cmake", ".", *std_cmake_args
  15. system "make install"
  16. resource("doc").stage do
  17. man1.install "vera++.1"
  18. doc.install "vera++.html"
  19. end
  20. end
  21. test do
  22. assert_equal version.to_s, shell_output("#{bin}/vera++ --version").strip
  23. end
  24. end