2014-01-16 02:29:38 +00:00
|
|
|
class Bear < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Generate compilation database for clang tooling"
|
2014-01-16 02:29:38 +00:00
|
|
|
homepage "https://github.com/rizsotto/Bear"
|
2015-05-08 05:46:42 +00:00
|
|
|
url "https://github.com/rizsotto/Bear/archive/2.0.3.tar.gz"
|
|
|
|
sha256 "e9d217465198453ce87237e650dedb77f92cb530a10eac53b4a062ba779bd6c1"
|
2015-02-04 03:18:16 +00:00
|
|
|
head "https://github.com/rizsotto/Bear.git"
|
2014-01-16 02:29:38 +00:00
|
|
|
|
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
|
|
|
|
|
2015-02-04 03:18:16 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2014-01-16 02:29:38 +00:00
|
|
|
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
|
2015-02-04 03:18:16 +00:00
|
|
|
system "#{bin}/bear", "true"
|
|
|
|
assert File.exist? "compile_commands.json"
|
2014-01-17 00:14:03 +00:00
|
|
|
end
|
2014-01-16 02:29:38 +00:00
|
|
|
end
|