forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·34 lines (30 loc) · 1.37 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
# typed: true
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Apcu Extension
class ApcuAT80 < AbstractPhpExtension
init
desc "Apcu PHP extension"
homepage "https://github.com/krakjoe/apcu"
url "https://pecl.php.net/get/apcu-5.1.24.tgz"
sha256 "5c28a55b27082c69657e25b7ecf553e2cf6b74ec3fa77d6b76f4fb982e001e43"
head "https://github.com/krakjoe/apcu.git"
license "PHP-3.01"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "e713752219d723a019f2f69b6ccc424936d9cc7f5382f1b7678049fee072a140"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "06ad506dd362bcb74d40a073793849d08736eafcabbfb9fce0fdfe7828879837"
sha256 cellar: :any_skip_relocation, arm64_ventura: "2f7b8643b36a52f730786e0825596ddacb1df033c4c0a73d837a45c1a6e86920"
sha256 cellar: :any_skip_relocation, ventura: "b699a1805cb7599b4367f79a2e34e31cefa3acf37b711a271ac9041642580ed1"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c0a7e4eca8e4435577b1adae9548097be6f079c57fca1084c20b76592179577c"
end
def install
Dir.chdir "apcu-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, "--enable-apcu"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end