git: 647e281f0bbb - main - www/phpvirtualbox-legacy: flavorize PHP

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 13 Jan 2025 18:01:49 UTC
The branch main has been updated by vvd:

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

commit 647e281f0bbb46b36d09be99cbd29379e1ca7dac
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-01-13 18:01:19 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-01-13 18:01:19 +0000

    www/phpvirtualbox-legacy: flavorize PHP
    
    Add PHP flavor to be able to use package with all PHP versions.
    
    While here pet portclippy.
---
 www/phpvirtualbox-legacy/Makefile | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/www/phpvirtualbox-legacy/Makefile b/www/phpvirtualbox-legacy/Makefile
index efaccedd0017..8ebf332edf09 100644
--- a/www/phpvirtualbox-legacy/Makefile
+++ b/www/phpvirtualbox-legacy/Makefile
@@ -1,8 +1,9 @@
 PORTNAME=	phpvirtualbox
 DISTVERSION=	5.2-1
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	www
-PKGNAMESUFFIX=	-legacy
+SUFFIX=		-legacy
+PKGNAMESUFFIX=	${SUFFIX}${PHP_PKGNAMESUFFIX}
 
 MAINTAINER=	vbox@FreeBSD.org
 COMMENT=	AJAX Web Interface for VirtualBox
@@ -10,20 +11,17 @@ WWW=		https://sourceforge.net/projects/phpvirtualbox/
 
 LICENSE=	GPLv3
 
-USES=		dos2unix php
-USE_PHP=	session simplexml soap xml
-
-NO_ARCH=	yes
-NO_BUILD=	yes
-
+USES=		dos2unix php:flavors
+DOS2UNIX_REGEX=	.*\.(php|txt|js|css|html)
 USE_GITHUB=	yes
+USE_PHP=	session simplexml soap xml
 
-DOS2UNIX_REGEX=	.*\.(php|txt|js|css|html)
-WWWDIR=		${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
 ETCDIR=		${WWWDIR}
-
+WWWDIR=		${PREFIX}/www/${PORTNAME}${SUFFIX}
 EXTRA_PATCHES+=	${.CURDIR}/../phpvirtualbox/files/patch-php8 \
 		${.CURDIR}/../phpvirtualbox/files/patch-panes_mediumEncryptionPasswords.html
+NO_ARCH=	yes
+NO_BUILD=	yes
 
 post-patch:
 	@${MV} ${WRKSRC}/phpvirtualbox.conf ${WRKSRC}/phpvirtualbox-legacy.conf