summaryrefslogtreecommitdiff
path: root/net-im/toot
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/toot')
-rw-r--r--net-im/toot/Makefile34
-rw-r--r--net-im/toot/distinfo6
-rw-r--r--net-im/toot/pkg-plist5
3 files changed, 27 insertions, 18 deletions
diff --git a/net-im/toot/Makefile b/net-im/toot/Makefile
index d4b4f1e29078..dd071121fe81 100644
--- a/net-im/toot/Makefile
+++ b/net-im/toot/Makefile
@@ -1,5 +1,5 @@
PORTNAME= toot
-DISTVERSION= 0.48.1
+DISTVERSION= 0.50.1
CATEGORIES= net-im python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,13 +17,20 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.5.0<5.0:www/py-beautifulsou
${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}urwid>=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} \
+# missing test depends ports are: vermin, types-beautifulsoup4
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}build>=0:devel/py-build@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mypy>=0:devel/py-mypy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pillow>=9.5.0:graphics/py-pillow@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pudb>=2025.1:devel/py-pudb@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyright>=0:devel/py-pyright@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0:devel/py-pytest-xdist@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}twine>=0:devel/py-twine@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
USES= python
@@ -33,7 +40,7 @@ NO_ARCH= yes
NO_BUILD= yes
NO_INSTALL= yes
-SUB_FILES= toot
+SUB_FILES= ${PORTNAME}
SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
OPTIONS_DEFAULT= IMAGES RICHTEXT
@@ -48,18 +55,15 @@ IMAGES_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=9.5.0:graphics/py-pillow@${PY
RICHTEXT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}urwidgets>=0.2<0.3:devel/py-urwidgets@${PY_FLAVOR}
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
+ @${REINPLACE_CMD} -e 's,{__version__},${DISTVERSION},g' \
+ ${WRKSRC}/${PORTNAME}/cli/diag.py
+ @${REINPLACE_CMD} -e '175s,__version__,"${DISTVERSION}",g' \
+ ${WRKSRC}/${PORTNAME}/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}/{} \
- \;)
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @(cd ${WRKSRC}/${PORTNAME} && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} \
+ "! -name *\.bak")
.include <bsd.port.mk>
diff --git a/net-im/toot/distinfo b/net-im/toot/distinfo
index c13e689249d0..4dba47ee1a72 100644
--- a/net-im/toot/distinfo
+++ b/net-im/toot/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1751288273
-SHA256 (toot-0.48.1.tar.gz) = 99629e24bc4ef3fb22162b7742f4053648279f5e7e34b5ad53224b5d3e05a66c
-SIZE (toot-0.48.1.tar.gz) = 1328964
+TIMESTAMP = 1756196323
+SHA256 (toot-0.50.1.tar.gz) = 7118e5c3985006f4d902349c384dad2355e2e7ef3f9a987b7b6a406a0f56e0d9
+SIZE (toot-0.50.1.tar.gz) = 1315590
diff --git a/net-im/toot/pkg-plist b/net-im/toot/pkg-plist
index a5d3f304b236..0ee8230cf6d7 100644
--- a/net-im/toot/pkg-plist
+++ b/net-im/toot/pkg-plist
@@ -9,6 +9,7 @@ bin/toot
%%PYTHON_SITELIBDIR%%/toot/cli/auth.py
%%PYTHON_SITELIBDIR%%/toot/cli/diag.py
%%PYTHON_SITELIBDIR%%/toot/cli/lists.py
+%%PYTHON_SITELIBDIR%%/toot/cli/polls.py
%%PYTHON_SITELIBDIR%%/toot/cli/post.py
%%PYTHON_SITELIBDIR%%/toot/cli/read.py
%%PYTHON_SITELIBDIR%%/toot/cli/statuses.py
@@ -39,6 +40,10 @@ bin/toot
%%PYTHON_SITELIBDIR%%/toot/tui/timeline.py
%%PYTHON_SITELIBDIR%%/toot/tui/utils.py
%%PYTHON_SITELIBDIR%%/toot/tui/widgets.py
+%%PYTHON_SITELIBDIR%%/toot/urwidgets/README.md
+%%PYTHON_SITELIBDIR%%/toot/urwidgets/__init__.py
+%%PYTHON_SITELIBDIR%%/toot/urwidgets/hyperlink.py
+%%PYTHON_SITELIBDIR%%/toot/urwidgets/text_embed.py
%%PYTHON_SITELIBDIR%%/toot/utils/__init__.py
%%PYTHON_SITELIBDIR%%/toot/utils/datetime.py
%%PYTHON_SITELIBDIR%%/toot/utils/language.py