From 825c64b631cc44809d93402f19253eb8140ad112 Mon Sep 17 00:00:00 2001 From: Ed Flanagan Date: Thu, 24 Aug 2017 16:55:16 -0700 Subject: [PATCH] protobuf-swift: depend on protobuf@3.1 instead of protobuf --- Formula/protobuf-swift.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Formula/protobuf-swift.rb b/Formula/protobuf-swift.rb index e323e0ff50..f2548a302d 100644 --- a/Formula/protobuf-swift.rb +++ b/Formula/protobuf-swift.rb @@ -3,6 +3,7 @@ class ProtobufSwift < Formula homepage "https://github.com/alexeyxo/protobuf-swift" url "https://github.com/alexeyxo/protobuf-swift/archive/3.0.22.tar.gz" sha256 "3d24391b0e91c0bf665aa045b99279300b6ebaaf0aff18a273b5f39aabcd3700" + revision 1 bottle do cellar :any @@ -14,7 +15,7 @@ class ProtobufSwift < Formula depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build - depends_on "protobuf" + depends_on "protobuf@3.1" def install system "protoc", "-Iplugin/compiler", @@ -40,6 +41,6 @@ class ProtobufSwift < Formula } EOS (testpath/"test.proto").write(testdata) - system "protoc", "test.proto", "--swift_out=." + system Formula["protobuf@3.1"].opt_bin/"protoc", "test.proto", "--swift_out=." end end