git: 83420ee566f0 - main - graphics/drawpile: change to Qt6

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 12 Oct 2026 05:00:47 UTC
The branch main has been updated by yuri:

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

commit 83420ee566f0bb576c47d1abd5ebb7557c7ce07d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-10-12 04:58:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-10-12 05:00:39 +0000

    graphics/drawpile: change to Qt6
    
    PR:     299313
---
 graphics/drawpile/Makefile                         | 15 ++++++++-------
 .../files/patch-src_desktop_widgets_tablettest.cpp | 22 ++++++++++++++++++++++
 2 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/graphics/drawpile/Makefile b/graphics/drawpile/Makefile
index 82bd7fbddf33..f9ee328334a5 100644
--- a/graphics/drawpile/Makefile
+++ b/graphics/drawpile/Makefile
@@ -1,23 +1,24 @@
 PORTNAME=	Drawpile
 DISTVERSION=	2.3.0
-PORTREVISION=	10
+PORTREVISION=	11
 CATEGORIES=	graphics python
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Collaborative drawing program
-WWW=		https://drawpile.net
+WWW=		https://drawpile.net \
+		https://github.com/drawpile/Drawpile
 
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg \
 		libsodium.so:security/libsodium \
-		libwebpmux.so:graphics/webp
+		libwebpmux.so:graphics/webp \
+		libzip.so:archivers/libzip
 
-USES=		cargo cmake compiler:c++17-lang desktop-file-utils kde:5 pkgconfig qt:5 shared-mime-info
-USE_QT=		core gui multimedia network opengl sql svg widgets xml websockets \
-		buildtools:build linguisttools:build qmake:build
-USE_KDE=	archive dnssd ecm:build
+USES=		cargo cmake compiler:c++17-lang desktop-file-utils gl pkgconfig qt:6 shared-mime-info
+USE_QT=		base svg websockets tools:build
+USE_GL=		gl opengl
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	${PORTNAME:tl}
diff --git a/graphics/drawpile/files/patch-src_desktop_widgets_tablettest.cpp b/graphics/drawpile/files/patch-src_desktop_widgets_tablettest.cpp
new file mode 100644
index 000000000000..c01d372e81da
--- /dev/null
+++ b/graphics/drawpile/files/patch-src_desktop_widgets_tablettest.cpp
@@ -0,0 +1,22 @@
+-- Qt6 compatibility, see https://github.com/drawpile/Drawpile/issues/1600
+
+--- src/desktop/widgets/tablettest.cpp.orig	2026-10-12 04:51:08 UTC
++++ src/desktop/widgets/tablettest.cpp
+@@ -66,7 +66,7 @@ void TabletTester::mouseMoveEvent(QMouseEvent *e)
+ 	emit eventReport(QString("Mouse move X=%1 Y=%2 B=%3")
+ 						 .arg(mousePos.x())
+ 						 .arg(mousePos.y())
+-						 .arg(e->buttons()));
++						 .arg(static_cast<int>(e->buttons())));
+ 	m_mousePath << e->pos();
+ 	update();
+ }
+@@ -118,7 +118,7 @@ void TabletTester::tabletEvent(QTabletEvent *e)
+ 	msg += QString(" X=%1 Y=%2 B=%3 P=%4% XT=%5° YT=%6° R=%7° T=%8 %9")
+ 			   .arg(posF.x(), 0, 'f', 2)
+ 			   .arg(posF.y(), 0, 'f', 2)
+-			   .arg(e->buttons())
++			   .arg(static_cast<int>(e->buttons()))
+ 			   .arg(e->pressure() * 100, 0, 'f', 1)
+ 			   .arg(e->xTilt())
+ 			   .arg(e->yTilt())