git: 6076cd94779b - main - New port: textproc/py-jarowinkler: Library for fast approximate string matching

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 25 Apr 2022 15:53:55 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6076cd94779b002773c354134be99a0f6f72d1fd

commit 6076cd94779b002773c354134be99a0f6f72d1fd
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-04-25 04:24:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-04-25 15:50:47 +0000

    New port: textproc/py-jarowinkler: Library for fast approximate string matching
---
 textproc/Makefile                 |  1 +
 textproc/py-jarowinkler/Makefile  | 23 +++++++++++++++++++++++
 textproc/py-jarowinkler/distinfo  |  3 +++
 textproc/py-jarowinkler/pkg-descr |  5 +++++
 4 files changed, 32 insertions(+)

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