From 1d592b1d0b820551bf117f7123ae68404aebdf95 Mon Sep 17 00:00:00 2001
From: Travis Paul
Date: Wed, 15 Apr 2020 15:27:52 +0800
Subject: [PATCH] php-ast: import php-ast-1.0.6 as devel/php-ast
---
Makefile | 1 +
php-ast/DESCR | 1 +
php-ast/Makefile | 20 ++++++++++++++++++++
php-ast/distinfo | 6 ++++++
4 files changed, 28 insertions(+)
create mode 100644 php-ast/DESCR
create mode 100644 php-ast/Makefile
create mode 100644 php-ast/distinfo
diff --git a/Makefile b/Makefile
index 66a0fc162d..d62b656be3 100644
--- a/Makefile
+++ b/Makefile
@@ -2917,6 +2917,7 @@ SUBDIR+= phantomjs
SUBDIR+= phantomjs2
SUBDIR+= pheanstalk
SUBDIR+= phonon-backend-xine
+SUBDIR+= php-ast
SUBDIR+= php-dotclear
SUBDIR+= php-imagick-imagick6
SUBDIR+= php-libawl-git
diff --git a/php-ast/DESCR b/php-ast/DESCR
new file mode 100644
index 0000000000..83d0b1695f
--- /dev/null
+++ b/php-ast/DESCR
@@ -0,0 +1 @@
+This extension exposes the abstract syntax tree generated by PHP 7.
diff --git a/php-ast/Makefile b/php-ast/Makefile
new file mode 100644
index 0000000000..db83cc9515
--- /dev/null
+++ b/php-ast/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+MODNAME= ast
+PECL_VERSION= 1.0.6
+CATEGORIES= devel
+
+MAINTAINER= tpaul@NetBSD.org
+HOMEPAGE= https://pecl.php.net/package/ast
+LICENSE= modified-bsd
+COMMENT= Extension exposing PHP 7 abstract syntax tree
+
+CONFIGURE_ARGS+= --with-ast=${PREFIX}
+
+PHP_VERSIONS_INCOMPATIBLE= 56
+
+TEST_TARGET= test
+TEST_ENV= NO_INTERACTION=set
+
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/php-ast/distinfo b/php-ast/distinfo
new file mode 100644
index 0000000000..222b1933a4
--- /dev/null
+++ b/php-ast/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (php-ast/ast-1.0.6.tgz) = f50cfe5cd10f54a61c617c2c6b8bbdf5862a48bf
+RMD160 (php-ast/ast-1.0.6.tgz) = da79697181e44dd2bc35b35d09d1c137bde21f20
+SHA512 (php-ast/ast-1.0.6.tgz) = 42ee07ee082ea3c6dcfd86ba25aa3d5bf188f277684acd63f5013b3da6b9ea5eafa2ac55a630ffe43aaf2d7366f055a372e61912a426e1413710658b1d9e4013
+Size (php-ast/ast-1.0.6.tgz) = 41041 bytes