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-08-07 18:42:57 +00:00
|
|
|
url "https://github.com/rizsotto/Bear/archive/2.0.4.tar.gz"
|
|
|
|
mirror "https://mirrors.kernel.org/debian/pool/main/b/bear/bear_2.0.4.orig.tar.gz"
|
|
|
|
sha256 "33ea117b09068aa2cd59c0f0f7535ad82c5ee473133779f1cc20f6f99793a63e"
|
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
|
|
|
|
sha256 "aff45ff41f7af8ba7e8e4417e4f9aea0a7ebadf5f9832b908262af49243be9a7" => :yosemite
|
|
|
|
sha256 "5b88173b16b68c9c1d3882b7b1c02025619baf3efb9e099e3b72fff3f34bbc18" => :mavericks
|
|
|
|
sha256 "2953c07183bd1ff2f5cfd30e9a1ec88c4e414d6db1acb9d35ce740dc86a83b65" => :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
|