git: 0d046814fa7e - main - textproc/py-latexcodec: Add py-latexcodec 2.0.1
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Aug 8 15:35:50 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0d046814fa7e89dbd4b2f9b5074f3c80298778b8
commit 0d046814fa7e89dbd4b2f9b5074f3c80298778b8
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-08-08 15:35:32 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-08-08 15:35:32 +0000
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
---
textproc/Makefile | 1 +
textproc/py-latexcodec/Makefile | 22 ++++++++++++++++++++++
textproc/py-latexcodec/distinfo | 3 +++
textproc/py-latexcodec/pkg-descr | 9 +++++++++
4 files changed, 35 insertions(+)
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 at FreeBSD.org>
+
+PORTNAME= latexcodec
+PORTVERSION= 2.0.1
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet at 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
More information about the dev-commits-ports-all
mailing list