git: 3450e834d4e1 - main - net-im/nheko: update to 0.11.3 (also dependencies)

From: Adriaan de Groot <adridg_at_FreeBSD.org>
Date: Mon, 06 Mar 2023 21:34:35 UTC
The branch main has been updated by adridg:

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

commit 3450e834d4e19eef34def6ba009fc94ca70e8c66
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2023-03-06 21:32:42 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2023-03-06 21:34:19 +0000

    net-im/nheko: update to 0.11.3 (also dependencies)
    
    Update the nheko stack - coeurl, mtxclient, nheko - to the
    latest release. Try to add a VOIP option for Matrix VOIP calls.
---
 ftp/coeurl/Makefile                                  |  4 ++--
 ftp/coeurl/distinfo                                  |  6 +++---
 ftp/coeurl/pkg-plist                                 |  3 +--
 net-im/mtxclient/Makefile                            |  3 ++-
 net-im/mtxclient/distinfo                            |  6 +++---
 net-im/mtxclient/pkg-plist                           |  2 ++
 net-im/nheko/Makefile                                | 15 ++++++++++++---
 net-im/nheko/distinfo                                |  6 +++---
 net-im/nheko/files/patch-src_notifications_Manager.h | 12 ++++++++++++
 9 files changed, 40 insertions(+), 17 deletions(-)

diff --git a/ftp/coeurl/Makefile b/ftp/coeurl/Makefile
index 348bc6ba8a74..b5a7687434d3 100644
--- a/ftp/coeurl/Makefile
+++ b/ftp/coeurl/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	coeurl
 DISTVERSIONPREFIX=v
-DISTVERSION=	0.1.1
+DISTVERSION=	0.3.0
 CATEGORIES=	ftp www
 
 MAINTAINER=	adridg@FreeBSD.org
@@ -21,6 +21,6 @@ USES=		compiler:c++17-lang pkgconfig \
 USE_GITLAB=	yes
 GL_SITE=	https://nheko.im/
 GL_ACCOUNT=	nheko-reborn
-GL_COMMIT=	fa108b25a92b0e037723debc4388a300e737dc2d
+GL_COMMIT=	2a20a129240a1a017b37b6874faab499ca4e523b
 
 .include <bsd.port.mk>
diff --git a/ftp/coeurl/distinfo b/ftp/coeurl/distinfo
index 272eab0b5307..93db17bc93b4 100644
--- a/ftp/coeurl/distinfo
+++ b/ftp/coeurl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641323930
-SHA256 (nheko-reborn-coeurl-fa108b25a92b0e037723debc4388a300e737dc2d_GL0.tar.gz) = c6781438683442fcfc3f9d64d509e41e4cda4f76ea0718e418deb161dfc8a7fb
-SIZE (nheko-reborn-coeurl-fa108b25a92b0e037723debc4388a300e737dc2d_GL0.tar.gz) = 51460
+TIMESTAMP = 1677276434
+SHA256 (nheko-reborn-coeurl-2a20a129240a1a017b37b6874faab499ca4e523b_GL0.tar.gz) = ef09d8867535598bbac7c899d148edf580eb52e1053c98681510fafeb0f8e765
+SIZE (nheko-reborn-coeurl-2a20a129240a1a017b37b6874faab499ca4e523b_GL0.tar.gz) = 52785
diff --git a/ftp/coeurl/pkg-plist b/ftp/coeurl/pkg-plist
index acf29fbb3a41..6f8ff6df4217 100644
--- a/ftp/coeurl/pkg-plist
+++ b/ftp/coeurl/pkg-plist
@@ -3,6 +3,5 @@ include/coeurl/errors.hpp
 include/coeurl/headers.hpp
 include/coeurl/request.hpp
 lib/libcoeurl.so
-lib/libcoeurl.so.0
-lib/libcoeurl.so.0.1.1
+lib/libcoeurl.so.0.3
 libdata/pkgconfig/coeurl.pc
diff --git a/net-im/mtxclient/Makefile b/net-im/mtxclient/Makefile
index bbaf13162d04..be050d5fa1dd 100644
--- a/net-im/mtxclient/Makefile
+++ b/net-im/mtxclient/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=		mtxclient
 DISTVERSIONPREFIX=	v
-DISTVERSION=		0.8.2
+DISTVERSION=		0.9.2
 CATEGORIES=		net-im
 
 MAINTAINER=	adridg@FreeBSD.org
@@ -15,6 +15,7 @@ LIB_DEPENDS=	\
 		libcoeurl.so:ftp/coeurl \
 		libolm.so:security/olm \
 		libsodium.so:security/libsodium \
+		libre2.so:devel/re2 \
 		libspdlog.so:devel/spdlog
 
 USES=		cmake compiler:c++17-lang pkgconfig ssl \
diff --git a/net-im/mtxclient/distinfo b/net-im/mtxclient/distinfo
index 880d828dfe62..d0fdd65aaf6a 100644
--- a/net-im/mtxclient/distinfo
+++ b/net-im/mtxclient/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1663409911
-SHA256 (Nheko-Reborn-mtxclient-v0.8.2_GH0.tar.gz) = 4caa12ddf954b9492d1ec9b6ca32ef0fc6478555f229db074d43bc5cc29a9c89
-SIZE (Nheko-Reborn-mtxclient-v0.8.2_GH0.tar.gz) = 609627
+TIMESTAMP = 1677275035
+SHA256 (Nheko-Reborn-mtxclient-v0.9.2_GH0.tar.gz) = f55827fdba226c6fc409cf000c72b13cc6d069ec1300283a7239aa19c90c5f56
+SIZE (Nheko-Reborn-mtxclient-v0.9.2_GH0.tar.gz) = 623481
diff --git a/net-im/mtxclient/pkg-plist b/net-im/mtxclient/pkg-plist
index 14e6c8a695fa..5bbad974dc2f 100644
--- a/net-im/mtxclient/pkg-plist
+++ b/net-im/mtxclient/pkg-plist
@@ -20,6 +20,7 @@ include/mtx/events/history_visibility.hpp
 include/mtx/events/join_rules.hpp
 include/mtx/events/member.hpp
 include/mtx/events/messages/audio.hpp
+include/mtx/events/messages/confetti.hpp
 include/mtx/events/messages/emote.hpp
 include/mtx/events/messages/file.hpp
 include/mtx/events/messages/image.hpp
@@ -66,6 +67,7 @@ include/mtx/responses/public_rooms.hpp
 include/mtx/responses/register.hpp
 include/mtx/responses/sync.hpp
 include/mtx/responses/turn_server.hpp
+include/mtx/responses/users.hpp
 include/mtx/responses/version.hpp
 include/mtx/responses/well-known.hpp
 include/mtx/secret_storage.hpp
diff --git a/net-im/nheko/Makefile b/net-im/nheko/Makefile
index bbefd843b8d6..9e4a59365576 100644
--- a/net-im/nheko/Makefile
+++ b/net-im/nheko/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	nheko
 DISTVERSIONPREFIX=v
-DISTVERSION=	0.10.2
-PORTREVISION=	1
+DISTVERSION=	0.11.3
 CATEGORIES=	net-im
 
 MAINTAINER=	adridg@FreeBSD.org
@@ -32,10 +31,20 @@ USE_QT=		concurrent core dbus declarative gui multimedia network \
 		graphicaleffects:run \
 		buildtools:build linguist:build qmake:build
 
+OPTIONS_DEFINE=	VOIP
+OPTIONS_DEFAULT=
+
+VOIP_DESC=	Enable VOIP calls (experimental)
+VOIP_CMAKE_BOOL=	VOIP
+VOIP_USES=	gstreamer gettext-runtime
+VOIP_USE_GSTREAMER1=	bad dtls srtp
+VOIP_USE_XORG=		xcb
+VOIP_USE_GNOME=		glib20
+VOIP_LIB_DEPENDS=	libnice.so:net-im/libnice
+
 # There is one external dependency: lmdb++
 #  - lmdb++ is a single header file, it just needs to be included
 CMAKE_ARGS=	-DLMDBXX_INCLUDE_DIR=${WRKSRC}/deps/lmdb \
-		-DVOIP=OFF \
 		-DCMAKE_INSTALL_MANDIR=share/man
 CFLAGS+=	-DSPDLOG_FMT_EXTERNAL=1
 LDFLAGS+=	-L${LOCALBASE}/lib -lfmt
diff --git a/net-im/nheko/distinfo b/net-im/nheko/distinfo
index f5ddc44114f5..e1696c765077 100644
--- a/net-im/nheko/distinfo
+++ b/net-im/nheko/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1665094209
-SHA256 (Nheko-Reborn-nheko-v0.10.2_GH0.tar.gz) = 00a0da9f134e070753efefc3bc86802b60fe385f2dea937979c0824634b4c248
-SIZE (Nheko-Reborn-nheko-v0.10.2_GH0.tar.gz) = 1608905
+TIMESTAMP = 1678131554
+SHA256 (Nheko-Reborn-nheko-v0.11.3_GH0.tar.gz) = f285156884a3a0c6870f3fba89c13d1fd70c8727bd179d8310b13819f8a63a37
+SIZE (Nheko-Reborn-nheko-v0.11.3_GH0.tar.gz) = 1780179
 SHA256 (hoytech-lmdbxx-029fb681213af3020f5e3a86045445552bd024c5_GH0.tar.gz) = f1d048d7ec720667a3ea091ed44f06eb79171e77d646a59dac45b9e5ff75f33b
 SIZE (hoytech-lmdbxx-029fb681213af3020f5e3a86045445552bd024c5_GH0.tar.gz) = 52468
diff --git a/net-im/nheko/files/patch-src_notifications_Manager.h b/net-im/nheko/files/patch-src_notifications_Manager.h
new file mode 100644
index 000000000000..fcb2b875f358
--- /dev/null
+++ b/net-im/nheko/files/patch-src_notifications_Manager.h
@@ -0,0 +1,12 @@
+--- src/notifications/Manager.h.orig	2023-02-24 22:16:17 UTC
++++ src/notifications/Manager.h
+@@ -55,9 +55,7 @@ public slots:
+ #if defined(NHEKO_DBUS_SYS)
+ public:
+     void closeNotifications(QString roomId);
+-#if defined(Q_OS_LINUX)
+     void closeAllNotifications();
+-#endif
+ 
+ private:
+     QDBusInterface dbus;