protobuf-swift: revision for protobuf

master
ilovezfs 2017-01-28 06:52:45 -08:00
parent 64645fb193
commit 79a8d5627a
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@ class ProtobufSwift < Formula
homepage "https://github.com/alexeyxo/protobuf-swift"
url "https://github.com/alexeyxo/protobuf-swift/archive/3.0.6.tar.gz"
sha256 "279c24886f5a88f332db2e0f745de55b6267e697ce4ba42f7d91566b6cf11be3"
revision 1
bottle do
cellar :any
@ -17,6 +18,12 @@ class ProtobufSwift < Formula
depends_on "protobuf"
def install
# Regenerate the generated files for protobuf 3.2.0
# See https://github.com/alexeyxo/protobuf-swift/issues/200
system "protoc", "-Iplugin/compiler",
"plugin/compiler/google/protobuf/descriptor.proto",
"plugin/compiler/google/protobuf/swift-descriptor.proto",
"--cpp_out=plugin/compiler"
system "./autogen.sh"
system "./configure", "--prefix=#{prefix}"
system "make"