-
-
Notifications
You must be signed in to change notification settings - Fork 48
executable file
·39 lines (35 loc) · 1.86 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
# typed: true
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Ds Extension
class DsAT71 < AbstractPhpExtension
init
desc "Ds PHP extension"
homepage "https://github.com/php-ds/ext-ds"
url "https://pecl.php.net/get/ds-1.3.0.tgz"
sha256 "0114b146e1036d75a83cd438200df73db030b5d12b8c687843809d1d0cec91be"
head "https://github.com/php-ds/ext-ds.git"
license "MIT"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "dc1f7d52efcc9478b2e7505f444e0314ebcd781ee48591fa21777d9f43808404"
sha256 cellar: :any_skip_relocation, arm64_ventura: "69adc3dd2aac571f8322b0986a82f289c20faf1276795a4a9e9142f2f5467a14"
sha256 cellar: :any_skip_relocation, arm64_monterey: "a95af1503ba898378168bd918fbb8f2fcf79f747d255a5b51625509ce4c09e47"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "fd0157a2c0bd3b811e999f3bf12dbfb93fd681027acf754e06c495ed6bcf6621"
sha256 cellar: :any_skip_relocation, ventura: "8d189d5a7a20867561c91c93153c3f0d3120a42a3dfe38470030dd6fe9926c52"
sha256 cellar: :any_skip_relocation, monterey: "760b3771efa21edd8ddd3491fb0111bbf6559841669f57509907feb3efae16df"
sha256 cellar: :any_skip_relocation, big_sur: "0ff34900d0a3f87eb8262a16743a2ed7de0de0eaabe115d832fd807800777799"
sha256 cellar: :any_skip_relocation, catalina: "7e654514d3a7dd776935c5cbe53e8469d332ea72b99dfb61a084ac9b9711901e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8d656a42cfb56092514e0eed6e6d8a5be28508286e2ea20ee8e91b503ef49ee5"
end
def install
Dir.chdir "ds-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, "--enable-ds"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end