forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·38 lines (33 loc) · 1.36 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
38
# typed: false
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Amqp Extension
class AmqpAT73 < AbstractPhpExtension
init
desc "Amqp PHP extension"
homepage "https://github.com/php-amqp/php-amqp"
url "https://pecl.php.net/get/amqp-1.11.0.tgz"
sha256 "dc5212b4785f59955118a219bbfbcedb7aa6ab2a91e8038a0ad1898f331c2f08"
head "https://github.com/php-amqp/php-amqp"
license "PHP-3.01"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
sha256 cellar: :any, arm64_big_sur: "30b27717f0562784be0aa8aecaeb1f6b73497ed50dfc9c61a863baabcbf7ad48"
sha256 cellar: :any, big_sur: "38f49ed23c14ad73ca38cbe6d3963b300814d66e9cb785e04f41a4350b43804c"
sha256 cellar: :any, catalina: "314bf7de613f2a3bf4ca1fdbb3aa407c73a6f82de2bf665168607b3a9957dbcf"
sha256 cellar: :any_skip_relocation, x86_64_linux: "a3f8b4d3dde1e5b9dcc6dd2788c414e1ef401d8afe40706961dc40dd1e1fee3f"
end
depends_on "rabbitmq-c"
def install
args = %W[
--with-amqp=shared
--with-librabbitmq-dir=#{Formula["rabbitmq-c"].opt_prefix}
]
Dir.chdir "amqp-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, *args
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
end
end