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 DsAT80 < 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: "de234faf47e0c5ed06358954cb77e2c5706f7339b5f2f43771fccd258a4fb405"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "db68f551afe0691af5a9bafb4624c427085b7a8b45ee378d933bafc01ef36e8c"
sha256 cellar: :any_skip_relocation, monterey: "0f049d7c715fe476e788604e9977aa38e5d0af03dc876e24cf68d22ec419d81e"
sha256 cellar: :any_skip_relocation, big_sur: "87815c1b3ab628bde71817784a645095c2f6aa4aa4586febd64b817385e52dcb"
sha256 cellar: :any_skip_relocation, catalina: "67497bb97007ca6fb2db27f961ccc12886ffcfb09eff7ebff4bb1c9c9cddf239"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3b57cdc8e7834885cf144e093b7ba433b98c81fbf1753b528c680593eec46982"
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