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,61 +1,65 @@ 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 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} \ ${PYTHON_PKGNAMEPREFIX}wcwidth>=0.1.7:devel/py-wcwidth@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pillow>=9.5.0:graphics/py-pillow@${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} USES= python USE_PYTHON= flavors pytest NO_ARCH= yes NO_BUILD= yes 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 +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 \ ${STAGEDIR}${PREFIX}/bin/toot (cd ${WRKSRC}/${PORTNAME} && \ ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/{} \ \; && \ ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/{} \ \;) .include 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