Skip to content

Commit

Permalink
protobuf-swift: depend on protobuf@3.1
Browse files Browse the repository at this point in the history
instead of protobuf
  • Loading branch information
ed-flanagan authored and ilovezfs committed Aug 25, 2017
1 parent 65c570e commit 825c64b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Formula/protobuf-swift.rb
Expand Up @@ -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
Expand All @@ -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",
Expand All @@ -40,6 +41,6 @@ def install
}
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

0 comments on commit 825c64b

Please sign in to comment.