git: de9f1e0ca9f6 - main - net-im/toot: Update 0.48.0 => 0.48.1

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Mon, 30 Jun 2025 22:12:54 UTC
The branch main has been updated by vvd:

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

commit de9f1e0ca9f6cb7ae016a972839483759fdae176
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2025-06-30 21:59:38 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-06-30 22:09:04 +0000

    net-im/toot: Update 0.48.0 => 0.48.1
    
    Changelog:
    https://github.com/ihabunek/toot/blob/936c090/CHANGELOG.md
    
    PR:     287921
---
 net-im/toot/Makefile | 14 +++++++++-----
 net-im/toot/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/net-im/toot/Makefile b/net-im/toot/Makefile
index 5c678b70ced5..d4b4f1e29078 100644
--- a/net-im/toot/Makefile
+++ b/net-im/toot/Makefile
@@ -1,13 +1,13 @@
 PORTNAME=	toot
-DISTVERSION=	0.48.0
+DISTVERSION=	0.48.1
 CATEGORIES=	net-im python
-MASTER_SITES=	PYPI \
-		https://github.com/ihabunek/toot/releases/download/${DISTVERSION}/
+MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	nxjoseph@protonmail.com
 COMMENT=	Interact with the Mastodon social network from the command line
-WWW=		https://github.com/ihabunek/toot
+WWW=		https://github.com/ihabunek/toot \
+		https://pypi.org/project/toot
 
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
@@ -47,7 +47,11 @@ IMAGES_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>=9.5.0:graphics/py-pillow@${PY
 			${PYTHON_PKGNAMEPREFIX}term-image>=0.7.2:graphics/py-term-image@${PY_FLAVOR}
 RICHTEXT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}urwidgets>=0.2<0.3:devel/py-urwidgets@${PY_FLAVOR}
 
-PORTSCOUT=		skipv:0.48.1
+post-patch:
+	${REINPLACE_CMD} -e 's,{__version__},${DISTVERSION},g' \
+		${WRKSRC}/toot/cli/diag.py
+	${REINPLACE_CMD} -e '174s,__version__,"${DISTVERSION}",g' \
+		${WRKSRC}/toot/cli/__init__.py
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/toot \
diff --git a/net-im/toot/distinfo b/net-im/toot/distinfo
index b5a61a3c5c79..c13e689249d0 100644
--- a/net-im/toot/distinfo
+++ b/net-im/toot/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1746327277
-SHA256 (toot-0.48.0.tar.gz) = 7e9134a1568ac5f4d1bc63c26795cba85b07d832871fb0b8cb5d80d7f749d096
-SIZE (toot-0.48.0.tar.gz) = 1476183
+TIMESTAMP = 1751288273
+SHA256 (toot-0.48.1.tar.gz) = 99629e24bc4ef3fb22162b7742f4053648279f5e7e34b5ad53224b5d3e05a66c
+SIZE (toot-0.48.1.tar.gz) = 1328964