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