2012-08-20 21:42:09 +00:00
|
|
|
class AvroCpp < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Data serialization system"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://avro.apache.org/"
|
|
|
|
url "https://www.apache.org/dyn/closer.cgi?path=avro/avro-1.7.7/cpp/avro-cpp-1.7.7.tar.gz"
|
|
|
|
sha256 "f9bdfad58f513014940fcda372840e36f4f3787a20a00bc0666d254973a1ec1d"
|
2012-08-20 21:42:09 +00:00
|
|
|
|
2015-09-15 13:40:04 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "d68908a760283fa48f536c470536ea639e5cf2a38bf51a5cea7e8c49065ca35a" => :yosemite
|
|
|
|
sha256 "ebb608306b7337e4d05bb0826814b2f23d56e65854adaed92e8221c20c3c000d" => :mavericks
|
|
|
|
sha256 "235ff24990def3b0850be9771a25cc74bc075ed2f943f4301a79da5053432b65" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-03-10 00:54:39 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-08-22 02:46:55 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "boost"
|
2012-08-20 21:42:09 +00:00
|
|
|
|
|
|
|
def install
|
2015-09-15 06:10:25 +00:00
|
|
|
# Avoid deprecated macros removed in Boost 1.59.
|
|
|
|
# https://issues.apache.org/jira/browse/AVRO-1719
|
|
|
|
inreplace "test/SchemaTests.cc", "BOOST_CHECKPOINT(", "BOOST_TEST_CHECKPOINT("
|
|
|
|
inreplace "test/buffertest.cc", "BOOST_MESSAGE(", "BOOST_TEST_MESSAGE("
|
|
|
|
|
2012-08-20 21:42:09 +00:00
|
|
|
system "cmake", ".", *std_cmake_args
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2012-08-20 21:42:09 +00:00
|
|
|
end
|
|
|
|
end
|