git: c82d16a23610 - main - graphics/py-pytesseract: Bump PORTREVISION, add test
Matthias Andree
mandree at FreeBSD.org
Sat Jun 5 10:27:16 UTC 2021
The branch main has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c82d16a23610a57a13e2cb982fffb26a6e3a44a2
commit c82d16a23610a57a13e2cb982fffb26a6e3a44a2
Author: Matthias Andree <mandree at FreeBSD.org>
AuthorDate: 2021-06-05 10:13:10 +0000
Commit: Matthias Andree <mandree at FreeBSD.org>
CommitDate: 2021-06-05 10:27:00 +0000
graphics/py-pytesseract: Bump PORTREVISION, add test
Bump PORTREVISION to pull in py-pillow requisite, missed in 2b87ac22.
Add TEST_DEPENDS and do-test for "make test" support (requires py-tox).
---
graphics/py-pytesseract/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/graphics/py-pytesseract/Makefile b/graphics/py-pytesseract/Makefile
index df1dc4445bd9..b94c50f882b8 100644
--- a/graphics/py-pytesseract/Makefile
+++ b/graphics/py-pytesseract/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pytesseract
PORTVERSION= 0.3.7
+PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -10,13 +11,17 @@ COMMENT= wrapper for Google's Tesseract OCR engine
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= tesseract:graphics/tesseract \
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
+TEST_DEPENDS= tesseract:graphics/tesseract \
+ ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR}
USES= localbase python:3.4+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} tox
+
.include <bsd.port.mk>
More information about the dev-commits-ports-all
mailing list