git: f3629be7b94f - main - www/phpvirtualbox-legacy: PHP 8 support

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 22 May 2023 09:53:25 UTC
The branch main has been updated by vvd:

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

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

    www/phpvirtualbox-legacy: PHP 8 support
    
    Patched from different sources
    
    PR:                     261498
    Approved by:            arrowd (mentor)
    Differential Revision:  https://reviews.freebsd.org/D40116
---
 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 117f2698e55b..38709462e376 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#' \