git: c085119a6e05 - main - graphics/converseen: update to 0.12.0.0

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 28 Nov 2023 08:25:37 UTC
The branch main has been updated by fernape:

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

commit c085119a6e050c43b6512f02341dc9b056a8e988
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2023-11-27 07:54:59 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-11-28 08:24:40 +0000

    graphics/converseen: update to 0.12.0.0
    
    Flavorize port: Qt5 and Qt6
    
    ChangeLog: https://converseen.fasterland.net/changelog/
    
     * Porting to Qt6: Now the program can be compiled with both Qt5 and Qt6 (See the
      Install.md file for more information).
     * Now, the program does not autoreset the image resolution settings when the
      list is emptied
     * The "Link with Aspect Ratio with Selected Image" option is now a buttons
     * Added some help information in the UI to clarify the operation of some buttons
     * Updated French translation
     * Various Bugfixes
---
 graphics/converseen/Makefile | 21 +++++++++++++++++----
 graphics/converseen/distinfo |  6 +++---
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/graphics/converseen/Makefile b/graphics/converseen/Makefile
index da990e952601..d5e8325ccbc3 100644
--- a/graphics/converseen/Makefile
+++ b/graphics/converseen/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	converseen
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.11.0.1
+DISTVERSION=	0.12.0.0
 CATEGORIES=	graphics
 
 MAINTAINER=	fernape@FreeBSD.org
@@ -10,13 +10,26 @@ WWW=		https://converseen.sourceforge.net/
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake compiler:c++11-lang magick:7 qt:5 tar:bzip2
-USE_QT=		core gui network widgets \
-		buildtools:build linguisttools:build qmake:build
+FLAVORS=	qt5 qt6
+
+USES=		cmake compiler:c++11-lang gl magick:7 qt:5 tar:bzip2
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	Faster3ck
 GH_PROJECT=	Converseen
+USE_GL=		gl
+USE_QT=		core gui network widgets \
+		buildtools:build linguisttools:build qmake:build
+
+.if ${FLAVOR:U} == qt6
+PKGNAMESUFFIX=	-${FLAVOR}
+USES:=		${USES:S/qt:5/qt:6/}
+USE_QT=		base tools:build
+CMAKE_ARGS=	-DUSE_QT6=yes
+CONFLICTS_INSTALL=	${PORTNAME}
+.else
+CONFLICTS_INSTALL=	${PORTNAME}-qt6
+.endif
 
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/converseen
diff --git a/graphics/converseen/distinfo b/graphics/converseen/distinfo
index a526103fc1a5..ca142aea9551 100644
--- a/graphics/converseen/distinfo
+++ b/graphics/converseen/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1697704011
-SHA256 (Faster3ck-Converseen-v0.11.0.1_GH0.tar.gz) = 36d76da264e8191f60cebdc702297d181b6fd5e2cebb5233fbf339146c4a7480
-SIZE (Faster3ck-Converseen-v0.11.0.1_GH0.tar.gz) = 2292094
+TIMESTAMP = 1701071354
+SHA256 (Faster3ck-Converseen-v0.12.0.0_GH0.tar.gz) = b1dea18744cc07fc62dd50b3873ed7dca6cd3522f067dc056777085bf08f5d10
+SIZE (Faster3ck-Converseen-v0.12.0.0_GH0.tar.gz) = 2296890