aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-04-25 04:24:58 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-04-25 15:50:47 +0000
commit6076cd94779b002773c354134be99a0f6f72d1fd (patch)
treed07066c1ce433fd6a6ceec741bac41504422ebf5
parent9e7280aa15f07bdfa8d0472fcad789a1810f3d8a (diff)
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-jarowinkler/Makefile23
-rw-r--r--textproc/py-jarowinkler/distinfo3
-rw-r--r--textproc/py-jarowinkler/pkg-descr5
4 files changed, 32 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index eb147aced0ba..b805f1d7f122 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1335,6 +1335,7 @@
SUBDIR += py-iso-639
SUBDIR += py-iso3166
SUBDIR += py-j2cli
+ SUBDIR += py-jarowinkler
SUBDIR += py-jc
SUBDIR += py-jinja2-cli
SUBDIR += py-jq
diff --git a/textproc/py-jarowinkler/Makefile b/textproc/py-jarowinkler/Makefile
new file mode 100644
index 000000000000..cd9ca645fde5
--- /dev/null
+++ b/textproc/py-jarowinkler/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= jarowinkler
+PORTVERSION= 1.0.2
+CATEGORIES= textproc python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Library for fast approximate string matching
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= cmake:devel/cmake \
+ ${PYTHON_PKGNAMEPREFIX}rapidfuzz-capi>0:devel/py-rapidfuzz-capi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scikit-build>0:devel/py-scikit-build@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= distutils cython autoplist
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/jarowinkler/_initialize.*.so
+
+.include <bsd.port.mk>
diff --git a/textproc/py-jarowinkler/distinfo b/textproc/py-jarowinkler/distinfo
new file mode 100644
index 000000000000..3fc01231fa58
--- /dev/null
+++ b/textproc/py-jarowinkler/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1650860158
+SHA256 (jarowinkler-1.0.2.tar.gz) = 788ac33e6ffdbd78fd913b481e37cfa149288575f087a1aae1a4ce219cb1c654
+SIZE (jarowinkler-1.0.2.tar.gz) = 75258
diff --git a/textproc/py-jarowinkler/pkg-descr b/textproc/py-jarowinkler/pkg-descr
new file mode 100644
index 000000000000..ad19e17bbe51
--- /dev/null
+++ b/textproc/py-jarowinkler/pkg-descr
@@ -0,0 +1,5 @@
+JaroWinkler is a library to calculate the Jaro and Jaro-Winkler
+similarity. It is easy to use, is far more performant than all
+alternatives and is designed to integrate seemingless with RapidFuzz.
+
+WWW: https://github.com/maxbachmann/JaroWinkler