git: 43defe60d266 - main - editors/tea: Migrate to QT6

From: Danilo Egea Gondolfo <danilo_at_FreeBSD.org>
Date: Wed, 22 Oct 2025 08:21:47 UTC
The branch main has been updated by danilo:

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

commit 43defe60d266302832c16590f35d4bce4268eee6
Author:     Danilo Egea Gondolfo <danilo@FreeBSD.org>
AuthorDate: 2025-10-22 08:13:47 +0000
Commit:     Danilo Egea Gondolfo <danilo@FreeBSD.org>
CommitDate: 2025-10-22 08:13:47 +0000

    editors/tea: Migrate to QT6
    
    - Switch build system to cmake as suggested by the README file
    - Enable printer support by default as it's part of QT6 base
    - Remove some unecessary entries from USES
    
    PR:             289719
---
 editors/tea/Makefile  | 22 ++++++++--------------
 editors/tea/pkg-plist | 10 ++++++++++
 2 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/editors/tea/Makefile b/editors/tea/Makefile
index 3d2c4c806b8b..039754a7ca8a 100644
--- a/editors/tea/Makefile
+++ b/editors/tea/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	tea
 PORTVERSION=	63.3.1
+PORTREVISION=	1
 CATEGORIES=	editors
 
 MAINTAINER=	danilo@FreeBSD.org
@@ -8,7 +9,7 @@ WWW=		https://tea.ourproject.org/
 
 LICENSE=	GPLv3
 
-USES=		compiler:c++11-lang gl gmake pkgconfig:build qmake qt:5 xorg
+USES=		cmake desktop-file-utils gl localbase:ldflags pkgconfig:build qt:6
 
 OPTIONS_DEFINE=		DOCS
 OPTIONS_GROUP=		SPELL
@@ -16,30 +17,23 @@ OPTIONS_GROUP_SPELL=	ASPELL HUNSPELL
 OPTIONS_DEFAULT=	ASPELL HUNSPELL
 SPELL_DESC=		Spell checker backend
 
-USE_QT=		buildtools:build core declarative gui network widgets printsupport
-USE_GL=		gl
+USE_QT=		base
+USE_GL=		opengl
 USE_LOCALE=	en_US.UTF-8
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	psemiletov
 GH_PROJECT=	${PORTNAME}-qt
 
-LDFLAGS+=	-lz
-PLIST_FILES=	bin/tea share/pixmaps/tea_icon_v2.png
-PORTDOCS=	*
-
-DESKTOP_ENTRIES="TEA" "" "${PREFIX}/share/pixmaps/tea_icon_v2.png" \
-		"${PORTNAME}" "" ""
+CMAKE_ARGS+=	-DUSE_PRINTER=ON
 
 ASPELL_LIB_DEPENDS=	libaspell.so:textproc/aspell
-ASPELL_QMAKE_OFF=	CONFIG+=noaspell
+ASPELL_CMAKE_BOOL=	USE_ASPELL
 
 HUNSPELL_LIB_DEPENDS=	libhunspell-1.7.so:textproc/hunspell
-HUNSPELL_QMAKE_OFF=	CONFIG+=nohunspell
+HUNSPELL_CMAKE_BOOL=	USE_HUNSPELL
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/tea ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_DATA} ${WRKSRC}/icons/tea_icon_v2.png ${STAGEDIR}${PREFIX}/share/pixmaps
+post-install:
 	(cd ${WRKSRC}/manuals \
 		&& ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
 
diff --git a/editors/tea/pkg-plist b/editors/tea/pkg-plist
new file mode 100644
index 000000000000..8ac7cc15215c
--- /dev/null
+++ b/editors/tea/pkg-plist
@@ -0,0 +1,10 @@
+bin/tea
+share/applications/tea.desktop
+%%PORTDOCS%%%%DOCSDIR%%/en.html
+%%PORTDOCS%%%%DOCSDIR%%/pl.html
+%%PORTDOCS%%%%DOCSDIR%%/ru.html
+share/icons/hicolor/128x128/apps/tea.png
+share/icons/hicolor/32x32/apps/tea.png
+share/icons/hicolor/48x48/apps/tea.png
+share/icons/hicolor/64x64/apps/tea.png
+share/icons/hicolor/scalable/apps/tea.svg