git: 5f58eb4f5900 - main - textproc/py-pylatexenc: New port: Converts simple LaTeX to an unicode approximation

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 20 Sep 2025 08:18:31 UTC
The branch main has been updated by yuri:

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

commit 5f58eb4f59009a200f66012b48843c239a04f944
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-19 23:54:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-20 08:18:25 +0000

    textproc/py-pylatexenc: New port: Converts simple LaTeX to an unicode approximation
---
 textproc/Makefile                |  1 +
 textproc/py-pylatexenc/Makefile  | 27 +++++++++++++++++++++++++++
 textproc/py-pylatexenc/distinfo  |  3 +++
 textproc/py-pylatexenc/pkg-descr |  2 ++
 4 files changed, 33 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 897fcba54b82..b17c4a907330 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1552,6 +1552,7 @@
     SUBDIR += py-pygtail
     SUBDIR += py-pyhamcrest
     SUBDIR += py-pykwalify
+    SUBDIR += py-pylatexenc
     SUBDIR += py-pylons-sphinx-themes
     SUBDIR += py-pyls-spyder
     SUBDIR += py-pymdown-extensions
diff --git a/textproc/py-pylatexenc/Makefile b/textproc/py-pylatexenc/Makefile
new file mode 100644
index 000000000000..479f6394413c
--- /dev/null
+++ b/textproc/py-pylatexenc/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	pylatexenc
+PORTVERSION=	2.10
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Converts simple LaTeX to an unicode approximation
+WWW=		https://pylatexenc.readthedocs.io/en/latest/ \
+		https://github.com/phfaist/pylatexenc
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} \
+		${PY_SETUPTOOLS}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+# tests as of 2.10: 97 passed, 1 warning in 39.53s
+
+.include <bsd.port.mk>
diff --git a/textproc/py-pylatexenc/distinfo b/textproc/py-pylatexenc/distinfo
new file mode 100644
index 000000000000..2d0c76020879
--- /dev/null
+++ b/textproc/py-pylatexenc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1758325453
+SHA256 (pylatexenc-2.10.tar.gz) = 3dd8fd84eb46dc30bee1e23eaab8d8fb5a7f507347b23e5f38ad9675c84f40d3
+SIZE (pylatexenc-2.10.tar.gz) = 162597
diff --git a/textproc/py-pylatexenc/pkg-descr b/textproc/py-pylatexenc/pkg-descr
new file mode 100644
index 000000000000..73f396b2b794
--- /dev/null
+++ b/textproc/py-pylatexenc/pkg-descr
@@ -0,0 +1,2 @@
+pylatexenc is a simple LaTeX parser providing latex-to-unicode and
+unicode-to-latex conversion.