git: a49daaafcd5f - main - net-im/purple-hangouts: Update to 20210630

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Thu, 23 Dec 2021 21:21:11 UTC
The branch main has been updated by diizzy:

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

commit a49daaafcd5f1bdad87f83f95a1f49eaced3c4c7
Author:     Jose G. Juanino <jjuanino@gmail.com>
AuthorDate: 2021-12-23 20:59:28 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2021-12-23 21:20:59 +0000

    net-im/purple-hangouts: Update to 20210630
    
    Unfortunately upstream doesn't provide a changelog so you need to refer to
    commit log instead
    
    PR:             259685
    Approved by:    mentors (implicit)
---
 net-im/purple-hangouts/Makefile        | 20 +++++---------------
 net-im/purple-hangouts/distinfo        |  6 +++---
 net-im/purple-hangouts/files/patch-429 | 26 --------------------------
 net-im/purple-hangouts/pkg-descr       |  2 +-
 4 files changed, 9 insertions(+), 45 deletions(-)

diff --git a/net-im/purple-hangouts/Makefile b/net-im/purple-hangouts/Makefile
index 30668fc1046e..1b73603e8936 100644
--- a/net-im/purple-hangouts/Makefile
+++ b/net-im/purple-hangouts/Makefile
@@ -1,12 +1,6 @@
-# Created by: José García Juanino <jjuanino@gmail.com>
-
 PORTNAME=	purple-hangouts
-PORTVERSION=	20190607
-PORTREVISION=	1
+PORTVERSION=	20210630
 CATEGORIES=	net-im
-MASTER_SITES=	https://bitbucket.org/EionRobb/${PORTNAME}/get/
-# Commit tag. Must be changed according with PORTVERSION.
-DISTNAME=	3f7d89bf9ce2
 
 MAINTAINER=	jjuanino@gmail.com
 COMMENT=	Hangouts plugin for libpurple
@@ -18,15 +12,11 @@ LIB_DEPENDS=	libpurple.so:net-im/libpurple \
 		libjson-glib-1.0.so:devel/json-glib \
 		libprotobuf-c.so:devel/protobuf-c
 
-USES=		gmake gnome pkgconfig zip
+USES=		gmake gnome pkgconfig
+USE_GITHUB=	yes
+GH_ACCOUNT=	EionRobb
+GH_TAGNAME=	55b9f01 # Change accordingly with PORTVERSION
 USE_GNOME=	glib20
-PATCH_STRIP=	-p1 --ignore-whitespace
-
-WRKSRC=		${WRKDIR}/EionRobb-${PORTNAME}-${DISTNAME}
-
-OPTIONS_DEFINE=	NLS
-
-NLS_USES=	gettext
 USE_LDCONFIG=	yes
 
 PLIST_FILES=	lib/purple-2/libhangouts.so \
diff --git a/net-im/purple-hangouts/distinfo b/net-im/purple-hangouts/distinfo
index 2f41998f2201..b86cd1eaec88 100644
--- a/net-im/purple-hangouts/distinfo
+++ b/net-im/purple-hangouts/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1560716336
-SHA256 (3f7d89bf9ce2.zip) = e5265fa947071ef2d6068e7493f6260b8078cc683aa6775d767e04ed3baa536b
-SIZE (3f7d89bf9ce2.zip) = 172287
+TIMESTAMP = 1636228644
+SHA256 (EionRobb-purple-hangouts-20210630-55b9f01_GH0.tar.gz) = a6dfd000f5cdc28b9cf423b91230facef172e44b2554bccd0a1e21df49b6b0e6
+SIZE (EionRobb-purple-hangouts-20210630-55b9f01_GH0.tar.gz) = 153325
diff --git a/net-im/purple-hangouts/files/patch-429 b/net-im/purple-hangouts/files/patch-429
deleted file mode 100644
index fa9a62cfc05b..000000000000
--- a/net-im/purple-hangouts/files/patch-429
+++ /dev/null
@@ -1,26 +0,0 @@
-From 55b9f01d040b240b794700f44d9c21a6cb51251e Mon Sep 17 00:00:00 2001
-From: Eion Robb <eion@robbmob.com>
-Date: Wed, 30 Jun 2021 09:53:47 +1200
-Subject: [PATCH] Fix for 429 errors
-
-Fixes issue #222
----
- hangouts_auth.c | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/hangouts_auth.c b/hangouts_auth.c
-index 025f4f9..d988c3a 100644
---- a/hangouts_auth.c
-+++ b/hangouts_auth.c
-@@ -258,6 +258,11 @@ hangouts_auth_get_session_cookies_got_cb(PurpleHttpConnection *http_conn, Purple
- 		return;
- 	}
- 	
-+	purple_http_cookie_jar_set(ha->cookie_jar, "__Secure-3PSID", NULL);
-+	purple_http_cookie_jar_set(ha->cookie_jar, "__Host-3PLSID", NULL);
-+	purple_http_cookie_jar_set(ha->cookie_jar, "__Secure-3PAPISID", NULL);
-+	purple_http_cookie_jar_set(ha->cookie_jar, "__Host-GAPS", NULL);
-+	
- 	//Restore the last_event_timestamp before it gets overridden by new events
- 	last_event_timestamp = purple_account_get_int(ha->account, "last_event_timestamp_high", 0);
- 	if (last_event_timestamp != 0) {
diff --git a/net-im/purple-hangouts/pkg-descr b/net-im/purple-hangouts/pkg-descr
index 74de60d5c0db..c7970cb7e633 100644
--- a/net-im/purple-hangouts/pkg-descr
+++ b/net-im/purple-hangouts/pkg-descr
@@ -5,4 +5,4 @@ that aren't part of the XMPP interface, such as Group Chats,
 synchronised history between devices and SMS support via Google
 Voice.
 
-WWW: https://bitbucket.org/EionRobb/purple-hangouts
+WWW: https://github.com/EionRobb/purple-hangouts