forked from shivammathur/homebrew-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·36 lines (32 loc) · 1.63 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 Ast Extension
class AstAT83 < AbstractPhpExtension
init
desc "Ast PHP extension"
homepage "https://github.com/nikic/php-ast"
url "https://pecl.php.net/get/ast-1.1.2.tgz"
sha256 "8742427ff7c07ba93f940968f7363972ea040d97d847da3b79b4283c2a369dea"
head "https://github.com/nikic/php-ast.git", branch: "master"
license "BSD-3-Clause"
bottle do
root_url "https://ghcr.io/v2/shivammathur/extensions"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "1ef0168b873e7a4ad4a9b2ff65a8492538dbbb4c4d7445410affb4e438f241b4"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ce77d34cfdac5df284559a1482dd78fabdd052d509a03e261ce8625cfaade35e"
sha256 cellar: :any_skip_relocation, arm64_ventura: "a72a1c892fcd0373d3f2003f3620ed67de32321137ca63e73bc54f5e77b4c83f"
sha256 cellar: :any_skip_relocation, arm64_monterey: "8419c9cd1869963416343416dc009ca73b6d4190d0094fe2d0080ffe5b75f065"
sha256 cellar: :any_skip_relocation, ventura: "e973d76d9e1967e35460390b36a89cb4124598df9e4c00de14a795b0b004891b"
sha256 cellar: :any_skip_relocation, monterey: "3b173965e221f579add886108ee36dd4100c575541bc4bba57badf4eb3782af2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7922fd57d2d206d89ae330f417a1a413b5ce199d1833f9c4c6adb149db3c4fe8"
end
def install
Dir.chdir "ast-#{version}"
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig, "--enable-ast"
system "make"
prefix.install "modules/#{extension}.so"
write_config_file
add_include_files
end
end