2014-01-16 02:29:38 +00:00
|
|
|
class Bear < Formula
|
|
|
|
homepage "https://github.com/rizsotto/Bear"
|
2015-02-04 03:18:16 +00:00
|
|
|
url "https://github.com/rizsotto/Bear/archive/2.0.1.tar.gz"
|
|
|
|
sha1 "31cf2b82a44f6eb5a3740c9f8aa9f2cd662e9a68"
|
|
|
|
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
|
|
|
|
sha1 "6d868313f7e4afa2ac5e5a8979f47299e776a439" => :yosemite
|
|
|
|
sha1 "1aa1d89fe02160069fb32c666e982c4b0fdd5841" => :mavericks
|
|
|
|
sha1 "a576d3a8ab01c8bbdb1c387d314736d6d3c7cae7" => :mountain_lion
|
|
|
|
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
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libconfig"
|
|
|
|
|
|
|
|
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
|