git: 9b3933153997 - main - graphics/py-pymaging-png: convert to pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 Jun 2025 17:33:46 UTC
The branch main has been updated by ume:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9b3933153997636e5747038e6a3b70b447830d46
commit 9b3933153997636e5747038e6a3b70b447830d46
Author: Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2025-06-15 17:32:03 +0000
Commit: Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2025-06-15 17:33:28 +0000
graphics/py-pymaging-png: convert to pep517
---
graphics/py-pymaging-png/Makefile | 13 ++++++++++---
1 file 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>