aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@fuz.su>2022-06-09 21:19:07 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2022-06-09 21:27:49 +0000
commit8f513bd478b4784e7f6790f22915466d0b61f9ab (patch)
tree77c5ce6eaec657b02881eb4ac63debb45b3ba1be
parentdbcdb9d2e4ff1dcbd5ac3fffbb6590bd7a2cd8f9 (diff)
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
-rw-r--r--net-im/Makefile1
-rw-r--r--net-im/gotktrix/Makefile30
-rw-r--r--net-im/gotktrix/distinfo5
-rw-r--r--net-im/gotktrix/pkg-descr4
4 files changed, 40 insertions, 0 deletions
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