git: c94e0944b7f5 - 2023Q2 - www/phpvirtualbox-legacy: PHP 8 support

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 22 May 2023 10:00:54 UTC
The branch 2023Q2 has been updated by vvd:

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

commit c94e0944b7f5e3c189673a25be75db3322bf0f72
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2023-05-22 09:52:20 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2023-05-22 10:00:46 +0000

    www/phpvirtualbox-legacy: PHP 8 support
    
    Patched from different sources
    
    PR:                     261498
    Approved by:            arrowd (mentor)
    Differential Revision:  https://reviews.freebsd.org/D40116
    
    (cherry picked from commit f3629be7b94fdc12e18b85c127ffdcfe894c7c07)
---
 www/phpvirtualbox-legacy/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/www/phpvirtualbox-legacy/Makefile b/www/phpvirtualbox-legacy/Makefile
index 5cb67911b912..2a41b96a98ae 100644
--- a/www/phpvirtualbox-legacy/Makefile
+++ b/www/phpvirtualbox-legacy/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	phpvirtualbox
 DISTVERSION=	5.2-1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 PKGNAMESUFFIX=	-legacy
 
@@ -22,6 +22,8 @@ DOS2UNIX_REGEX=	.*\.(php|txt|js|css|html)
 WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
 ETCDIR=		${WWWDIR}
 
+EXTRA_PATCHES+=	${.CURDIR}/../phpvirtualbox/files/patch-php8
+
 post-patch:
 	@${MV} ${WRKSRC}/phpvirtualbox.conf ${WRKSRC}/phpvirtualbox-legacy.conf
 	@${REINPLACE_CMD} -e 's#Alias /phpvirtualbox#Alias /phpvirtualbox-legacy#' \