summaryrefslogtreecommitdiff
path: root/textproc/py-segments/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/py-segments/Makefile')
-rw-r--r--textproc/py-segments/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/textproc/py-segments/Makefile b/textproc/py-segments/Makefile
new file mode 100644
index 000000000000..09aa07b358e8
--- /dev/null
+++ b/textproc/py-segments/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= segments
+DISTVERSION= 2.3.0
+CATEGORIES= textproc python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Unicode Standard tokenization routines
+WWW= https://github.com/cldf/segments
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}csvw>=1.5.6:misc/py-csvw@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}regex>0:textproc/py-regex@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-mock>0:devel/py-pytest-mock@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest # testcase fail to find some fixtures
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>