git: c6af9d33ffc7 - main - net-im/purple-googlechat: New port: Google Chat plugin for libpurple

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 08 Dec 2021 10:49:00 UTC
The branch main has been updated by diizzy:

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

commit c6af9d33ffc7c77184a2591db7b4be5a7663a151
Author:     Jose G. Juanino <jjuanino@gmail.com>
AuthorDate: 2021-12-08 10:44:19 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2021-12-08 10:48:52 +0000

    net-im/purple-googlechat: New port: Google Chat plugin for libpurple
    
    WWW: https://github.com/EionRobb/purple-googlechat/
    
    PR:             259687
    Approved by:    mentors (implicit)
---
 net-im/Makefile                      |  1 +
 net-im/purple-googlechat/Makefile    | 29 +++++++++++++++++++++++++++++
 net-im/purple-googlechat/distinfo    |  3 +++
 net-im/purple-googlechat/pkg-descr   |  4 ++++
 net-im/purple-googlechat/pkg-message |  8 ++++++++
 5 files changed, 45 insertions(+)

diff --git a/net-im/Makefile b/net-im/Makefile
index ff4087f89212..a518385e4f6e 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -115,6 +115,7 @@
     SUBDIR += psi
     SUBDIR += purple-discord
     SUBDIR += purple-facebook
+    SUBDIR += purple-googlechat
     SUBDIR += purple-hangouts
     SUBDIR += purple-mattermost
     SUBDIR += purple-plugin-pack
diff --git a/net-im/purple-googlechat/Makefile b/net-im/purple-googlechat/Makefile
new file mode 100644
index 000000000000..58473a72e971
--- /dev/null
+++ b/net-im/purple-googlechat/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	purple-googlechat
+DISTVERSION=	g20211018
+CATEGORIES=	net-im
+
+MAINTAINER=	jjuanino@gmail.com
+COMMENT=	Google Chat Plugin for libpurple
+
+LICENSE=	GPLv3+
+
+LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib \
+		libprotobuf-c.so:devel/protobuf-c \
+		libpurple.so:net-im/libpurple
+
+USES=		gmake gnome pkgconfig
+USE_GITHUB=	yes
+GH_ACCOUNT=	EionRobb
+GH_TAGNAME=	56ba7f7
+USE_GNOME=	glib20
+USE_LDCONFIG=	yes
+
+PLIST_FILES=	lib/purple-2/libgooglechat.so \
+		share/pixmaps/pidgin/protocols/16/googlechat.png \
+		share/pixmaps/pidgin/protocols/22/googlechat.png \
+		share/pixmaps/pidgin/protocols/48/googlechat.png
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/purple-2/libgooglechat.so
+
+.include <bsd.port.mk>
diff --git a/net-im/purple-googlechat/distinfo b/net-im/purple-googlechat/distinfo
new file mode 100644
index 000000000000..e1fb7c46e01f
--- /dev/null
+++ b/net-im/purple-googlechat/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1636231968
+SHA256 (EionRobb-purple-googlechat-g20211018-56ba7f7_GH0.tar.gz) = b90c5a2c74a44807d96154437f4ecb87ca16dad03e7cfe024eaf96e26355a282
+SIZE (EionRobb-purple-googlechat-g20211018-56ba7f7_GH0.tar.gz) = 257362
diff --git a/net-im/purple-googlechat/pkg-descr b/net-im/purple-googlechat/pkg-descr
new file mode 100644
index 000000000000..f0adc57d74e1
--- /dev/null
+++ b/net-im/purple-googlechat/pkg-descr
@@ -0,0 +1,4 @@
+Google Chat for libpurple is a plugin for pidgin to support the proprietary
+protocol that Google uses for its "Google Chat" service.
+
+WWW: https://github.com/EionRobb/purple-googlechat
diff --git a/net-im/purple-googlechat/pkg-message b/net-im/purple-googlechat/pkg-message
new file mode 100644
index 000000000000..df41cd24af46
--- /dev/null
+++ b/net-im/purple-googlechat/pkg-message
@@ -0,0 +1,8 @@
+[
+{ type: install
+  message: <<EOM
+This plugin needs an oauth token in order to work properly. Watch the following
+youtube video https://www.youtube.com/watch?v=hlDhp-eNLMU on how to obtain one.
+EOM
+}
+]