-
-
Notifications
You must be signed in to change notification settings - Fork 47
38 lines (33 loc) · 1.46 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: true
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Ds Extension
class DsAT84 < AbstractPhpExtension
init
desc "Ds PHP extension"
homepage "https://github.com/php-ds/ext-ds"
url "https://pecl.php.net/get/ds-1.5.0.tgz"
sha256 "2b2b45d609ca0958bda52098581ecbab2de749e0b3934d729de61a59226718b0"
head "https://github.com/php-ds/ext-ds.git", branch: "master"
license "MIT"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
rebuild 3
sha256 cellar: :any_skip_relocation, arm64_sequoia: "225abc150d1cac607b00268101bdea77e969ded04d18ec2e499814907d1ab0a2"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "024233a825d70c0dca2e447e9eb86d4ec2b4a2217b6d715f74959bdffdefec90"
sha256 cellar: :any_skip_relocation, arm64_ventura: "3312fd87b0ebfdd40ec341b1330392d006785e5af97ec5232bb26183406bfb77"
sha256 cellar: :any_skip_relocation, ventura: "686c553274993042c3b7c24a095e4ac045d454c418d528e0cd3b3ac7201f07b4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8d499b452550600e4a7436a6072bc8583b5c28ee046ad62c43dac1f436d5900c"
end
priority "30"
def install
Dir.chdir "ds-#{version}"
inreplace "src/common.h", "fast_add_function", "add_function"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, "--enable-ds"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end