@@ -4,30 +4,36 @@ class ProtocGenGrpcWeb < Formula
44 url "https://github.com/grpc/grpc-web/archive/refs/tags/2.0.2.tar.gz"
55 sha256 "0f0c8c0c1104306d67dad678be7c14efe52a698795a58b2b72ab67a8bb100c15"
66 license "Apache-2.0"
7- revision 1
7+ revision 2
88
99 livecheck do
1010 url :stable
1111 regex ( /^v?(\d +(?:\. \d +)+)$/i )
1212 end
1313
1414 bottle do
15- sha256 cellar : :any , arm64_tahoe : "13178dfca8ddd03fc346eed87951e26ad6b16bbc6608e491c00f0476b2fd5f88 "
16- sha256 cellar : :any , arm64_sequoia : "32448216f271a5d1a457d6c0217c99bf2cedf452c35e3562eafc1d0fb6599e05 "
17- sha256 cellar : :any , arm64_sonoma : "3aa8f7c66330e5e3fceb999a510908dc630dc6ffa48f7a723ca3e5d636db97ff "
18- sha256 cellar : :any , sonoma : "64dc0d89e0174058722346d0899605d216a9e870b1f524f27302f1e56469f385 "
19- sha256 cellar : :any_skip_relocation , arm64_linux : "6ce007070940c0e439c96393516143e1a7a299a1ed7ecc4d6967948cbb773cb7 "
20- sha256 cellar : :any_skip_relocation , x86_64_linux : "6d0104fa8cb7244505031d58e09c2027b25c001f75d5a5b1a8b6b92b3f423b5e "
15+ sha256 cellar : :any , arm64_tahoe : "9af493e95682f631439158b401f97298ce962cb800b7b9124669c771f4a8765d "
16+ sha256 cellar : :any , arm64_sequoia : "eb6bb14dcfe3c1aa89abfdbb933c09f33626c2b6b4c5de5666986692e6364cc1 "
17+ sha256 cellar : :any , arm64_sonoma : "b8856c973c1d821803a2616b22275f4c94b5ae4bb3390990e53044fad0a063b4 "
18+ sha256 cellar : :any , sonoma : "ec9590373e9414070067925b83954e9920957c631ff740478eeb14775d9b9776 "
19+ sha256 cellar : :any_skip_relocation , arm64_linux : "5b32d54f7a13da54578aa4fea781eeb4981343354d839caa42fe5ccaa1722d5a "
20+ sha256 cellar : :any_skip_relocation , x86_64_linux : "a78f69a6baf9b44939f78c40f7b73ea85de1a4fd87f0cddd7f5958eb494fbd70 "
2121 end
2222
2323 depends_on "cmake" => :build
2424 depends_on "pkgconf" => :build
2525 depends_on "node" => :test
2626 depends_on "typescript" => :test
2727 depends_on "abseil"
28- depends_on "protobuf@29 "
28+ depends_on "protobuf"
2929 depends_on "protoc-gen-js"
3030
31+ # Workaround to build with Protobuf 30+. Issue ref: https://github.com/grpc/grpc-web/issues/1522
32+ patch do
33+ url "https://raw.githubusercontent.com/Homebrew/homebrew-core/d0b7cf85a11a9acfa1a422305948dff6621bbda9/Patches/protoc-gen-grpc-web/protobuf-30.diff"
34+ sha256 "9c7e0ddf5ba68c179e7b8edc2c48de5b9b9d4801a6c8fd93ee199e27291aeebd"
35+ end
36+
3137 def install
3238 # Workarounds to build with latest `protobuf` which needs Abseil link flags and C++17
3339 ENV . append "LDFLAGS" , Utils . safe_popen_read ( "pkgconf" , "--libs" , "protobuf" ) . chomp
@@ -57,7 +63,7 @@ def install
5763 rpc RunTest(Test) returns (TestResult);
5864 }
5965 PROTO
60- protoc = Formula [ "protobuf@29 " ] . bin /"protoc"
66+ protoc = Formula [ "protobuf" ] . bin /"protoc"
6167 system protoc , "test.proto" , "--plugin=#{ bin } /protoc-gen-grpc-web" ,
6268 "--js_out=import_style=commonjs:." ,
6369 "--grpc-web_out=import_style=typescript,mode=grpcwebtext:."
0 commit comments