git: 54334ae7efb4 - main - textproc/py-ansi2html: Add py-ansi2html 1.8.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 30 Sep 2023 00:47:45 UTC
The branch main has been updated by sunpoet:

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

commit 54334ae7efb47a5d329d15f0ad3a5d80f6b68a06
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-30 00:18:37 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-30 00:44:18 +0000

    textproc/py-ansi2html: Add py-ansi2html 1.8.0
    
    ansi2html converts text with ANSI color codes to HTML or to LaTeX. It is
    inspired by and developed off of the work of pixelbeat and blackjack.
---
 textproc/Makefile               |  1 +
 textproc/py-ansi2html/Makefile  | 25 +++++++++++++++++++++++++
 textproc/py-ansi2html/distinfo  |  3 +++
 textproc/py-ansi2html/pkg-descr |  2 ++
 4 files changed, 31 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index d129c87fc82d..f184899e6b1c 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1303,6 +1303,7 @@
     SUBDIR += py-agate-dbf
     SUBDIR += py-agate-excel
     SUBDIR += py-alabaster
+    SUBDIR += py-ansi2html
     SUBDIR += py-anyascii
     SUBDIR += py-arabic-reshaper
     SUBDIR += py-asciinema
diff --git a/textproc/py-ansi2html/Makefile b/textproc/py-ansi2html/Makefile
new file mode 100644
index 000000000000..a89a590eb2d3
--- /dev/null
+++ b/textproc/py-ansi2html/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	ansi2html
+PORTVERSION=	1.8.0
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Convert text with ansi color codes to HTML
+WWW=		https://ansi2html.readthedocs.io/ \
+		https://github.com/pycontribs/ansi2html
+
+LICENSE=	LGPL3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=41.0.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.0.1:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm_git_archive>=1.0:devel/py-setuptools_scm_git_archive@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-ansi2html/distinfo b/textproc/py-ansi2html/distinfo
new file mode 100644
index 000000000000..c2cf8057210c
--- /dev/null
+++ b/textproc/py-ansi2html/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696001250
+SHA256 (ansi2html-1.8.0.tar.gz) = 38b82a298482a1fa2613f0f9c9beb3db72a8f832eeac58eb2e47bf32cd37f6d5
+SIZE (ansi2html-1.8.0.tar.gz) = 44146
diff --git a/textproc/py-ansi2html/pkg-descr b/textproc/py-ansi2html/pkg-descr
new file mode 100644
index 000000000000..85374cf0837b
--- /dev/null
+++ b/textproc/py-ansi2html/pkg-descr
@@ -0,0 +1,2 @@
+ansi2html converts text with ANSI color codes to HTML or to LaTeX. It is
+inspired by and developed off of the work of pixelbeat and blackjack.