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"
|
2016-06-22 13:02:11 +00:00
|
|
|
url "https://github.com/rizsotto/Bear/archive/2.2.0.tar.gz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/b/bear/bear_2.2.0.orig.tar.gz"
|
|
|
|
sha256 "6bd61a6d64a24a61eab17e7f2950e688820c72635e1cf7ea8ea7bf9482f3b612"
|
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-08-07 21:30:14 +00:00
|
|
|
cellar :any
|
2016-06-22 13:04:58 +00:00
|
|
|
sha256 "316e61b4a0198e4627e18491e52422df67d7fb23cd72ad01b6d8b2e7d6682e34" => :el_capitan
|
|
|
|
sha256 "5e71d4bfae579a1eac79692f0558d2541d1d9b46ad8bafdbaa303ef94f716509" => :yosemite
|
|
|
|
sha256 "570c03e31526cfbfc2b7d120858cffeb5f04f00a8d96730aa79732714b0c92f4" => :mavericks
|
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
|