git: 78e64988ef4a - main - net-im/purple-teams: Add new MS Teams plugin for pidgin

From: Rodrigo Osorio <rodrigo_at_FreeBSD.org>
Date: Mon, 30 Sep 2024 09:39:41 UTC
The branch main has been updated by rodrigo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=78e64988ef4a6bc39094f7a8bad977f6154a25a7

commit 78e64988ef4a6bc39094f7a8bad977f6154a25a7
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2024-09-22 16:58:26 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2024-09-30 09:36:56 +0000

    net-im/purple-teams: Add new MS Teams plugin for pidgin
    
    MS Teams Plugin for Pidgin is a third-party alternative for the Microsoft
    Teams client in development since April 2022, with no Electron or
    Webview.
---
 net-im/Makefile               |  1 +
 net-im/purple-teams/Makefile  | 28 ++++++++++++++++++++++++++++
 net-im/purple-teams/distinfo  |  3 +++
 net-im/purple-teams/pkg-descr |  3 +++
 net-im/purple-teams/pkg-plist |  8 ++++++++
 5 files changed, 43 insertions(+)

diff --git a/net-im/Makefile b/net-im/Makefile
index 9a079739aafe..f511d41bba5b 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -109,6 +109,7 @@
     SUBDIR += purple-plugin-pack
     SUBDIR += purple-rocketchat
     SUBDIR += purple-slack
+    SUBDIR += purple-teams
     SUBDIR += py-apprise
     SUBDIR += py-fbmq
     SUBDIR += py-matrix-synapse
diff --git a/net-im/purple-teams/Makefile b/net-im/purple-teams/Makefile
new file mode 100644
index 000000000000..ae929b48bfc9
--- /dev/null
+++ b/net-im/purple-teams/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	purple-teams
+PORTVERSION=	20240827
+CATEGORIES=	net-im
+
+MAINTAINER=	rodrigo@FreeBSD.org
+COMMENT=	Plugin for Pidgin to provide MS Teams connectivity
+WWW=		https://github.com/EionRobb/purple-teams
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib \
+		libpurple.so:net-im/libpurple
+RUN_DEPENDS=	pidgin:net-im/pidgin \
+				xdg-open:devel/xdg-utils
+
+USES=		dos2unix gmake gnome pkgconfig
+DOS2UNIX_REGEX=	.*\.([ch]|cpp)
+DOS2UNIX_FILES=	Makefile
+
+USE_GITHUB=	yes
+
+GH_ACCOUNT=	EionRobb
+GH_TAGNAME=	nightly-f4a02c5047ba296c76eb923f2ba83cabab8a8089
+USE_GNOME=	glib20
+USE_LDCONFIG=	yes
+
+.include <bsd.port.mk>
diff --git a/net-im/purple-teams/distinfo b/net-im/purple-teams/distinfo
new file mode 100644
index 000000000000..7c95569e1efa
--- /dev/null
+++ b/net-im/purple-teams/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1727009122
+SHA256 (EionRobb-purple-teams-20240827-nightly-f4a02c5047ba296c76eb923f2ba83cabab8a8089_GH0.tar.gz) = 6689e7c1fe19f1d78db523374995054cfba375bda065671ae55f116c36090407
+SIZE (EionRobb-purple-teams-20240827-nightly-f4a02c5047ba296c76eb923f2ba83cabab8a8089_GH0.tar.gz) = 310343
diff --git a/net-im/purple-teams/pkg-descr b/net-im/purple-teams/pkg-descr
new file mode 100644
index 000000000000..01a00ca35cb6
--- /dev/null
+++ b/net-im/purple-teams/pkg-descr
@@ -0,0 +1,3 @@
+MS Teams Plugin for Pidgin is a third-party alternative
+for the Microsoft Teams client - in development since
+April 2022 -, with no Electron/Webview.
diff --git a/net-im/purple-teams/pkg-plist b/net-im/purple-teams/pkg-plist
new file mode 100644
index 000000000000..a6951a803114
--- /dev/null
+++ b/net-im/purple-teams/pkg-plist
@@ -0,0 +1,8 @@
+lib/purple-2/libteams-personal.so
+lib/purple-2/libteams.so
+share/pixmaps/pidgin/protocols/16/teams.png
+share/pixmaps/pidgin/protocols/16/teams_personal.png
+share/pixmaps/pidgin/protocols/22/teams.png
+share/pixmaps/pidgin/protocols/22/teams_personal.png
+share/pixmaps/pidgin/protocols/48/teams.png
+share/pixmaps/pidgin/protocols/48/teams_personal.png