forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·37 lines (32 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# typed: false
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for GRPC Extension
class GrpcAT83 < AbstractPhpExtension
init
desc "gRPC PHP extension"
homepage "https://github.com/grpc/grpc"
url "https://pecl.php.net/get/grpc-1.51.1.tgz"
sha256 "a8a79bf27bceeb8088c2a3a5a76c1146bbbd3e8d7a8a13e44ddbcfd715213ba9"
head "https://github.com/grpc/grpc.git", branch: "master"
license "Apache-2.0"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
sha256 cellar: :any_skip_relocation, arm64_monterey: "5eacfeaea75f6720ffe2b80b0ae22152753c41327abfe5a0423cedc2c8a8bbba"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "0ccb1943e439ce0e1802f8861db92302f224347ecd2813b7d530e08f6de48989"
sha256 cellar: :any_skip_relocation, monterey: "d54b5e2497ef2dd53e46628e245567deacde9be5746147278128a31ddf97e513"
sha256 cellar: :any_skip_relocation, big_sur: "67abbe9682f0fe5606ceb0897161b2ba3c90aed8539b72f9ad4ccf257101fdf7"
sha256 cellar: :any_skip_relocation, catalina: "b3142371b3ee91c9bc938aae1d3bf9f15dd2a2e319153c923d3713caaeaf8f6a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c0a3d4935dbfce870d30c400137cf133e52401e600e95eab91bf109ea43444e1"
end
depends_on "grpc"
def install
Dir.chdir "grpc-#{version}"
patch_spl_symbols
safe_phpize
system "./configure", "--enable-grpc"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
end
end