git: 6182b2e04cbe - main - devel/pear-PHP_CodeCoverage: Update to 10.1.9

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 01 Dec 2023 22:18:19 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6182b2e04cbeacfc9b44c97660279b7ec934d5f2

commit 6182b2e04cbeacfc9b44c97660279b7ec934d5f2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-01 22:01:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-01 22:11:38 +0000

    devel/pear-PHP_CodeCoverage: Update to 10.1.9
    
    - Remove BUILD_DEPENDS
    - Change the way *_DEPENDS are set
    - Add NO_ARCH
    
    Changes:        https://github.com/sebastianbergmann/php-code-coverage/blob/main/ChangeLog-10.1.md
---
 devel/pear-PHP_CodeCoverage/Makefile  |  32 ++++------
 devel/pear-PHP_CodeCoverage/distinfo  |   6 +-
 devel/pear-PHP_CodeCoverage/pkg-plist | 112 ++++++++++++++++++++++++++++++++++
 3 files changed, 128 insertions(+), 22 deletions(-)

diff --git a/devel/pear-PHP_CodeCoverage/Makefile b/devel/pear-PHP_CodeCoverage/Makefile
index 02f74d83a5e7..80b96de9c589 100644
--- a/devel/pear-PHP_CodeCoverage/Makefile
+++ b/devel/pear-PHP_CodeCoverage/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	PHP_CodeCoverage
-DISTVERSION=	5.2.2
+PORTVERSION=	10.1.9
 CATEGORIES=	devel pear
 
 MAINTAINER=	sunpoet@FreeBSD.org
@@ -9,35 +9,29 @@ WWW=		https://github.com/sebastianbergmann/php-code-coverage
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PEAR_PKGNAMEPREFIX}File_Iterator>=1.4.2:devel/pear-File_Iterator@${PHP_FLAVOR} \
-		${PEAR_PKGNAMEPREFIX}PHP_TokenStream>=1.4.11:devel/pear-PHP_TokenStream@${PHP_FLAVOR} \
-		${PEAR_PKGNAMEPREFIX}Text_Template>=1.2.0:textproc/pear-Text_Template@${PHP_FLAVOR}
-RUN_DEPENDS=	${PEAR_PKGNAMEPREFIX}File_Iterator>=1.4.2:devel/pear-File_Iterator@${PHP_FLAVOR} \
-		${PEAR_PKGNAMEPREFIX}PHP_TokenStream>=1.4.11:devel/pear-PHP_TokenStream@${PHP_FLAVOR} \
-		${PEAR_PKGNAMEPREFIX}Text_Template>=1.2.0:textproc/pear-Text_Template@${PHP_FLAVOR}
+RUN_DEPENDS=	${PEAR_PKGNAMEPREFIX}File_Iterator>=0:devel/pear-File_Iterator@${PHP_FLAVOR} \
+		${PEAR_PKGNAMEPREFIX}PHP_TokenStream>=01:devel/pear-PHP_TokenStream@${PHP_FLAVOR} \
+		${PEAR_PKGNAMEPREFIX}Text_Template>=0:textproc/pear-Text_Template@${PHP_FLAVOR}
+
+USES=		pear:env
+
+NO_ARCH=	yes
+NO_BUILD=	yes
 
-USES=	pear:env
 USE_GITHUB=	yes
 GH_ACCOUNT=	sebastianbergmann
 GH_PROJECT=	php-code-coverage
 
-NO_BUILD=	yes
-
 OPTIONS_DEFINE=	DOM XDEBUG
 DOM_DESC=	Enable DOM support
 XDEBUG_DESC=	Enable Xdebug support
 
-DOM_USES=	php
 DOM_USE=	PHP=dom
-XDEBUG_RUN_DEPENDS=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/xdebug.so:devel/pecl-xdebug@${PHP_FLAVOR}
-
-PHP_DIR=	share/PHP
-
-PLIST_FILES=	${PHP_DIR}/${PORTNAME}/CodeCoverage.php
+DOM_USES=	php
+XDEBUG_RUN_DEPENDS=	${PECL_PKGNAMEPREFIX}xdebug>=0:devel/pecl-xdebug@${PHP_FLAVOR}
 
 do-install:
-	${MKDIR} ${STAGEDIR}${PREFIX}/${PHP_DIR}/${PORTNAME}
-	${INSTALL_SCRIPT} ${WRKSRC}/src/CodeCoverage.php \
-		${STAGEDIR}${PREFIX}/${PHP_DIR}/${PORTNAME}
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	cd ${WRKSRC}/src/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>
diff --git a/devel/pear-PHP_CodeCoverage/distinfo b/devel/pear-PHP_CodeCoverage/distinfo
index 943b0d0913f6..808e0ac5203c 100644
--- a/devel/pear-PHP_CodeCoverage/distinfo
+++ b/devel/pear-PHP_CodeCoverage/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1508502796
-SHA256 (sebastianbergmann-php-code-coverage-5.2.2_GH0.tar.gz) = bb72a49fcf59d40ad77a6c91ccd23472e2d7d13149a70a658039876af13347bf
-SIZE (sebastianbergmann-php-code-coverage-5.2.2_GH0.tar.gz) = 353591
+TIMESTAMP = 1701363672
+SHA256 (sebastianbergmann-php-code-coverage-10.1.9_GH0.tar.gz) = 5642f20e9efc6afbaf80a3eda8edecbd25b41066d0858d02a1c4ecc911252bd9
+SIZE (sebastianbergmann-php-code-coverage-10.1.9_GH0.tar.gz) = 232509
diff --git a/devel/pear-PHP_CodeCoverage/pkg-plist b/devel/pear-PHP_CodeCoverage/pkg-plist
new file mode 100644
index 000000000000..5b84b03a5977
--- /dev/null
+++ b/devel/pear-PHP_CodeCoverage/pkg-plist
@@ -0,0 +1,112 @@
+%%DATADIR%%/CodeCoverage.php
+%%DATADIR%%/Data/ProcessedCodeCoverageData.php
+%%DATADIR%%/Data/RawCodeCoverageData.php
+%%DATADIR%%/Driver/Driver.php
+%%DATADIR%%/Driver/PcovDriver.php
+%%DATADIR%%/Driver/Selector.php
+%%DATADIR%%/Driver/XdebugDriver.php
+%%DATADIR%%/Exception/BranchAndPathCoverageNotSupportedException.php
+%%DATADIR%%/Exception/DeadCodeDetectionNotSupportedException.php
+%%DATADIR%%/Exception/DirectoryCouldNotBeCreatedException.php
+%%DATADIR%%/Exception/Exception.php
+%%DATADIR%%/Exception/FileCouldNotBeWrittenException.php
+%%DATADIR%%/Exception/InvalidArgumentException.php
+%%DATADIR%%/Exception/NoCodeCoverageDriverAvailableException.php
+%%DATADIR%%/Exception/NoCodeCoverageDriverWithPathCoverageSupportAvailableException.php
+%%DATADIR%%/Exception/ParserException.php
+%%DATADIR%%/Exception/PathExistsButIsNotDirectoryException.php
+%%DATADIR%%/Exception/PcovNotAvailableException.php
+%%DATADIR%%/Exception/ReflectionException.php
+%%DATADIR%%/Exception/ReportAlreadyFinalizedException.php
+%%DATADIR%%/Exception/StaticAnalysisCacheNotConfiguredException.php
+%%DATADIR%%/Exception/TestIdMissingException.php
+%%DATADIR%%/Exception/UnintentionallyCoveredCodeException.php
+%%DATADIR%%/Exception/WriteOperationFailedException.php
+%%DATADIR%%/Exception/XdebugNotAvailableException.php
+%%DATADIR%%/Exception/XdebugNotEnabledException.php
+%%DATADIR%%/Exception/XmlException.php
+%%DATADIR%%/Filter.php
+%%DATADIR%%/Node/AbstractNode.php
+%%DATADIR%%/Node/Builder.php
+%%DATADIR%%/Node/CrapIndex.php
+%%DATADIR%%/Node/Directory.php
+%%DATADIR%%/Node/File.php
+%%DATADIR%%/Node/Iterator.php
+%%DATADIR%%/Report/Clover.php
+%%DATADIR%%/Report/Cobertura.php
+%%DATADIR%%/Report/Crap4j.php
+%%DATADIR%%/Report/Html/Colors.php
+%%DATADIR%%/Report/Html/CustomCssFile.php
+%%DATADIR%%/Report/Html/Facade.php
+%%DATADIR%%/Report/Html/Renderer.php
+%%DATADIR%%/Report/Html/Renderer/Dashboard.php
+%%DATADIR%%/Report/Html/Renderer/Directory.php
+%%DATADIR%%/Report/Html/Renderer/File.php
+%%DATADIR%%/Report/Html/Renderer/Template/branches.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/coverage_bar.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/coverage_bar_branch.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/css/bootstrap.min.css
+%%DATADIR%%/Report/Html/Renderer/Template/css/custom.css
+%%DATADIR%%/Report/Html/Renderer/Template/css/nv.d3.min.css
+%%DATADIR%%/Report/Html/Renderer/Template/css/octicons.css
+%%DATADIR%%/Report/Html/Renderer/Template/css/style.css
+%%DATADIR%%/Report/Html/Renderer/Template/dashboard.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/dashboard_branch.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/directory.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/directory_branch.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/directory_item.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/directory_item_branch.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/file.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/file_branch.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/file_item.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/file_item_branch.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/icons/file-code.svg
+%%DATADIR%%/Report/Html/Renderer/Template/icons/file-directory.svg
+%%DATADIR%%/Report/Html/Renderer/Template/js/bootstrap.min.js
+%%DATADIR%%/Report/Html/Renderer/Template/js/d3.min.js
+%%DATADIR%%/Report/Html/Renderer/Template/js/file.js
+%%DATADIR%%/Report/Html/Renderer/Template/js/jquery.min.js
+%%DATADIR%%/Report/Html/Renderer/Template/js/nv.d3.min.js
+%%DATADIR%%/Report/Html/Renderer/Template/js/popper.min.js
+%%DATADIR%%/Report/Html/Renderer/Template/line.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/lines.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/method_item.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/method_item_branch.html.dist
+%%DATADIR%%/Report/Html/Renderer/Template/paths.html.dist
+%%DATADIR%%/Report/PHP.php
+%%DATADIR%%/Report/Text.php
+%%DATADIR%%/Report/Thresholds.php
+%%DATADIR%%/Report/Xml/BuildInformation.php
+%%DATADIR%%/Report/Xml/Coverage.php
+%%DATADIR%%/Report/Xml/Directory.php
+%%DATADIR%%/Report/Xml/Facade.php
+%%DATADIR%%/Report/Xml/File.php
+%%DATADIR%%/Report/Xml/Method.php
+%%DATADIR%%/Report/Xml/Node.php
+%%DATADIR%%/Report/Xml/Project.php
+%%DATADIR%%/Report/Xml/Report.php
+%%DATADIR%%/Report/Xml/Source.php
+%%DATADIR%%/Report/Xml/Tests.php
+%%DATADIR%%/Report/Xml/Totals.php
+%%DATADIR%%/Report/Xml/Unit.php
+%%DATADIR%%/StaticAnalysis/CacheWarmer.php
+%%DATADIR%%/StaticAnalysis/CachingFileAnalyser.php
+%%DATADIR%%/StaticAnalysis/CodeUnitFindingVisitor.php
+%%DATADIR%%/StaticAnalysis/ExecutableLinesFindingVisitor.php
+%%DATADIR%%/StaticAnalysis/FileAnalyser.php
+%%DATADIR%%/StaticAnalysis/IgnoredLinesFindingVisitor.php
+%%DATADIR%%/StaticAnalysis/ParsingFileAnalyser.php
+%%DATADIR%%/TestSize/Known.php
+%%DATADIR%%/TestSize/Large.php
+%%DATADIR%%/TestSize/Medium.php
+%%DATADIR%%/TestSize/Small.php
+%%DATADIR%%/TestSize/TestSize.php
+%%DATADIR%%/TestSize/Unknown.php
+%%DATADIR%%/TestStatus/Failure.php
+%%DATADIR%%/TestStatus/Known.php
+%%DATADIR%%/TestStatus/Success.php
+%%DATADIR%%/TestStatus/TestStatus.php
+%%DATADIR%%/TestStatus/Unknown.php
+%%DATADIR%%/Util/Filesystem.php
+%%DATADIR%%/Util/Percentage.php
+%%DATADIR%%/Version.php