git: 6f0e01784fe7 - main - misc/py-python-pygtrie: New port: Pure Python trie data structure implementation
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Oct 2025 08:29:39 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6f0e01784fe78f430974aa9cbc136199c45de86c
commit 6f0e01784fe78f430974aa9cbc136199c45de86c
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-10-04 06:57:13 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-10-06 08:25:49 +0000
misc/py-python-pygtrie: New port: Pure Python trie data structure implementation
---
misc/Makefile | 1 +
misc/py-python-pygtrie/Makefile | 24 ++++++++++++++++++++++++
misc/py-python-pygtrie/distinfo | 3 +++
misc/py-python-pygtrie/pkg-descr | 4 ++++
4 files changed, 32 insertions(+)
diff --git a/misc/Makefile b/misc/Makefile
index 8bab1c206b7c..8e2331094070 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -546,6 +546,7 @@
SUBDIR += py-pyqir
SUBDIR += py-python-crc
SUBDIR += py-python-geohash
+ SUBDIR += py-python-pygtrie
SUBDIR += py-python-utils
SUBDIR += py-pytorch
SUBDIR += py-pytorch-lightning
diff --git a/misc/py-python-pygtrie/Makefile b/misc/py-python-pygtrie/Makefile
new file mode 100644
index 000000000000..bd1d12b1b3dd
--- /dev/null
+++ b/misc/py-python-pygtrie/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= python-pygtrie
+PORTVERSION= 2.5.0
+CATEGORIES= misc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pygtrie-${PORTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Pure Python trie data structure implementation
+WWW= https://github.com/mina86/pygtrie
+
+LICENSE= APACHE20
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} test.py
+
+# tests as of 2.5.0: 450 tests in 2.674s, OK
+
+.include <bsd.port.mk>
diff --git a/misc/py-python-pygtrie/distinfo b/misc/py-python-pygtrie/distinfo
new file mode 100644
index 000000000000..ab47e7e6d513
--- /dev/null
+++ b/misc/py-python-pygtrie/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759556431
+SHA256 (pygtrie-2.5.0.tar.gz) = 203514ad826eb403dab1d2e2ddd034e0d1534bbe4dbe0213bb0593f66beba4e2
+SIZE (pygtrie-2.5.0.tar.gz) = 39266
diff --git a/misc/py-python-pygtrie/pkg-descr b/misc/py-python-pygtrie/pkg-descr
new file mode 100644
index 000000000000..abecc4aed868
--- /dev/null
+++ b/misc/py-python-pygtrie/pkg-descr
@@ -0,0 +1,4 @@
+A trie is a tree-like data structure whose nodes store the letters of an
+alphabet. By structuring the nodes in a particular way, words and strings
+can be retrieved from the structure by traversing down a branch path of
+the tree.