git: f6eba67e9cb0 - main - audio/cantata: Update to 3.4.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 28 Mar 2026 19:47:24 UTC
The branch main has been updated by makc:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f6eba67e9cb0ffbdb27ed0caca96cee0df5fd0dd
commit f6eba67e9cb0ffbdb27ed0caca96cee0df5fd0dd
Author: Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2026-03-28 19:47:10 +0000
Commit: Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-03-28 19:47:10 +0000
audio/cantata: Update to 3.4.0
---
audio/cantata/Makefile | 8 +++-----
audio/cantata/distinfo | 10 +++-------
audio/cantata/files/patch-models_streamsmodel.cpp | 14 ++++++++++++++
3 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/audio/cantata/Makefile b/audio/cantata/Makefile
index 83905ec308c4..66b19b833a23 100644
--- a/audio/cantata/Makefile
+++ b/audio/cantata/Makefile
@@ -1,12 +1,9 @@
PORTNAME= cantata
DISTVERSIONPREFIX= v
-DISTVERSION= 3.3.1
-PORTREVISION= 1
+DISTVERSION= 3.4.0
CATEGORIES= audio kde
PATCH_SITES= https://github.com/nullobsi/cantata/commit/
-PATCHFILES+= 52bf771a115b102a00fa09b48c867b6954474a51.patch:-p1 # Fix build with Qt 6.10
-PATCHFILES+= 82ee16e720e6901e7191e64a4e0c0db94c6a10ae.patch:-p1 # Fix build with Qt 6.10
MAINTAINER= kde@FreeBSD.org
COMMENT= Graphical client for MPD using Qt
@@ -15,11 +12,12 @@ WWW= https://github.com/nullobsi/cantata
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= cmake compiler:c++17-lang cpe gl pkgconfig qt:6 shebangfix
+USES= cmake compiler:c++17-lang cpe gl kde:6 pkgconfig qt:6 shebangfix
CPE_VENDOR= craig_drummond
USE_GITHUB= yes
GH_ACCOUNT= nullobsi
USE_GL= opengl
+USE_KDE= archive itemviews
USE_QT= base sqldriver-sqlite:run svg
SHEBANG_FILES= playlists/cantata-dynamic.cmake cantata-remote.cmake
diff --git a/audio/cantata/distinfo b/audio/cantata/distinfo
index ddd899dd3c82..3931336d4a03 100644
--- a/audio/cantata/distinfo
+++ b/audio/cantata/distinfo
@@ -1,7 +1,3 @@
-TIMESTAMP = 1763364143
-SHA256 (nullobsi-cantata-v3.3.1_GH0.tar.gz) = e811201adfedca26d8c6a86078213de9e26411db77082f739a225a531ca38bbf
-SIZE (nullobsi-cantata-v3.3.1_GH0.tar.gz) = 4787884
-SHA256 (52bf771a115b102a00fa09b48c867b6954474a51.patch) = 9db2a4739cf077e6d8cf24e6c96a3aefe68b9f54cb7b0a2f9b05bad4a1457dcd
-SIZE (52bf771a115b102a00fa09b48c867b6954474a51.patch) = 1837
-SHA256 (82ee16e720e6901e7191e64a4e0c0db94c6a10ae.patch) = 2b5939dc5658f845ee6c3c1ea08bc84f88d6bc97ad13f25a5215a8e58a54a109
-SIZE (82ee16e720e6901e7191e64a4e0c0db94c6a10ae.patch) = 1610
+TIMESTAMP = 1774722650
+SHA256 (nullobsi-cantata-v3.4.0_GH0.tar.gz) = 8976335c2b80ea10f6f73fc97a474e5a1c90a5b8497924dfcffb477e72e73f5a
+SIZE (nullobsi-cantata-v3.4.0_GH0.tar.gz) = 4798821
diff --git a/audio/cantata/files/patch-models_streamsmodel.cpp b/audio/cantata/files/patch-models_streamsmodel.cpp
new file mode 100644
index 000000000000..04deccd92a77
--- /dev/null
+++ b/audio/cantata/files/patch-models_streamsmodel.cpp
@@ -0,0 +1,14 @@
+--- models/streamsmodel.cpp.orig 2025-12-02 21:34:28 UTC
++++ models/streamsmodel.cpp
+@@ -1300,8 +1300,9 @@ QList<StreamsModel::Item*> StreamsModel::parseIceCastR
+
+ if (isGZipped) {
+ compressor = new KCompressionDevice(dev, false, KCompressionDevice::GZip);
+- compressor->open(QIODevice::ReadOnly);
+- readDev = compressor;
++ if (compressor->open(QIODevice::ReadOnly)) {
++ readDev = compressor;
++ }
+ }
+ QXmlStreamReader doc(readDev);
+