git: f0106cf98131 - main - net-im/toot: Update to 0.48.0

From: Wen Heping <wen_at_FreeBSD.org>
Date: Sun, 04 May 2025 03:15:59 UTC
The branch main has been updated by wen:

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

commit f0106cf98131994fa8011efb1f0115e924adc3fd
Author:     Yusuf Yaman <nxjoseph@protonmail.com>
AuthorDate: 2025-05-04 03:12:29 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2025-05-04 03:15:03 +0000

    net-im/toot: Update to 0.48.0
    
    Add new run-dependency.
    Remove extinct test-dependency.
    Add port options for enabling support to
      display images and rich text in the TUI.
    Add portscout entry to ignore v0.48.1
    
    PR:             285237
    Reported by:    Yusuf Yaman <nxjoseph@protonmail.com> (maintainer)
---
 net-im/toot/Makefile  | 19 ++++++++++++++++---
 net-im/toot/distinfo  |  6 +++---
 net-im/toot/pkg-plist |  1 +
 3 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/net-im/toot/Makefile b/net-im/toot/Makefile
index 0eafadb91d1f..5c678b70ced5 100644
--- a/net-im/toot/Makefile
+++ b/net-im/toot/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	toot
-DISTVERSION=	0.47.1
+DISTVERSION=	0.48.0
 CATEGORIES=	net-im python
 MASTER_SITES=	PYPI \
 		https://github.com/ihabunek/toot/releases/download/${DISTVERSION}/
@@ -14,6 +14,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.5.0<5.0:www/py-beautifulsoup@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}click>=8.1<9:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}python-dateutil>=2.8.1<3.0:devel/py-python-dateutil@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.13<3.0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tomlkit>=0.10.0<1.0:textproc/py-tomlkit@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}urwid>=2.0.0<3.0:devel/py-urwid@${PY_FLAVOR} \
@@ -23,8 +24,7 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0:devel/py-pytest-xdist@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}urwidgets>=0:devel/py-urwidgets@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	flavors pytest
@@ -36,6 +36,19 @@ NO_INSTALL=	yes
 SUB_FILES=	toot
 SUB_LIST=	PYTHON_CMD=${PYTHON_CMD}
 
+OPTIONS_DEFAULT=	IMAGES RICHTEXT
+OPTIONS_GROUP=		SUPPORT
+OPTIONS_GROUP_SUPPORT=	IMAGES RICHTEXT
+
+IMAGES_DESC=	Required to display images in the TUI
+RICHTEXT_DESC=	Required to display rich text in the TUI
+
+IMAGES_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>=9.5.0:graphics/py-pillow@${PY_FLAVOR} \
+			${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
+
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/toot \
 		${STAGEDIR}${PREFIX}/bin/toot
diff --git a/net-im/toot/distinfo b/net-im/toot/distinfo
index b2fd38e376a1..b5a61a3c5c79 100644
--- a/net-im/toot/distinfo
+++ b/net-im/toot/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1735070581
-SHA256 (toot-0.47.1.tar.gz) = fae758b50d22c019379a1f90ac0fe7adfc152ce8899005e463b36ee2e88abc2b
-SIZE (toot-0.47.1.tar.gz) = 1318249
+TIMESTAMP = 1746327277
+SHA256 (toot-0.48.0.tar.gz) = 7e9134a1568ac5f4d1bc63c26795cba85b07d832871fb0b8cb5d80d7f749d096
+SIZE (toot-0.48.0.tar.gz) = 1476183
diff --git a/net-im/toot/pkg-plist b/net-im/toot/pkg-plist
index ae2888f13fa6..a5d3f304b236 100644
--- a/net-im/toot/pkg-plist
+++ b/net-im/toot/pkg-plist
@@ -14,6 +14,7 @@ bin/toot
 %%PYTHON_SITELIBDIR%%/toot/cli/statuses.py
 %%PYTHON_SITELIBDIR%%/toot/cli/tags.py
 %%PYTHON_SITELIBDIR%%/toot/cli/timelines.py
+%%PYTHON_SITELIBDIR%%/toot/cli/timelines_v2.py
 %%PYTHON_SITELIBDIR%%/toot/cli/tui.py
 %%PYTHON_SITELIBDIR%%/toot/cli/validators.py
 %%PYTHON_SITELIBDIR%%/toot/config.py