diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2018-07-28 12:11:27 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2018-07-28 12:11:27 +0000 |
commit | 1deca7b701466922147946ca4613f0d04394d1a9 (patch) | |
tree | 598c7f22516a8d63a69cae53593db2ba1f2687bc /textproc/py-pyahocorasick | |
parent | 86744a6c4a6979a01499dafba510e87da3b77c1a (diff) | |
download | ports-1deca7b701466922147946ca4613f0d04394d1a9.tar.gz ports-1deca7b701466922147946ca4613f0d04394d1a9.zip |
pyahocorasick is a fast and memory efficient library for exact or approximate
multi-pattern string search meaning that you can find multiple key strings
occurrences at once in some input text. The library provides an ahocorasick
Python module that you can use as a plain dict-like Trie or convert a Trie to an
automaton for efficient Aho-Corasick search.
WWW: https://github.com/WojciechMula/pyahocorasick
PR: 229451
Submitted by: freebsd_ports@k-worx.org
Sponsored by: iXsystems Inc.
Notes
Notes:
svn path=/head/; revision=475537
Diffstat (limited to 'textproc/py-pyahocorasick')
-rw-r--r-- | textproc/py-pyahocorasick/Makefile | 29 | ||||
-rw-r--r-- | textproc/py-pyahocorasick/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-pyahocorasick/pkg-descr | 7 |
3 files changed, 39 insertions, 0 deletions
diff --git a/textproc/py-pyahocorasick/Makefile b/textproc/py-pyahocorasick/Makefile new file mode 100644 index 000000000000..57a598750252 --- /dev/null +++ b/textproc/py-pyahocorasick/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= pyahocorasick +DISTVERSION= 1.1.8 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= freebsd_ports@k-worx.org +COMMENT= Python and C implementation of the Aho-Corasick algorithm + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= distutils concurrent autoplist + +PORTDOCS= README.rst + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} unittests.py + +.include <bsd.port.mk> diff --git a/textproc/py-pyahocorasick/distinfo b/textproc/py-pyahocorasick/distinfo new file mode 100644 index 000000000000..e008ab4577ef --- /dev/null +++ b/textproc/py-pyahocorasick/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1530203234 +SHA256 (pyahocorasick-1.1.8.tar.gz) = 3d584e7836ca7b066f99d7fdb384dc6ef7af211b2b139baedbd960c7c279bb7f +SIZE (pyahocorasick-1.1.8.tar.gz) = 74050 diff --git a/textproc/py-pyahocorasick/pkg-descr b/textproc/py-pyahocorasick/pkg-descr new file mode 100644 index 000000000000..53e6fdb08a61 --- /dev/null +++ b/textproc/py-pyahocorasick/pkg-descr @@ -0,0 +1,7 @@ +pyahocorasick is a fast and memory efficient library for exact or approximate +multi-pattern string search meaning that you can find multiple key strings +occurrences at once in some input text. The library provides an ahocorasick +Python module that you can use as a plain dict-like Trie or convert a Trie to an +automaton for efficient Aho-Corasick search. + +WWW: https://github.com/WojciechMula/pyahocorasick |