aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-pymaging-png/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-pymaging-png/Makefile')
-rw-r--r--graphics/py-pymaging-png/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/graphics/py-pymaging-png/Makefile b/graphics/py-pymaging-png/Makefile
index 9ff5afecaa17..7b648df3a1fa 100644
--- a/graphics/py-pymaging-png/Makefile
+++ b/graphics/py-pymaging-png/Makefile
@@ -1,6 +1,6 @@
PORTNAME= pymaging-png
-PORTREVISION= 2
-PORTVERSION= g20130727
+DISTVERSIONPREFIX= g
+DISTVERSION= 20130727
CATEGORIES= graphics python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +12,12 @@ LICENSE= BSD3CLAUSE MIT
LICENSE_COMB= multi
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}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymaging>=g20130908:graphics/py-pymaging@${PY_FLAVOR}
USES= python
-USE_PYTHON= autoplist distutils
+USE_PYTHON= autoplist pep517
USE_GITHUB= yes
GH_ACCOUNT= ojii
@@ -23,4 +25,9 @@ GH_TAGNAME= 83d85c4
NO_ARCH= yes
+post-patch:
+ ${REINPLACE_CMD} -E \
+ -e "/^[[:blank:]]+version[[:blank:]]*=/s/__version__/${DISTVERSION}/" \
+ ${WRKSRC}/setup.py
+
.include <bsd.port.mk>