git: 80f222a8f934 - main - textproc/py-doclang: New port: DocLang reference toolkit

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 09 Jul 2026 05:20:38 UTC
The branch main has been updated by yuri:

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

commit 80f222a8f93486a14f97f854e878320bf5f758af
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-09 04:41:26 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-09 05:20:16 +0000

    textproc/py-doclang: New port: DocLang reference toolkit
---
 textproc/Makefile             |  1 +
 textproc/py-doclang/Makefile  | 29 +++++++++++++++++++++++++++++
 textproc/py-doclang/distinfo  |  3 +++
 textproc/py-doclang/pkg-descr |  4 ++++
 4 files changed, 37 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index cf38c5f294bc..da9dea7a9239 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1385,6 +1385,7 @@
     SUBDIR += py-dict2xml
     SUBDIR += py-diff-match-patch
     SUBDIR += py-dirtyjson
+    SUBDIR += py-doclang
     SUBDIR += py-docrepr
     SUBDIR += py-docstring-to-markdown
     SUBDIR += py-docstring_parser
diff --git a/textproc/py-doclang/Makefile b/textproc/py-doclang/Makefile
new file mode 100644
index 000000000000..c223800960d0
--- /dev/null
+++ b/textproc/py-doclang/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	doclang
+PORTVERSION=	0.7.2
+CATEGORIES=	textproc python # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	DocLang reference toolkit
+WWW=		https://doclang.ai/ \
+		https://github.com/doclang-project
+
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>=6.0.2:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typer>=0.15.1:devel/py-typer@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+NO_ARCH=	yes
+
+post-extract:
+	@${REINPLACE_CMD} -e 's/^license = "\([^"]*\)"/license = {text = "\1"}/' \
+		-e '/^license-files/d' \
+		-e 's/setuptools>=80/setuptools>=0/' \
+		${WRKSRC}/pyproject.toml
+
+.include <bsd.port.mk>
diff --git a/textproc/py-doclang/distinfo b/textproc/py-doclang/distinfo
new file mode 100644
index 000000000000..94d6ec1ff29e
--- /dev/null
+++ b/textproc/py-doclang/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783571911
+SHA256 (doclang-0.7.2.tar.gz) = 89c17a168ef9443c2f814284bae3ea3dbf2f1910e79d4fd6cbdde04aa7c06d40
+SIZE (doclang-0.7.2.tar.gz) = 30593
diff --git a/textproc/py-doclang/pkg-descr b/textproc/py-doclang/pkg-descr
new file mode 100644
index 000000000000..1f500268e1a0
--- /dev/null
+++ b/textproc/py-doclang/pkg-descr
@@ -0,0 +1,4 @@
+DocLang is a reference toolkit for document language processing. It
+provides tools and utilities for working with document-oriented
+natural language data, supporting tasks such as document classification,
+information extraction, and content analysis.