Skip to content

Commit

Permalink
devel/py-rapidfuzz2: Add py-rapidfuzz2 2.15.1 (copied from py-rapidfuzz)
Browse files Browse the repository at this point in the history
- Sort BUILD_DEPENDS
- Remove PYNUMPY
- Add PORTSCOUT
  • Loading branch information
sunpoet committed Apr 18, 2023
1 parent 18a8f1b commit 9316129
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -5375,6 +5375,7 @@
SUBDIR += py-ramlfications
SUBDIR += py-rapidfuzz
SUBDIR += py-rapidfuzz-capi
SUBDIR += py-rapidfuzz2
SUBDIR += py-ratelimiter
SUBDIR += py-rauth
SUBDIR += py-raven
Expand Down
36 changes: 36 additions & 0 deletions devel/py-rapidfuzz2/Makefile
@@ -0,0 +1,36 @@
PORTNAME= rapidfuzz
DISTVERSION= 2.15.1
CATEGORIES= devel
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 2

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Rapid fuzzy string matching in Python
WWW= https://github.com/maxbachmann/RapidFuzz

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= cmake:devel/cmake-core \
jarowinkler-cpp>=0:textproc/jarowinkler-cpp \
ninja:devel/ninja \
${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rapidfuzz-capi>=1.0.5<1.0.5_99:devel/py-rapidfuzz-capi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scikit-build>=0.13.0:devel/py-scikit-build@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} \
rapidfuzz-cpp>=0:devel/rapidfuzz-cpp \
taskflow>=0:devel/taskflow
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jarowinkler>=1.0.3:textproc/py-jarowinkler@${PY_FLAVOR}

USES= compiler:c++14-lang python:3.6+
USE_PYTHON= autoplist concurrent distutils

PORTSCOUT= limit:^2\.

post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
# ${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
# ${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-rapidfuzz2/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1681186230
SHA256 (rapidfuzz-2.15.1.tar.gz) = d62137c2ca37aea90a11003ad7dc109c8f1739bfbe5a9a217f3cdb07d7ac00f6
SIZE (rapidfuzz-2.15.1.tar.gz) = 1209658
1 change: 1 addition & 0 deletions devel/py-rapidfuzz2/pkg-descr
@@ -0,0 +1 @@
Rapid fuzzy string matching in Python using various string metrics.

0 comments on commit 9316129

Please sign in to comment.