git: f9cb8936e073 - main - textproc/py-rich-cli: Add py-rich-cli 1.7.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 13 May 2022 11:44:27 UTC
The branch main has been updated by sunpoet:

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

commit f9cb8936e073bae1f622c3dbb0de77c0fe2d7b82
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-05-13 11:27:32 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-05-13 11:39:11 +0000

    textproc/py-rich-cli: Add py-rich-cli 1.7.0
    
    Rich-cli is a command line toolbox for fancy output in the terminal, built with
    Rich.
    
    Use the rich command to highlight a variety of file types in the terminal, with
    specialized rendering for Markdown and JSON files. Additionally you can markup
    and format text from the command line.
    
    WWW: https://github.com/Textualize/rich-cli
---
 textproc/Makefile              |  1 +
 textproc/py-rich-cli/Makefile  | 26 ++++++++++++++++++++++++++
 textproc/py-rich-cli/distinfo  |  3 +++
 textproc/py-rich-cli/pkg-descr |  8 ++++++++
 4 files changed, 38 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 202a7ead6a3e..0d77c9286f60 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1463,6 +1463,7 @@
     SUBDIR += py-restructuredtext-lint
     SUBDIR += py-reverend
     SUBDIR += py-rich
+    SUBDIR += py-rich-cli
     SUBDIR += py-rnc2rng
     SUBDIR += py-rss2gen
     SUBDIR += py-rst2ansi
diff --git a/textproc/py-rich-cli/Makefile b/textproc/py-rich-cli/Makefile
new file mode 100644
index 000000000000..2b988a3a75f1
--- /dev/null
+++ b/textproc/py-rich-cli/Makefile
@@ -0,0 +1,26 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	rich-cli
+PORTVERSION=	1.7.0
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Command Line Interface to Rich
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8.0.0<9.0.0:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.0.0<3.0.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich>=12.3.0<13.0.0:textproc/py-rich@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}rich-rst>=1.1.7<2.0.0:textproc/py-rich-rst@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}textual>=0.1.18<0.2.0:textproc/py-textual@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-rich-cli/distinfo b/textproc/py-rich-cli/distinfo
new file mode 100644
index 000000000000..02be1d14b33f
--- /dev/null
+++ b/textproc/py-rich-cli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1652122535
+SHA256 (rich-cli-1.7.0.tar.gz) = 7e9a2bca579cf47fbd1b6bfc0f43b7d9e93b390b376114a66b5c4ea5a90296a9
+SIZE (rich-cli-1.7.0.tar.gz) = 17097
diff --git a/textproc/py-rich-cli/pkg-descr b/textproc/py-rich-cli/pkg-descr
new file mode 100644
index 000000000000..70bac1e1cf43
--- /dev/null
+++ b/textproc/py-rich-cli/pkg-descr
@@ -0,0 +1,8 @@
+Rich-cli is a command line toolbox for fancy output in the terminal, built with
+Rich.
+
+Use the rich command to highlight a variety of file types in the terminal, with
+specialized rendering for Markdown and JSON files. Additionally you can markup
+and format text from the command line.
+
+WWW: https://github.com/Textualize/rich-cli