diff --git a/graphics/py-pymaging/Makefile b/graphics/py-pymaging/Makefile index a4ca97230db3..f233ff4accd6 100644 --- a/graphics/py-pymaging/Makefile +++ b/graphics/py-pymaging/Makefile @@ -1,23 +1,31 @@ PORTNAME= pymaging -PORTVERSION= g20130908 -PORTREVISION= 2 +DISTVERSIONPREFIX= g +DISTVERSION= 20130908 CATEGORIES= graphics python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ume@FreeBSD.org COMMENT= Pure Python imaging library WWW= https://pymaging.rtfd.org LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + USES= python -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist pep517 USE_GITHUB= yes GH_ACCOUNT= ojii GH_TAGNAME= 596a08f NO_ARCH= yes +post-patch: + ${REINPLACE_CMD} -E \ + -e "/^[[:blank:]]+version[[:blank:]]*=/s/__version__/${DISTVERSION}/" \ + ${WRKSRC}/setup.py + .include