forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·40 lines (35 loc) · 1.25 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
39
40
# typed: false
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Imap Extension
class ImapAT80 < AbstractPhpExtension
init
desc "Imap PHP extension"
homepage "https://github.com/php/php-src"
url "https://www.php.net/distributions/php-8.0.6.tar.xz"
sha256 "e9871d3b6c391fe9e89f86f6334852dcc10eeaaa8d5565beb8436e7f0cf30e20"
license "PHP-3.01"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
sha256 arm64_big_sur: "e94111475c9dae857f90905123eda2f0872d2c8dc82ff11f2fadf824762bed4c"
sha256 big_sur: "6033f2bb8f8673411395ae5db20e2298837138451c86c5c76aa96f757fb369c1"
sha256 catalina: "d38efb3a1c09a671bee81c3d50d2875a5fc6f22d13ea51087c9ae37cc62ce131"
end
depends_on "imap-uw"
depends_on "[email protected]"
depends_on "krb5"
def install
Dir.chdir "ext/#{extension}"
safe_phpize
system "./configure", \
"--prefix=#{prefix}", \
phpconfig, \
"--with-imap=shared, #{Formula["imap-uw"].opt_prefix}", \
"--with-imap-ssl=#{Formula["[email protected]"].opt_prefix}", \
"--with-kerberos"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end