homebrew-core/Formula/bear.rb

29 lines
919 B
Ruby
Raw Normal View History

class Bear < Formula
desc "Generate compilation database for clang tooling"
homepage "https://github.com/rizsotto/Bear"
url "https://github.com/rizsotto/Bear/archive/2.0.3.tar.gz"
sha256 "e9d217465198453ce87237e650dedb77f92cb530a10eac53b4a062ba779bd6c1"
head "https://github.com/rizsotto/Bear.git"
2015-02-04 16:54:21 +00:00
bottle do
2015-05-08 05:58:04 +00:00
sha256 "c2a70963145a8ec644ebd7c0025ced786b8311fae9d10f858649b9418dba065e" => :yosemite
sha256 "c9b63970285cbd5b341f18dddaaed63de3cc36582aa673058111bfb05a5deecf" => :mavericks
sha256 "5aae5f1bd8f92e2528304ecb6719f0bd495f2b7f0fb9a5051e266bcfade6ee70" => :mountain_lion
2015-02-04 16:54:21 +00:00
end
depends_on :python if MacOS.version <= :snow_leopard
depends_on "cmake" => :build
def install
mkdir "build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end
2014-01-17 00:14:03 +00:00
test do
system "#{bin}/bear", "true"
assert File.exist? "compile_commands.json"
2014-01-17 00:14:03 +00:00
end
end