From bbdd080f08de7148da7041bf6e72235dda2a8d47 Mon Sep 17 00:00:00 2001 From: "K.I.A.Derouiche" Date: Fri, 4 Dec 2020 21:45:24 +0100 Subject: [PATCH] import py-trie-0.2 to wip --- py-trie3/DESCR | 5 +++++ py-trie3/Makefile | 19 +++++++++++++++++++ py-trie3/PLIST | 5 +++++ py-trie3/distinfo | 6 ++++++ 4 files changed, 35 insertions(+) create mode 100644 py-trie3/DESCR create mode 100644 py-trie3/Makefile create mode 100644 py-trie3/PLIST create mode 100644 py-trie3/distinfo diff --git a/py-trie3/DESCR b/py-trie3/DESCR new file mode 100644 index 0000000000..bbcc00c049 --- /dev/null +++ b/py-trie3/DESCR @@ -0,0 +1,5 @@ +Python3 port of PyTrie. A *trie* is an ordered tree data structure that +is used to store a mapping where the keys are sequences, usually +strings over an alphabet. In addition to implementing the mapping +interface, tries allow finding the items for a given prefix, and vice +versa, finding the items whose keys are prefixes of a given key diff --git a/py-trie3/Makefile b/py-trie3/Makefile new file mode 100644 index 0000000000..0c175c68a1 --- /dev/null +++ b/py-trie3/Makefile @@ -0,0 +1,19 @@ +# $NetBSD$ + +DISTNAME= PyTrie3-0.2 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/Py//tl} +CATEGORIES= devel python +MASTER_SITES= ${MASTER_SITE_PYPI:=P/PyTrie3/} + +MAINTAINER= kamelderouiche@yahoo.com +HOMEPAGE= https://github.com/datapublica/pytrie3 +COMMENT= Python implementation of the trie data structure +LICENSE= modified-bsd + +USE_LANGUAGES= # none + +do-test: + ${RUN} cd ${WRKSRC}/test; ${SETENV} ${TEST_ENV} ${PYTHONBIN} test_trie.py + +.include "../../lang/python/distutils.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/py-trie3/PLIST b/py-trie3/PLIST new file mode 100644 index 0000000000..39053dc70d --- /dev/null +++ b/py-trie3/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD$ +${PYSITELIB}/${EGG_FILE} +${PYSITELIB}/pytrie.py +${PYSITELIB}/pytrie.pyc +${PYSITELIB}/pytrie.pyo diff --git a/py-trie3/distinfo b/py-trie3/distinfo new file mode 100644 index 0000000000..3d61f18570 --- /dev/null +++ b/py-trie3/distinfo @@ -0,0 +1,6 @@ +$NetBSD$ + +SHA1 (PyTrie3-0.2.tar.gz) = a681a63fc9d75cff026caafd255b27d1bfb9c912 +RMD160 (PyTrie3-0.2.tar.gz) = 634bc00c7a2df5c5f149c0e27ba33a6a1e48d3a9 +SHA512 (PyTrie3-0.2.tar.gz) = 834898f3bab1cc7560dc1d176b471b0ea49ecd73e908fb85c74af8505627752452f645fa3f3df9f768e5f379e3c77b47da9170aa8abb49ca6362462060cf7897 +Size (PyTrie3-0.2.tar.gz) = 97730 bytes