git: 23c4ba88d11f - main - net-p2p/py-stig: TUI and CLI client for the BitTorrent Transmission daemon

From: Koichiro Iwao <meta_at_FreeBSD.org>
Date: Wed, 06 Nov 2024 04:48:45 UTC
The branch main has been updated by meta:

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

commit 23c4ba88d11fb5c1a9322d4f67cb9b40f64698f6
Author:     Älven <alster@vinterdalen.se>
AuthorDate: 2024-11-05 22:46:40 +0000
Commit:     Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2024-11-06 04:45:18 +0000

    net-p2p/py-stig: TUI and CLI client for the BitTorrent Transmission daemon
    
    PR:             282578
---
 net-p2p/Makefile          |  1 +
 net-p2p/py-stig/Makefile  | 30 ++++++++++++++++++++++++++++++
 net-p2p/py-stig/distinfo  |  3 +++
 net-p2p/py-stig/pkg-descr | 20 ++++++++++++++++++++
 4 files changed, 54 insertions(+)

diff --git a/net-p2p/Makefile b/net-p2p/Makefile
index aa2a5e1198c4..4f847f134953 100644
--- a/net-p2p/Makefile
+++ b/net-p2p/Makefile
@@ -77,6 +77,7 @@
     SUBDIR += py-libtorrent-rasterbar
     SUBDIR += py-nicotine-plus
     SUBDIR += py-pulsar-client
+    SUBDIR += py-stig
     SUBDIR += py-transmission-rpc
     SUBDIR += py-tremc
     SUBDIR += pyln-bolt7
diff --git a/net-p2p/py-stig/Makefile b/net-p2p/py-stig/Makefile
new file mode 100644
index 000000000000..0fe4726517fb
--- /dev/null
+++ b/net-p2p/py-stig/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	stig
+DISTVERSION=	0.12.11a0
+CATEGORIES=	net-p2p
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	alster@vinterdalen.se
+COMMENT=	TUI and CLI client for the BitTorrent Transmission daemon
+WWW=		https://github.com/rndusr/stig/
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp-socks>0:net/py-aiohttp-socks@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}async_timeout>0:devel/py-async_timeout@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}blinker>0:devel/py-blinker@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}natsort>0:devel/py-natsort@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setproctitle>0:devel/py-setproctitle@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urwidtrees>0:devel/py-urwidtrees@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asynctest>0:devel/py-asynctest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils pytest
+
+NO_ARCH=	yes
+
+TESTING_UNSAFE=	yes
+
+.include <bsd.port.mk>
diff --git a/net-p2p/py-stig/distinfo b/net-p2p/py-stig/distinfo
new file mode 100644
index 000000000000..e60294e2c1f5
--- /dev/null
+++ b/net-p2p/py-stig/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1730839977
+SHA256 (stig-0.12.11a0.tar.gz) = 25b98a3e3a67e6757cf48864e4bc2a3fc6397d4faf6440a536aad57f777c8e27
+SIZE (stig-0.12.11a0.tar.gz) = 234990
diff --git a/net-p2p/py-stig/pkg-descr b/net-p2p/py-stig/pkg-descr
new file mode 100644
index 000000000000..2c1e85aa666e
--- /dev/null
+++ b/net-p2p/py-stig/pkg-descr
@@ -0,0 +1,20 @@
+Stig features:
+
+* Filters are used to select torrents for listing, starting/stopping, deleting,
+etc
+
+* Tabs allow you to open and switch between multiple lists (torrents, peers,
+files, etc)
+
+* Commands do almost everything, and they can be invoked:
+- through single- or multi-key (think GNU/EMACS) keybindings,
+- by entering them in a command prompt in the TUI (think vi) with tab completion
+- by providing them as CLI arguments when invoking stig (think Git),
+- or by listing them in an rc file which is automatically loaded.
+
+* Color themes support 16 and 256 colors
+
+* Complete built-in documentation with help command or --help argument
+
+* Full API abstraction layer makes it possible to add support for other
+BitTorrent clients with RPC interfaces (contributors are welcome)