aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-08-08 15:35:32 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-08-08 15:35:32 +0000
commit0d046814fa7e89dbd4b2f9b5074f3c80298778b8 (patch)
tree3e4ef38e0b3126d4083d8face243979343f21bc2 /textproc
parent72dfefa92d9790c09b9750866d38182c96312e2c (diff)
downloadports-0d046814fa7e89dbd4b2f9b5074f3c80298778b8.tar.gz
ports-0d046814fa7e89dbd4b2f9b5074f3c80298778b8.zip
textproc/py-latexcodec: Add py-latexcodec 2.0.1
The codec provides a convenient way of going between text written in LaTeX and unicode. Since it is not a LaTeX compiler, it is more appropriate for short chunks of text, such as a paragraph or the values of a BibTeX entry, and it is not appropriate for a full LaTeX document. In particular, its behavior on the LaTeX commands that do not simply select characters is intended to allow the unicode representation to be understandable by a human reader, but is not canonical and may require hand tuning to produce the desired effect. WWW: https://github.com/mcmtroffaes/latexcodec
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-latexcodec/Makefile22
-rw-r--r--textproc/py-latexcodec/distinfo3
-rw-r--r--textproc/py-latexcodec/pkg-descr9
4 files changed, 35 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 270fafda4a72..ca21d62e97cc 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1320,6 +1320,7 @@
SUBDIR += py-langdetect
SUBDIR += py-langid
SUBDIR += py-laserhammer
+ SUBDIR += py-latexcodec
SUBDIR += py-libxml2
SUBDIR += py-license-expression
SUBDIR += py-line-protocol-parser
diff --git a/textproc/py-latexcodec/Makefile b/textproc/py-latexcodec/Makefile
new file mode 100644
index 000000000000..2a2bffdd4eb1
--- /dev/null
+++ b/textproc/py-latexcodec/Makefile
@@ -0,0 +1,22 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= latexcodec
+PORTVERSION= 2.0.1
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Lexer and codec to work with LaTeX code in Python
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.rst
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-latexcodec/distinfo b/textproc/py-latexcodec/distinfo
new file mode 100644
index 000000000000..e5e3428bc135
--- /dev/null
+++ b/textproc/py-latexcodec/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1628171941
+SHA256 (latexcodec-2.0.1.tar.gz) = 2aa2551c373261cefe2ad3a8953a6d6533e68238d180eb4bb91d7964adb3fe9a
+SIZE (latexcodec-2.0.1.tar.gz) = 30131
diff --git a/textproc/py-latexcodec/pkg-descr b/textproc/py-latexcodec/pkg-descr
new file mode 100644
index 000000000000..a874af4e8107
--- /dev/null
+++ b/textproc/py-latexcodec/pkg-descr
@@ -0,0 +1,9 @@
+The codec provides a convenient way of going between text written in LaTeX and
+unicode. Since it is not a LaTeX compiler, it is more appropriate for short
+chunks of text, such as a paragraph or the values of a BibTeX entry, and it is
+not appropriate for a full LaTeX document. In particular, its behavior on the
+LaTeX commands that do not simply select characters is intended to allow the
+unicode representation to be understandable by a human reader, but is not
+canonical and may require hand tuning to produce the desired effect.
+
+WWW: https://github.com/mcmtroffaes/latexcodec