-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
apcu@7.1.rb
executable file
·35 lines (31 loc) · 1.49 KB
/
apcu@7.1.rb
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
# typed: true
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Apcu Extension
class ApcuAT71 < AbstractPhpExtension
init
desc "Apcu PHP extension"
homepage "https://github.com/krakjoe/apcu"
url "https://pecl.php.net/get/apcu-5.1.23.tgz"
sha256 "67ee7464ccad2335c3fa4aeb0b8edbcf6d8344feea7922620c6a13015d604482"
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_sonoma: "ff0480112a7946daf876c9d6bf6ac0fb10b4f7ea3049ba3797f6ab1a3244eb55"
sha256 cellar: :any_skip_relocation, arm64_ventura: "7e81c342baf08519810db21e47e6c31b5da6741fd8dcc8a9ced078585b47be7f"
sha256 cellar: :any_skip_relocation, arm64_monterey: "33c9cd576bc6881cec968ab0c67cf1b53925dba8c0091cb4c9983f0dc3df5b50"
sha256 cellar: :any_skip_relocation, ventura: "bfa8c302621c3000f0ceacd832190cfb344146e401aea48fedf26a845a63e612"
sha256 cellar: :any_skip_relocation, monterey: "69a6ee5351b18edcb960170073a400589c1e2e06ae3f873440a144508326dc6e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d19222b8487814cc3e548f4d9e3d57d08a2c2a282ecbcc9ac75054f673857348"
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