From c5d55fd7c31e7d51b5e4b35ad0effbe8897186e9 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Sun, 16 Apr 2017 11:03:13 +0000 Subject: Add py-editdistance 0.3.1 This library simply implements Levenshtein distance with C++ and Cython. WWW: https://pypi.python.org/pypi/editdistance WWW: https://github.com/aflc/editdistance --- devel/Makefile | 1 + devel/py-editdistance/Makefile | 21 +++++++++++++++++++++ devel/py-editdistance/distinfo | 3 +++ devel/py-editdistance/pkg-descr | 4 ++++ 4 files changed, 29 insertions(+) create mode 100644 devel/py-editdistance/Makefile create mode 100644 devel/py-editdistance/distinfo create mode 100644 devel/py-editdistance/pkg-descr (limited to 'devel') diff --git a/devel/Makefile b/devel/Makefile index 9bd44568c34c..0085ddcf5f40 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4248,6 +4248,7 @@ SUBDIR += py-doit SUBDIR += py-durus SUBDIR += py-dynrules + SUBDIR += py-editdistance SUBDIR += py-efilter SUBDIR += py-efl SUBDIR += py-eggtestinfo diff --git a/devel/py-editdistance/Makefile b/devel/py-editdistance/Makefile new file mode 100644 index 000000000000..845c516845cf --- /dev/null +++ b/devel/py-editdistance/Makefile @@ -0,0 +1,21 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= editdistance +PORTVERSION= 0.3.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Fast implementation of the edit distance (Levenshtein distance) + +LICENSE= MIT + +USE_PYTHON= autoplist distutils +USES= python + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/editdistance/bycython.so + +.include diff --git a/devel/py-editdistance/distinfo b/devel/py-editdistance/distinfo new file mode 100644 index 000000000000..a2073d42931d --- /dev/null +++ b/devel/py-editdistance/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1492224900 +SHA256 (editdistance-0.3.1.tar.gz) = 8ec8a2158b9234adb0ca7ecfb0b4caa35e45ad5d00353c80793c9f54e1a35121 +SIZE (editdistance-0.3.1.tar.gz) = 19817 diff --git a/devel/py-editdistance/pkg-descr b/devel/py-editdistance/pkg-descr new file mode 100644 index 000000000000..a7d2fd2fbd45 --- /dev/null +++ b/devel/py-editdistance/pkg-descr @@ -0,0 +1,4 @@ +This library simply implements Levenshtein distance with C++ and Cython. + +WWW: https://pypi.python.org/pypi/editdistance +WWW: https://github.com/aflc/editdistance -- cgit