git: 4e7341ccc5c8 - main - devel/py-marisa-trie: Add py-marisa-trie 1.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:17:07 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4e7341ccc5c87ba09f66d6b45d1c6a3e699247ea

commit 4e7341ccc5c87ba09f66d6b45d1c6a3e699247ea
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:12:49 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:06:05 +0000

    devel/py-marisa-trie: Add py-marisa-trie 1.1.0
    
    MARISA Trie provides static memory-efficient Trie-like structures for Python
    based on marisa-trie C++ library.
    
    String data in a MARISA-trie may take up to 50x-100x less memory than in a
    standard Python dict; the raw lookup speed is comparable; trie also provides
    fast advanced methods like prefix search.
    
    Note: There are official SWIG-based Python bindings included in C++ library
    distribution; this package provides alternative Cython-based pip-installable
    Python bindings.
---
 devel/Makefile                 |  1 +
 devel/py-marisa-trie/Makefile  | 23 +++++++++++++++++++++++
 devel/py-marisa-trie/distinfo  |  3 +++
 devel/py-marisa-trie/pkg-descr | 10 ++++++++++
 4 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 9744db7ea3b3..32dfe11ad80b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5005,6 +5005,7 @@
     SUBDIR += py-mailcap-fix
     SUBDIR += py-makefun
     SUBDIR += py-manuel
+    SUBDIR += py-marisa-trie
     SUBDIR += py-marrow.mailer
     SUBDIR += py-marrow.util
     SUBDIR += py-marshmallow
diff --git a/devel/py-marisa-trie/Makefile b/devel/py-marisa-trie/Makefile
new file mode 100644
index 000000000000..28454cfe608a
--- /dev/null
+++ b/devel/py-marisa-trie/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	marisa-trie
+PORTVERSION=	1.1.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Static memory-efficient and fast Trie-like structures for Python
+WWW=		https://marisa-trie.readthedocs.io/en/latest/ \
+		https://github.com/pytries/marisa-trie
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+post-install:
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/devel/py-marisa-trie/distinfo b/devel/py-marisa-trie/distinfo
new file mode 100644
index 000000000000..b86d42a39436
--- /dev/null
+++ b/devel/py-marisa-trie/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708448822
+SHA256 (marisa-trie-1.1.0.tar.gz) = 5bf43ed0cf36af4578fe7b034cf95f532439766516680e4bd603723611ebd56b
+SIZE (marisa-trie-1.1.0.tar.gz) = 410640
diff --git a/devel/py-marisa-trie/pkg-descr b/devel/py-marisa-trie/pkg-descr
new file mode 100644
index 000000000000..271e60e65ad9
--- /dev/null
+++ b/devel/py-marisa-trie/pkg-descr
@@ -0,0 +1,10 @@
+MARISA Trie provides static memory-efficient Trie-like structures for Python
+based on marisa-trie C++ library.
+
+String data in a MARISA-trie may take up to 50x-100x less memory than in a
+standard Python dict; the raw lookup speed is comparable; trie also provides
+fast advanced methods like prefix search.
+
+Note: There are official SWIG-based Python bindings included in C++ library
+distribution; this package provides alternative Cython-based pip-installable
+Python bindings.