forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·36 lines (32 loc) · 1.49 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
# typed: false
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Ds Extension
class DsAT81 < AbstractPhpExtension
init
desc "Ds PHP extension"
homepage "https://github.com/php-ds/ext-ds"
url "https://pecl.php.net/get/ds-1.4.0.tgz"
sha256 "a9b930582de8054e2b1a3502bec9d9e064941b5b9b217acc31e4b47f442b93ef"
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_monterey: "4802c60e38bee695d2a8c65900e2420d6a247db30bdc63832d30cf0efc985bd3"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "ae0170f17a983197ce7bb0594aa6e7613f7d7aefe1d8b1921b7089881289c18e"
sha256 cellar: :any_skip_relocation, monterey: "dc85a0efc7116ac0552dbafd37d0a6f5cb7334b5aefafbbbf9e22a59bcbc36f7"
sha256 cellar: :any_skip_relocation, big_sur: "ef8a2467bf62cf834532f3be8f0bb6f831f51600ffa2f0f4466880ad7998c7ad"
sha256 cellar: :any_skip_relocation, catalina: "ab4d57835e316b887bcdad68a0255d02f7c4c72788cbbcfc5f83fc64b728d778"
sha256 cellar: :any_skip_relocation, x86_64_linux: "44057bc1d9fd23236c94028ee27b6214901a1cae736cd8a24f6b067b0749ca3d"
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