git: 38e70588aad9 - main - devel/phpunit11: Add phpunit11 11.0.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:16:59 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=38e70588aad9d77e8d41511c778bf835d2af8786

commit 38e70588aad9d77e8d41511c778bf835d2af8786
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:12:42 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:06:03 +0000

    devel/phpunit11: Add phpunit11 11.0.3
    
    PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of
    the xUnit architecture for unit testing frameworks.
---
 devel/Makefile            |  1 +
 devel/phpunit11/Makefile  | 34 ++++++++++++++++++++++++++++++++++
 devel/phpunit11/distinfo  |  3 +++
 devel/phpunit11/pkg-descr |  2 ++
 4 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 51f87e559a17..e8744e049fed 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4135,6 +4135,7 @@
     SUBDIR += php83-sysvshm
     SUBDIR += php83-tokenizer
     SUBDIR += phpunit10
+    SUBDIR += phpunit11
     SUBDIR += phpunit8
     SUBDIR += phpunit9
     SUBDIR += physfs
diff --git a/devel/phpunit11/Makefile b/devel/phpunit11/Makefile
new file mode 100644
index 000000000000..4f88ddd96da8
--- /dev/null
+++ b/devel/phpunit11/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	phpunit
+PORTVERSION=	11.0.3
+CATEGORIES=	devel www
+MASTER_SITES=	https://phar.phpunit.de/
+PKGNAMESUFFIX=	11${PHP_PKGNAMESUFFIX}
+EXTRACT_SUFX=	.phar
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Testing framework for unit tests
+WWW=		https://phpunit.de/ \
+		https://github.com/sebastianbergmann/phpunit
+
+LICENSE=	BSD3CLAUSE
+
+USES=		cpe php:flavors
+USE_PHP=	dom phar
+
+IGNORE_WITH_PHP=81
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	bin/phpunit
+
+CONFLICTS_INSTALL=	phpunit*
+
+CPE_VENDOR=	phpunit_project
+
+do-extract:
+	@${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/phpunit
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKDIR}/phpunit ${STAGEDIR}${PREFIX}/bin/phpunit
+
+.include <bsd.port.mk>
diff --git a/devel/phpunit11/distinfo b/devel/phpunit11/distinfo
new file mode 100644
index 000000000000..4f588316fc26
--- /dev/null
+++ b/devel/phpunit11/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708448808
+SHA256 (phpunit-11.0.3.phar) = caae48ecf74940a17b1d5e78d6a93a7b703c2acc428f73d9acdedf7d6ffee97b
+SIZE (phpunit-11.0.3.phar) = 5015595
diff --git a/devel/phpunit11/pkg-descr b/devel/phpunit11/pkg-descr
new file mode 100644
index 000000000000..102dc6c002c2
--- /dev/null
+++ b/devel/phpunit11/pkg-descr
@@ -0,0 +1,2 @@
+PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of
+the xUnit architecture for unit testing frameworks.