27 lines
1 KiB
Ruby
27 lines
1 KiB
Ruby
class AvroCpp < Formula
|
|
desc "Data serialization system"
|
|
homepage "https://avro.apache.org/"
|
|
url "https://www.apache.org/dyn/closer.cgi?path=avro/avro-1.8.1/cpp/avro-cpp-1.8.1.tar.gz"
|
|
sha256 "6559755ac525e908e42a2aa43444576cba91e522fe989088ee7f70c169bcc403"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "238e5f3ebfee52d2e8822de253c93e04441909f140c13bb007277b1fd7acf721" => :el_capitan
|
|
sha256 "ced89ca959d6e9531033b8257176b381a31a3c8cf2a6cefb02df48e1655500ce" => :yosemite
|
|
sha256 "42eb7e8e11cd12a7411ca50e690975563d49d283ad7e17302c71bf0ae92d8471" => :mavericks
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "cmake" => :build
|
|
depends_on "boost"
|
|
|
|
def install
|
|
# 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("
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
end
|