zbackup: work around CHECK macro collision

Required for compatibility with protobuf 3.x

Closes #4144.

Signed-off-by: Andrew Janke <janke@eilonwy.local>
This commit is contained in:
Andrew Janke 2016-08-22 14:46:41 -05:00
parent ea8c30a1a3
commit e8ea63f0ea

View file

@ -29,6 +29,11 @@ class Zbackup < Formula
end
def install
# Avoid collision with protobuf 3.x CHECK macro
inreplace ["backup_creator.cc", "check.hh", "chunk_id.cc", "chunk_storage.cc",
"compression.cc", "encrypted_file.cc", "encryption.cc", "encryption_key.cc", "mt.cc",
"tests/bundle/test_bundle.cc", "tests/encrypted_file/test_encrypted_file.cc",
"unbuffered_file.cc", ], /\bCHECK\b/, "ZBCHECK"
system "cmake", ".", *std_cmake_args
system "make", "install"
end