2014-05-20 22:29:28 +00:00
|
|
|
class Cereal < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "C++11 library for serialization"
|
2015-02-22 09:11:36 +00:00
|
|
|
homepage "https://uscilab.github.io/cereal/"
|
|
|
|
url "https://github.com/USCiLab/cereal/archive/v1.1.0.tar.gz"
|
|
|
|
sha1 "a7036f3fdb43315b0b6aa6c112c5878c03f1aa9e"
|
2014-05-20 22:29:28 +00:00
|
|
|
|
|
|
|
head "https://github.com/USCiLab/cereal.git", :branch => "develop"
|
|
|
|
|
2014-07-18 22:01:56 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-02-22 09:20:56 +00:00
|
|
|
sha1 "e7bbce282665e7e1d392840a1a620371de9fb3af" => :yosemite
|
|
|
|
sha1 "2d1bc4e43e82c55eb57cf767683fb7223ab05fef" => :mavericks
|
|
|
|
sha1 "2b53401c5d32d2d6263678e2166db000df7dc013" => :mountain_lion
|
2014-07-18 22:01:56 +00:00
|
|
|
end
|
|
|
|
|
2014-05-20 22:29:28 +00:00
|
|
|
option "with-tests", "Build and run the test suite"
|
|
|
|
|
|
|
|
depends_on "cmake" => :build if build.with? "tests"
|
|
|
|
|
|
|
|
def install
|
|
|
|
if build.with? "tests"
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make"
|
|
|
|
system "make", "test"
|
|
|
|
end
|
|
|
|
include.install "include/cereal"
|
|
|
|
end
|
|
|
|
end
|