protobuf-swift 3.0.23

depend on protobuf instead of protobuf@3.1

Closes #17318.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-08-28 02:58:11 -07:00
parent 73914b4657
commit dc6ca414f0

View file

@ -1,9 +1,8 @@
class ProtobufSwift < Formula class ProtobufSwift < Formula
desc "Implementation of Protocol Buffers in Swift" desc "Implementation of Protocol Buffers in Swift"
homepage "https://github.com/alexeyxo/protobuf-swift" homepage "https://github.com/alexeyxo/protobuf-swift"
url "https://github.com/alexeyxo/protobuf-swift/archive/3.0.22.tar.gz" url "https://github.com/alexeyxo/protobuf-swift/archive/3.0.23.tar.gz"
sha256 "3d24391b0e91c0bf665aa045b99279300b6ebaaf0aff18a273b5f39aabcd3700" sha256 "276ed362c440ebcfe258b1ccf38160983ec518a29855f35c0bf38b4a5fd38068"
revision 1
bottle do bottle do
cellar :any cellar :any
@ -15,10 +14,7 @@ class ProtobufSwift < Formula
depends_on "autoconf" => :build depends_on "autoconf" => :build
depends_on "automake" => :build depends_on "automake" => :build
depends_on "libtool" => :build depends_on "libtool" => :build
depends_on "protobuf"
# Upstream issue "protobuf 3.4.0 build failure"
# Reported 16 Aug 2017 https://github.com/alexeyxo/protobuf-swift/issues/217
depends_on "protobuf@3.1"
def install def install
system "protoc", "-Iplugin/compiler", system "protoc", "-Iplugin/compiler",
@ -44,6 +40,6 @@ class ProtobufSwift < Formula
} }
EOS EOS
(testpath/"test.proto").write(testdata) (testpath/"test.proto").write(testdata)
system Formula["protobuf@3.1"].opt_bin/"protoc", "test.proto", "--swift_out=." system Formula["protobuf"].opt_bin/"protoc", "test.proto", "--swift_out=."
end end
end end