git: 8f513bd478b4 - main - net-im/gotktrix: Add new port

From: Dmitri Goutnik <dmgk_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 21:28:51 UTC
The branch main has been updated by dmgk:

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

commit 8f513bd478b4784e7f6790f22915466d0b61f9ab
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-06-09 21:19:07 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-06-09 21:27:49 +0000

    net-im/gotktrix: Add new port
    
    Matrix client in Go and GTK4 implementing a large part of the feature
    set the Matrix protocol supports.
    
    WWW: https://github.com/diamondburned/gotktrix
    
    PR:             264541
---
 net-im/Makefile           |  1 +
 net-im/gotktrix/Makefile  | 30 ++++++++++++++++++++++++++++++
 net-im/gotktrix/distinfo  |  5 +++++
 net-im/gotktrix/pkg-descr |  4 ++++
 4 files changed, 40 insertions(+)

diff --git a/net-im/Makefile b/net-im/Makefile
index 9b5463aa1727..dd2aa46f24c2 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -25,6 +25,7 @@
     SUBDIR += gitterdone
     SUBDIR += gloox
     SUBDIR += gomuks
+    SUBDIR += gotktrix
     SUBDIR += gotosocial
     SUBDIR += icmpchat
     SUBDIR += icqlib
diff --git a/net-im/gotktrix/Makefile b/net-im/gotktrix/Makefile
new file mode 100644
index 000000000000..665cf1c1bc84
--- /dev/null
+++ b/net-im/gotktrix/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	gotktrix
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.3
+CATEGORIES=	net-im
+
+MAINTAINER=	fuz@fuz.su
+COMMENT=	Matrix client in Go and GTK4
+
+LICENSE=	AGPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+LIB_DEPENDS=	libgraphene-1.0.so:graphics/graphene \
+		libharfbuzz.so:print/harfbuzz \
+		libvulkan.so:graphics/vulkan-loader
+
+USES=		gnome go:modules pkgconfig
+USE_GNOME=	cairo gdkpixbuf2 glib20 gtk40 introspection pango
+GO_MODULE=	github.com/diamondburned/gotktrix
+
+PLIST_FILES=	bin/gotktrix \
+		share/icons/hicolor/256x256/apps/gotktrix.png \
+		${DESKTOPDIR}/com.github.diamondburned.gotktrix.desktop
+post-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps
+	${INSTALL_DATA} ${WRKSRC}/.github/logo-256.png \
+	    ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/gotktrix.png
+	${INSTALL_DATA} ${WRKSRC}/.nix/com.github.diamondburned.gotktrix.desktop \
+	    ${STAGEDIR}${DESKTOPDIR}/
+
+.include <bsd.port.mk>
diff --git a/net-im/gotktrix/distinfo b/net-im/gotktrix/distinfo
new file mode 100644
index 000000000000..6a072ace957f
--- /dev/null
+++ b/net-im/gotktrix/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1654604101
+SHA256 (go/net-im_gotktrix/gotktrix-v0.1.3/v0.1.3.mod) = 353c3e5bd0688c899ec6ceb2d785f7895f37643e511ec56be1c8fca3c4605f6a
+SIZE (go/net-im_gotktrix/gotktrix-v0.1.3/v0.1.3.mod) = 2931
+SHA256 (go/net-im_gotktrix/gotktrix-v0.1.3/v0.1.3.zip) = c49663332add3037bdbc0e497a7d003fb62a13745790a2ff89cd7d87631b5fec
+SIZE (go/net-im_gotktrix/gotktrix-v0.1.3/v0.1.3.zip) = 604406
diff --git a/net-im/gotktrix/pkg-descr b/net-im/gotktrix/pkg-descr
new file mode 100644
index 000000000000..270e45ebcfba
--- /dev/null
+++ b/net-im/gotktrix/pkg-descr
@@ -0,0 +1,4 @@
+Matrix client in Go and GTK4 implementing a large part of the feature
+set the Matrix protocol supports.
+
+WWW: https://github.com/diamondburned/gotktrix