aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-pymaging/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-pymaging/Makefile')
-rw-r--r--graphics/py-pymaging/Makefile14
1 files changed, 11 insertions, 3 deletions
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,6 +1,6 @@
PORTNAME= pymaging
-PORTVERSION= g20130908
-PORTREVISION= 2
+DISTVERSIONPREFIX= g
+DISTVERSION= 20130908
CATEGORIES= graphics python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,8 +11,11 @@ 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
@@ -20,4 +23,9 @@ GH_TAGNAME= 596a08f
NO_ARCH= yes
+post-patch:
+ ${REINPLACE_CMD} -E \
+ -e "/^[[:blank:]]+version[[:blank:]]*=/s/__version__/${DISTVERSION}/" \
+ ${WRKSRC}/setup.py
+
.include <bsd.port.mk>