git: f1637d5737cf - main - textproc/py-mf2py: New port: Microformats parser

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 17 Oct 2025 08:01:51 UTC
The branch main has been updated by yuri:

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

commit f1637d5737cfab59ea849be24861e63fc20db8f2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-17 06:59:50 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-17 08:01:39 +0000

    textproc/py-mf2py: New port: Microformats parser
---
 textproc/Makefile           |  1 +
 textproc/py-mf2py/Makefile  | 24 ++++++++++++++++++++++++
 textproc/py-mf2py/distinfo  |  3 +++
 textproc/py-mf2py/pkg-descr |  5 +++++
 4 files changed, 33 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 5dc56ee45dd4..796bd24e3431 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1472,6 +1472,7 @@
     SUBDIR += py-mdx_wikilink_plus
     SUBDIR += py-meilisearch
     SUBDIR += py-merge3
+    SUBDIR += py-mf2py
     SUBDIR += py-mike
     SUBDIR += py-misaka
     SUBDIR += py-mistletoe
diff --git a/textproc/py-mf2py/Makefile b/textproc/py-mf2py/Makefile
new file mode 100644
index 000000000000..1aa63bcd009d
--- /dev/null
+++ b/textproc/py-mf2py/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	mf2py
+DISTVERSION=	2.0.1
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Microformats parser
+WWW=		https://github.com/microformats/mf2py
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}html5lib>=1.1:www/py-html5lib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.28.2:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.11.1:www/py-beautifulsoup@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-mf2py/distinfo b/textproc/py-mf2py/distinfo
new file mode 100644
index 000000000000..13f71e0bb0c5
--- /dev/null
+++ b/textproc/py-mf2py/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760676217
+SHA256 (mf2py-2.0.1.tar.gz) = 1380924633413b8d72e704b5c86b4382c4b1371699edecc907b01cd21138d7cd
+SIZE (mf2py-2.0.1.tar.gz) = 21843
diff --git a/textproc/py-mf2py/pkg-descr b/textproc/py-mf2py/pkg-descr
new file mode 100644
index 000000000000..c2fb6a0add0d
--- /dev/null
+++ b/textproc/py-mf2py/pkg-descr
@@ -0,0 +1,5 @@
+mf2py is a Python library for parsing microformats2,
+microformats1, and experimental metaformats from HTML documents.
+It provides a robust and flexible way to extract structured data
+from web pages, enabling applications to understand and utilize
+semantic information embedded in web content.