git: dafb3cafaf77 - main - editors/ghostwriter: Fix Makefile causing errors

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Sun, 15 Jan 2023 23:30:33 UTC
The branch main has been updated by madpilot:

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

commit dafb3cafaf774e89c3ebd1500ce56fba5665da02
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2023-01-15 23:27:43 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-01-15 23:30:26 +0000

    editors/ghostwriter: Fix Makefile causing errors
    
    Using FLAVOR?=${FLAVORS:[0]} confuses the ports make system.
    
    To avoid the issue write the actual flavor string directly.
    
    Reported by:    dvl
    Fixes:          6d8e63c53f121527898f3228fdecdc72a57022e3
---
 editors/ghostwriter/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editors/ghostwriter/Makefile b/editors/ghostwriter/Makefile
index afdc9ef9ed74..b363958b6dd1 100644
--- a/editors/ghostwriter/Makefile
+++ b/editors/ghostwriter/Makefile
@@ -12,7 +12,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell
 
 FLAVORS=	qt5 qt6
-FLAVOR?=	${FLAVORS:[0]}
+FLAVOR?=	qt5
 qt5_PKGNAMESUFFIX=
 qt6_PKGNAMESUFFIX=	-qt6
 qt5_CONFLICTS_INSTALL=	${PORTNAME}-qt6