aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-04-07 23:31:39 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-04-07 23:39:01 +0000
commit12bf1393bf109c530810481f99e469a9441f985e (patch)
treeeac0cb2f98e69321ecf30a233262ae7103b76fb6
parent799ba8473b623f60d69693f6338fdefdb7d9b298 (diff)
textproc/py-pymupdf4llm: New port: PyMuPDF utilities for LLM/RAG
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-pymupdf4llm/Makefile25
-rw-r--r--textproc/py-pymupdf4llm/distinfo3
-rw-r--r--textproc/py-pymupdf4llm/pkg-descr4
4 files changed, 33 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 2573598b7073..aaf32ffe1d46 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1576,6 +1576,7 @@
SUBDIR += py-pylons-sphinx-themes
SUBDIR += py-pyls-spyder
SUBDIR += py-pymdown-extensions
+ SUBDIR += py-pymupdf4llm
SUBDIR += py-pypa-docs-theme
SUBDIR += py-pypandoc
SUBDIR += py-pyphen
diff --git a/textproc/py-pymupdf4llm/Makefile b/textproc/py-pymupdf4llm/Makefile
new file mode 100644
index 000000000000..c901ba2499c7
--- /dev/null
+++ b/textproc/py-pymupdf4llm/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= pymupdf4llm
+DISTVERSION= 0.3.4
+CATEGORIES= textproc python # machine-learning
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= PyMuPDF utilities for LLM/RAG
+WWW= https://pymupdf.readthedocs.io/en/latest/pymupdf4llm/ \
+ https://github.com/pymupdf/pymupdf4llm
+
+LICENSE= AGPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymupdf>=1.27.1:print/py-PyMuPDF@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-pymupdf4llm/distinfo b/textproc/py-pymupdf4llm/distinfo
new file mode 100644
index 000000000000..a97bf893cdc6
--- /dev/null
+++ b/textproc/py-pymupdf4llm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1775602606
+SHA256 (pymupdf4llm-0.3.4.tar.gz) = 48d396a5fb3c14351493c7f1dd25b2a843efdbdc4526e489ee100643a2cebec1
+SIZE (pymupdf4llm-0.3.4.tar.gz) = 74956
diff --git a/textproc/py-pymupdf4llm/pkg-descr b/textproc/py-pymupdf4llm/pkg-descr
new file mode 100644
index 000000000000..f5795d477a03
--- /dev/null
+++ b/textproc/py-pymupdf4llm/pkg-descr
@@ -0,0 +1,4 @@
+pymupdf4llm provides utilities to convert PDF documents to Markdown format
+suitable for use with Large Language Models (LLMs) and Retrieval-Augmented
+Generation (RAG) systems. It is built on top of PyMuPDF and preserves the
+document's structure, tables, images, and text formatting.