git: 2e7f386e25d8 - main - textproc/py-toon-format: new port

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Sun, 20 Sep 2026 20:27:00 UTC
The branch main has been updated by michaelo:

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

commit 2e7f386e25d8fed3eaccd32d5bc839681669d119
Author:     Pete Diamond <lazeraman@gmail.com>
AuthorDate: 2026-09-20 19:31:31 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2026-09-20 20:26:21 +0000

    textproc/py-toon-format: new port
    
    TOON (Token-Oriented Object Notation) is a compact, human-readable
    serialization format for handing structured data to large language models,
    encoding the same content as JSON in markedly fewer tokens.  It provides
    encode and decode functions along with a toon command-line tool.
    
    PR:             298712
---
 textproc/Makefile                 |  1 +
 textproc/py-toon-format/Makefile  | 22 ++++++++++++++++++++++
 textproc/py-toon-format/distinfo  |  3 +++
 textproc/py-toon-format/pkg-descr |  4 ++++
 4 files changed, 30 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index a996b5c19f62..5e8917b1f4ae 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1801,6 +1801,7 @@
     SUBDIR += py-tomli-w
     SUBDIR += py-tomlkit
     SUBDIR += py-tomllint
+    SUBDIR += py-toon-format
     SUBDIR += py-toronado
     SUBDIR += py-towncrier
     SUBDIR += py-translationstring
diff --git a/textproc/py-toon-format/Makefile b/textproc/py-toon-format/Makefile
new file mode 100644
index 000000000000..d42caa715660
--- /dev/null
+++ b/textproc/py-toon-format/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	toon-format
+DISTVERSION=	0.9.0b1
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	lazeraman@gmail.com
+COMMENT=	Token-oriented object notation for LLM prompts
+WWW=		https://github.com/toon-format/toon-python
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517 pytest
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-toon-format/distinfo b/textproc/py-toon-format/distinfo
new file mode 100644
index 000000000000..cdfd570d9447
--- /dev/null
+++ b/textproc/py-toon-format/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1789932064
+SHA256 (toon_format-0.9.0b1.tar.gz) = 8f391dd6ad9677c78366bd8eb6762d064a2183f67b9b7da1f348fdb6ee8738e7
+SIZE (toon_format-0.9.0b1.tar.gz) = 87398
diff --git a/textproc/py-toon-format/pkg-descr b/textproc/py-toon-format/pkg-descr
new file mode 100644
index 000000000000..a648764961ed
--- /dev/null
+++ b/textproc/py-toon-format/pkg-descr
@@ -0,0 +1,4 @@
+TOON (Token-Oriented Object Notation) is a compact, human-readable
+serialization format for handing structured data to large language models,
+encoding the same content as JSON in markedly fewer tokens.  It provides
+encode and decode functions along with a toon command-line tool.