aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2025-09-19 23:54:30 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2025-09-20 08:18:25 +0000
commit5f58eb4f59009a200f66012b48843c239a04f944 (patch)
treec516e16a3be174a914c0f6a58ba898b44106a7cf
parent470e666a6913eef26bccc28b7c7810137fa9d007 (diff)
textproc/py-pylatexenc: New port: Converts simple LaTeX to an unicode approximation
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-pylatexenc/Makefile27
-rw-r--r--textproc/py-pylatexenc/distinfo3
-rw-r--r--textproc/py-pylatexenc/pkg-descr2
4 files changed, 33 insertions, 0 deletions
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.