aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-pylatexenc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-pylatexenc/Makefile')
-rw-r--r--textproc/py-pylatexenc/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/textproc/py-pylatexenc/Makefile b/textproc/py-pylatexenc/Makefile
new file mode 100644
index 000000000000..e08374d7010d
--- /dev/null
+++ b/textproc/py-pylatexenc/Makefile
@@ -0,0 +1,28 @@
+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} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+
+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>