2014-01-16 02:29:38 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Bear < Formula
|
|
|
|
homepage "https://github.com/rizsotto/Bear"
|
2014-07-21 02:22:18 +00:00
|
|
|
url "https://github.com/rizsotto/Bear/archive/1.4.3.tar.gz"
|
|
|
|
sha1 "10a212ba608b9fae4101fb5cf8c05c4279524209"
|
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
|
|
|
|
system "#{bin}/bear", "--", "true"
|
|
|
|
end
|
2014-01-16 02:29:38 +00:00
|
|
|
end
|