blob: 1222d00a1fbdbe8538861190d96dd344633c8b9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
PORTNAME= rapidfuzz
DISTVERSION= 3.0.0
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@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 \
ninja:devel/ninja \
jarowinkler-cpp>0:textproc/jarowinkler-cpp \
rapidfuzz-cpp>0:devel/rapidfuzz-cpp \
taskflow>0:devel/taskflow \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}rapidfuzz-capi==1.0.5: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}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jarowinkler>=1.0.3:textproc/py-jarowinkler@${PY_FLAVOR}
USES= compiler:c++14-lang python:3.6+
USE_PYTHON= distutils autoplist pytest
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@cd ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} && \
${STRIP_CMD} \
${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/*.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/distance/*.so
${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>
|