git: 090e79c1a715 - main - textproc/py-tinyhtml5: Add new port

Nicola Vitale <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=090e79c1a715e5f1daaa648a6bd4be3e4517a4c2

commit 090e79c1a715e5f1daaa648a6bd4be3e4517a4c2
Author:     Nicola Vitale <[email protected]>
AuthorDate: 2026-08-07 19:50:40 +0000
Commit:     Nicola Vitale <[email protected]>
CommitDate: 2026-08-07 19:50:40 +0000

    textproc/py-tinyhtml5: Add new port
    
    Tinyhtml5 is a HTML5 parser that transforms a possibly malformed HTML document
    into an ElementTree tree.
    
    https://doc.courtbouillon.org/tinyhtml5/latest/
---
 textproc/Makefile               |  1 +
 textproc/py-tinyhtml5/Makefile  | 20 ++++++++++++++++++++
 textproc/py-tinyhtml5/distinfo  |  3 +++
 textproc/py-tinyhtml5/pkg-descr |  2 ++
 4 files changed, 26 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 64597d0ede9f..e28d74d21fdc 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1786,6 +1786,7 @@
     SUBDIR += py-tiktoken
     SUBDIR += py-tinycss
     SUBDIR += py-tinycss2
+    SUBDIR += py-tinyhtml5
     SUBDIR += py-tokenizer
     SUBDIR += py-tokenizers
     SUBDIR += py-toml
diff --git a/textproc/py-tinyhtml5/Makefile b/textproc/py-tinyhtml5/Makefile
new file mode 100644
index 000000000000..6e9ad37c0679
--- /dev/null
+++ b/textproc/py-tinyhtml5/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	tinyhtml5
+DISTVERSION=	2.1.0
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	[email protected]
+COMMENT=	Tiny HTML5 parser
+WWW=		https://doc.courtbouillon.org/tinyhtml5/latest/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.12.0:devel/py-flit-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}webencodings>=0.5.1:converters/py-webencodings@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+.include <bsd.port.mk>
diff --git a/textproc/py-tinyhtml5/distinfo b/textproc/py-tinyhtml5/distinfo
new file mode 100644
index 000000000000..5d84190c028a
--- /dev/null
+++ b/textproc/py-tinyhtml5/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1786095237
+SHA256 (tinyhtml5-2.1.0.tar.gz) = 60a50ec3d938a37e491efa01af895853060943dcebb5627de5b10d188b338a67
+SIZE (tinyhtml5-2.1.0.tar.gz) = 179242
diff --git a/textproc/py-tinyhtml5/pkg-descr b/textproc/py-tinyhtml5/pkg-descr
new file mode 100644
index 000000000000..a1aaaebbf086
--- /dev/null
+++ b/textproc/py-tinyhtml5/pkg-descr
@@ -0,0 +1,2 @@
+Tinyhtml5 is a HTML5 parser that transforms a possibly malformed HTML document
+into an ElementTree tree.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.