git: 633781113e5f - main - textproc/py-rich12: Add py-rich12 12.6.0 (copied from py-rich)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 30 Jan 2023 13:04:50 UTC
The branch main has been updated by sunpoet:

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

commit 633781113e5f95a51437f05c8a3142bd328f7565
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:21:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-01-30 12:58:49 +0000

    textproc/py-rich12: Add py-rich12 12.6.0 (copied from py-rich)
    
    - Update WWW
    - Fix RUN_DEPNDS
    - Add PORTSCOUT
---
 textproc/Makefile            |  1 +
 textproc/py-rich12/Makefile  | 31 +++++++++++++++++++++++++++++++
 textproc/py-rich12/distinfo  |  3 +++
 textproc/py-rich12/pkg-descr |  7 +++++++
 4 files changed, 42 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 18fb8d2b115f..10f36e4d7c82 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1491,6 +1491,7 @@
     SUBDIR += py-rich
     SUBDIR += py-rich-cli
     SUBDIR += py-rich-rst
+    SUBDIR += py-rich12
     SUBDIR += py-rnc2rng
     SUBDIR += py-rss2gen
     SUBDIR += py-rst2ansi
diff --git a/textproc/py-rich12/Makefile b/textproc/py-rich12/Makefile
new file mode 100644
index 000000000000..6741dd04813c
--- /dev/null
+++ b/textproc/py-rich12/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	rich
+PORTVERSION=	12.6.0
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	12
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Rich text and beautiful formatting in the terminal
+WWW=		https://github.com/Textualize/rich
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}CommonMark>=0.9.0<0.10.0:textproc/py-CommonMark@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pygments>=2.6.0<3.0.0:textproc/py-pygments@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+PORTSCOUT=	limit:^12\.
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0.0<5.0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/py-rich12/distinfo b/textproc/py-rich12/distinfo
new file mode 100644
index 000000000000..0093265df211
--- /dev/null
+++ b/textproc/py-rich12/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1665430659
+SHA256 (rich-12.6.0.tar.gz) = ba3a3775974105c221d31141f2c116f4fd65c5ceb0698657a11e9f295ec93fd0
+SIZE (rich-12.6.0.tar.gz) = 220114
diff --git a/textproc/py-rich12/pkg-descr b/textproc/py-rich12/pkg-descr
new file mode 100644
index 000000000000..7ca00c7ff8fc
--- /dev/null
+++ b/textproc/py-rich12/pkg-descr
@@ -0,0 +1,7 @@
+Rich is a Python library for rich text and beautiful formatting in the
+terminal.
+
+The Rich API makes it easy to add color and style to terminal
+output. Rich can also render pretty tables, progress bars, markdown,
+syntax highlighted source code, tracebacks, and more -- out of the
+box.