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.
This commit is contained in:
Po-Chuan Hsieh 2024-02-21 22:12:49 +08:00
parent 8eb920e429
commit 4e7341ccc5
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
4 changed files with 37 additions and 0 deletions

View file

@ -5005,6 +5005,7 @@
SUBDIR += py-mailcap-fix SUBDIR += py-mailcap-fix
SUBDIR += py-makefun SUBDIR += py-makefun
SUBDIR += py-manuel SUBDIR += py-manuel
SUBDIR += py-marisa-trie
SUBDIR += py-marrow.mailer SUBDIR += py-marrow.mailer
SUBDIR += py-marrow.util SUBDIR += py-marrow.util
SUBDIR += py-marshmallow SUBDIR += py-marshmallow

View file

@ -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>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1708448822
SHA256 (marisa-trie-1.1.0.tar.gz) = 5bf43ed0cf36af4578fe7b034cf95f532439766516680e4bd603723611ebd56b
SIZE (marisa-trie-1.1.0.tar.gz) = 410640

View file

@ -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.