homebrew-core/Formula/bear.rb

32 lines
1.1 KiB
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.2.1.tar.gz"
mirror "https://mirrors.kernel.org/debian/pool/main/b/bear/bear_2.2.1.orig.tar.gz"
sha256 "bfe711fae29f173f9d33a7d8c42434a2f40d0247fbb6ff618fdd91c878f76a7b"
head "https://github.com/rizsotto/Bear.git"
2015-02-04 16:54:21 +00:00
bottle do
2015-08-07 21:30:14 +00:00
cellar :any
2016-09-28 16:31:43 +00:00
sha256 "8469bf0b4ae18208304134787c9ff6938b191f1f4ecf5e88c516c228ad0eeff2" => :sierra
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
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