git: f6c58e870950 - main - Add textproc/py-RTFDE: Library for extracting HTML content from RTF encapsulated HTML
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Oct 2022 18:19:46 UTC
The branch main has been updated by lwhsu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f6c58e87095071d9ddd83df70090cd561be7ab9a
commit f6c58e87095071d9ddd83df70090cd561be7ab9a
Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2022-09-23 17:54:09 +0000
Commit: Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-10-25 18:19:01 +0000
Add textproc/py-RTFDE: Library for extracting HTML content from RTF encapsulated HTML
RTFDE is a python3 library for extracting encapsulated HTML & plain
text content from the RTF bodies of .msg files.
De-encapsulation enables previously encapsulated HTML and plain
text content to be extracted and rendered as HTML and plain text
instead of the encapsulating RTF content. After de-encapsulation,
the HTML and plain text should differ only minimally from the
original HTML or plain text content.
WWW: https://github.com/seamustuohy/RTFDE
PR: 265764
---
textproc/Makefile | 1 +
textproc/py-RTFDE/Makefile | 25 +++++++++++++++++++++++++
textproc/py-RTFDE/distinfo | 3 +++
textproc/py-RTFDE/pkg-descr | 8 ++++++++
4 files changed, 37 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 941814c52f1a..0fb79b908615 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1272,6 +1272,7 @@
SUBDIR += py-CommonMark
SUBDIR += py-Morfessor
SUBDIR += py-QDarkStyle
+ SUBDIR += py-RTFDE
SUBDIR += py-Tempita
SUBDIR += py-acora
SUBDIR += py-aeidon
diff --git a/textproc/py-RTFDE/Makefile b/textproc/py-RTFDE/Makefile
new file mode 100644
index 000000000000..314c22f2e1dc
--- /dev/null
+++ b/textproc/py-RTFDE/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= RTFDE
+PORTVERSION= 0.0.2
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= DtxdF@disroot.org
+COMMENT= Library for extracting HTML content from RTF encapsulated HTML
+WWW= https://github.com/seamustuohy/RTFDE
+
+LICENSE= LGPL3
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lark>=0.11:devel/py-lark@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}oletools>=0.56:devel/py-oletools@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist distutils
+
+OPTIONS_DEFINE= LXML
+
+LXML_DESC= Pythonic binding for the libxml2 and libxslt libraries
+
+LXML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=4.6:devel/py-lxml@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/textproc/py-RTFDE/distinfo b/textproc/py-RTFDE/distinfo
new file mode 100644
index 000000000000..388e1d5c0995
--- /dev/null
+++ b/textproc/py-RTFDE/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1659984075
+SHA256 (RTFDE-0.0.2.tar.gz) = b86b5d734950fe8745a5b89133f50554252dbd67c6d1b9265e23ee140e7ea8a2
+SIZE (RTFDE-0.0.2.tar.gz) = 18891
diff --git a/textproc/py-RTFDE/pkg-descr b/textproc/py-RTFDE/pkg-descr
new file mode 100644
index 000000000000..a5947fc01470
--- /dev/null
+++ b/textproc/py-RTFDE/pkg-descr
@@ -0,0 +1,8 @@
+RTFDE is a python3 library for extracting encapsulated HTML & plain
+text content from the RTF bodies of .msg files.
+
+De-encapsulation enables previously encapsulated HTML and plain
+text content to be extracted and rendered as HTML and plain text
+instead of the encapsulating RTF content. After de-encapsulation,
+the HTML and plain text should differ only minimally from the
+original HTML or plain text content.