Skip to content

Commit

Permalink
graphics/py-pytesseract: Bump PORTREVISION, add test
Browse files Browse the repository at this point in the history
Bump PORTREVISION to pull in py-pillow requisite, missed in 2b87ac2.

Add TEST_DEPENDS and do-test for "make test" support (requires py-tox).
  • Loading branch information
mandree committed Jun 5, 2021
1 parent 0ebc2a7 commit c82d16a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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}
Expand All @@ -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>

0 comments on commit c82d16a

Please sign in to comment.