git: cb493dd4d331 - main - deskutils/kuserfeedback: add SERVER option

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Wed, 24 Aug 2022 14:06:58 UTC
The branch main has been updated by tcberner:

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

commit cb493dd4d331019af91d0bdc5cb2b042db836992
Author:     Tobias C. Berner <tcberner@FreeBSD.org>
AuthorDate: 2022-08-24 13:57:47 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-08-24 14:06:36 +0000

    deskutils/kuserfeedback: add SERVER option
    
    Allow users to toggle in full kuserfeedback support (php dependency)
    by using the SERVER option.
    
    Suggested by:   fluffy
---
 deskutils/kuserfeedback/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/deskutils/kuserfeedback/Makefile b/deskutils/kuserfeedback/Makefile
index 827360934640..8ffd9aed26e1 100644
--- a/deskutils/kuserfeedback/Makefile
+++ b/deskutils/kuserfeedback/Makefile
@@ -10,9 +10,17 @@ COMMENT=	Framework for collecting user feedback
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING.LIB
 
-USES=		bison cmake compiler:c++11-lang kde:5 php qt:5 tar:xz
+USES=		bison cmake compiler:c++11-lang kde:5 qt:5 tar:xz
 USE_KDE=	ecm
 USE_QT=		charts core declarative gui network printsupport svg widgets \
 		buildtools_build help_build qdoc_build qmake_build
 
+OPTIONS_DEFINE=	SERVER
+
+SERVER_DESC=		Enable all features (requires php)
+SERVER_USES=		php
+SERVER_CMAKE_BOOL=	ENABLE_PHP
+SERVER_BUILD_DEPENDS=	phpunit:devel/phpunit6@${PHP_FLAVOR}
+SERVER_RUN_DEPENDS=	phpunit:devel/phpunit6@${PHP_FLAVOR}
+
 .include <bsd.port.mk>