forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·36 lines (32 loc) · 1.6 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: true
# frozen_string_literal: true
require File.expand_path("../Abstract/abstract-php-extension", __dir__)
# Class for Ds Extension
class DsAT82 < 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"
license "MIT"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "403f84fd1e0271fce8fad7ff9002913d946f043544401562392ed88139fc5b38"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "1bc3ca766ca9a32f4ca0ace8b2f6e68629d56af6273bbe3d3fcb649c7b52c604"
sha256 cellar: :any_skip_relocation, arm64_ventura: "0499082a862d0265f42ef9d2b036e3b1f7dbc41565cc1996d202ab9a60a53675"
sha256 cellar: :any_skip_relocation, arm64_monterey: "955ff72f02333085adbce4ab367c7d80ad6d951850de49ea2dfc6a8f66adbc52"
sha256 cellar: :any_skip_relocation, ventura: "c242d65a6d4ae0ac174b63a205434ef612468b40d0e61adf7ee3d6c1a4ae9ffb"
sha256 cellar: :any_skip_relocation, monterey: "e25ac8869b188a33a5b1116e33109b01ab4547b5bd7459331af4f7ae77f1b910"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e5a7dc243188a97813c9ec0c0fa06b11f358374de23546448549192792b62023"
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