aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-07-09 04:41:26 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-07-09 05:20:16 +0000
commit80f222a8f93486a14f97f854e878320bf5f758af (patch)
tree9ef45b0d7abac550ea71f3262b395f83401fdc32
parentaa00ecdebb491ff2096f3ef5d59aefec24ab1701 (diff)
textproc/py-doclang: New port: DocLang reference toolkit
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-doclang/Makefile29
-rw-r--r--textproc/py-doclang/distinfo3
-rw-r--r--textproc/py-doclang/pkg-descr4
4 files changed, 37 insertions, 0 deletions
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.