summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuf Yaman <nxjoseph@protonmail.com>2024-12-27 18:28:18 +0100
committerZsolt Udvari <uzsolt@FreeBSD.org>2024-12-27 18:31:30 +0100
commit02f364b4dfaa944c92a5fd29003726ae02ed55d7 (patch)
treea6e1407bef0447a1ec4fdcbea8b251d03f61bc6a
parentdevel/py-game_sdl2: Fix pkg build (diff)
net-im/toot: Update to 0.47.1
Use python-flavors. Switch to manuall install method because there is no setup.py anymore. Switch to DISTVERSION. Submitter takes maintainership. Changelogs: https://github.com/ihabunek/toot/releases/tag/0.43.0 https://github.com/ihabunek/toot/releases/tag/0.44.0 https://github.com/ihabunek/toot/releases/tag/0.44.1 https://github.com/ihabunek/toot/releases/tag/0.45.0 https://github.com/ihabunek/toot/releases/tag/0.46.0 https://github.com/ihabunek/toot/releases/tag/0.47.0 https://github.com/ihabunek/toot/releases/tag/0.47.1 PR: 283634
-rw-r--r--net-im/toot/Makefile35
-rw-r--r--net-im/toot/distinfo6
-rw-r--r--net-im/toot/files/toot.in8
-rw-r--r--net-im/toot/pkg-plist44
4 files changed, 80 insertions, 13 deletions
diff --git a/net-im/toot/Makefile b/net-im/toot/Makefile
index 01645e5a28a5..957dd1e91f62 100644
--- a/net-im/toot/Makefile
+++ b/net-im/toot/Makefile
@@ -1,11 +1,11 @@
PORTNAME= toot
-PORTVERSION= 0.42.0
-MASTER_SITES= PYPI \
- https://github.com/ihabunek/toot/releases/download/${PORTVERSION}/
+DISTVERSION= 0.47.1
CATEGORIES= net-im python
+MASTER_SITES= PYPI \
+ https://github.com/ihabunek/toot/releases/download/${DISTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-MAINTAINER= ports@freebsd.org
+MAINTAINER= nxjoseph@protonmail.com
COMMENT= Interact with the Mastodon social network from the command line
WWW= https://github.com/ihabunek/toot
@@ -16,18 +16,33 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.5.0<5.0:www/py-beautifulsou
${PYTHON_PKGNAMEPREFIX}click>=8.1<9:devel/py-click@${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}wcwidth>=0.1.7:devel/py-wcwidth@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}urwid>=2.0.0<3.0:devel/py-urwid@${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}psycopg2>=0:databases/py-psycopg2@${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} \
- ${PYTHON_PKGNAMEPREFIX}urwidgets>=0.1:devel/py-urwidgets@${PY_FLAVOR}
+ ${PYTHON_PKGNAMEPREFIX}urwidgets>=0:devel/py-urwidgets@${PY_FLAVOR}
-USES= python
-USE_PYTHON= autoplist distutils pytest
+USES= python:3.8+
+USE_PYTHON= flavors pytest
NO_ARCH= yes
+NO_BUILD= yes
+NO_INSTALL= yes
+
+SUB_FILES= toot
+SUB_LIST= PYTHON_CMD=${PYTHON_CMD}
+
+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 <bsd.port.mk>
diff --git a/net-im/toot/distinfo b/net-im/toot/distinfo
index f307ae7286f5..b2fd38e376a1 100644
--- a/net-im/toot/distinfo
+++ b/net-im/toot/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1712886516
-SHA256 (toot-0.42.0.tar.gz) = 6f6c128f7111ff945de6f67386083d1426d086beda4f40b410b8f646409183ef
-SIZE (toot-0.42.0.tar.gz) = 1000822
+TIMESTAMP = 1735070581
+SHA256 (toot-0.47.1.tar.gz) = fae758b50d22c019379a1f90ac0fe7adfc152ce8899005e463b36ee2e88abc2b
+SIZE (toot-0.47.1.tar.gz) = 1318249
diff --git a/net-im/toot/files/toot.in b/net-im/toot/files/toot.in
new file mode 100644
index 000000000000..af8a6c3c302b
--- /dev/null
+++ b/net-im/toot/files/toot.in
@@ -0,0 +1,8 @@
+#!%%PYTHON_CMD%%
+# -*- coding: utf-8 -*-
+import re
+import sys
+from toot.cli import cli
+if __name__ == '__main__':
+ sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
+ sys.exit(cli())
diff --git a/net-im/toot/pkg-plist b/net-im/toot/pkg-plist
new file mode 100644
index 000000000000..ae2888f13fa6
--- /dev/null
+++ b/net-im/toot/pkg-plist
@@ -0,0 +1,44 @@
+bin/toot
+%%PYTHON_SITELIBDIR%%/toot/__init__.py
+%%PYTHON_SITELIBDIR%%/toot/__main__.py
+%%PYTHON_SITELIBDIR%%/toot/api.py
+%%PYTHON_SITELIBDIR%%/toot/auth.py
+%%PYTHON_SITELIBDIR%%/toot/cache.py
+%%PYTHON_SITELIBDIR%%/toot/cli/__init__.py
+%%PYTHON_SITELIBDIR%%/toot/cli/accounts.py
+%%PYTHON_SITELIBDIR%%/toot/cli/auth.py
+%%PYTHON_SITELIBDIR%%/toot/cli/diag.py
+%%PYTHON_SITELIBDIR%%/toot/cli/lists.py
+%%PYTHON_SITELIBDIR%%/toot/cli/post.py
+%%PYTHON_SITELIBDIR%%/toot/cli/read.py
+%%PYTHON_SITELIBDIR%%/toot/cli/statuses.py
+%%PYTHON_SITELIBDIR%%/toot/cli/tags.py
+%%PYTHON_SITELIBDIR%%/toot/cli/timelines.py
+%%PYTHON_SITELIBDIR%%/toot/cli/tui.py
+%%PYTHON_SITELIBDIR%%/toot/cli/validators.py
+%%PYTHON_SITELIBDIR%%/toot/config.py
+%%PYTHON_SITELIBDIR%%/toot/entities.py
+%%PYTHON_SITELIBDIR%%/toot/exceptions.py
+%%PYTHON_SITELIBDIR%%/toot/http.py
+%%PYTHON_SITELIBDIR%%/toot/logging.py
+%%PYTHON_SITELIBDIR%%/toot/output.py
+%%PYTHON_SITELIBDIR%%/toot/settings.py
+%%PYTHON_SITELIBDIR%%/toot/tui/NOTES.md
+%%PYTHON_SITELIBDIR%%/toot/tui/__init__.py
+%%PYTHON_SITELIBDIR%%/toot/tui/app.py
+%%PYTHON_SITELIBDIR%%/toot/tui/compose.py
+%%PYTHON_SITELIBDIR%%/toot/tui/constants.py
+%%PYTHON_SITELIBDIR%%/toot/tui/entities.py
+%%PYTHON_SITELIBDIR%%/toot/tui/images.py
+%%PYTHON_SITELIBDIR%%/toot/tui/overlays.py
+%%PYTHON_SITELIBDIR%%/toot/tui/poll.py
+%%PYTHON_SITELIBDIR%%/toot/tui/richtext/__init__.py
+%%PYTHON_SITELIBDIR%%/toot/tui/richtext/richtext.py
+%%PYTHON_SITELIBDIR%%/toot/tui/scroll.py
+%%PYTHON_SITELIBDIR%%/toot/tui/timeline.py
+%%PYTHON_SITELIBDIR%%/toot/tui/utils.py
+%%PYTHON_SITELIBDIR%%/toot/tui/widgets.py
+%%PYTHON_SITELIBDIR%%/toot/utils/__init__.py
+%%PYTHON_SITELIBDIR%%/toot/utils/datetime.py
+%%PYTHON_SITELIBDIR%%/toot/utils/language.py
+%%PYTHON_SITELIBDIR%%/toot/wcstring.py