git: aa3fda0aeef3 - main - databases/tkrzw-python: Switch distutils to PEP517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Jun 2026 22:08:27 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=aa3fda0aeef3c85d5d60d2cedf225cde7bdd166b
commit aa3fda0aeef3c85d5d60d2cedf225cde7bdd166b
Author: Paavo-Einari Kaipila <pkaipila@gmail.com>
AuthorDate: 2026-06-14 22:06:05 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-06-14 22:08:23 +0000
databases/tkrzw-python: Switch distutils to PEP517
PR: 295998
Sponsored by: UNIS Labs
---
databases/tkrzw-python/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/databases/tkrzw-python/Makefile b/databases/tkrzw-python/Makefile
index 62b5c1303cbe..30eb513f7cd8 100644
--- a/databases/tkrzw-python/Makefile
+++ b/databases/tkrzw-python/Makefile
@@ -1,5 +1,6 @@
PORTNAME= tkrzw
DISTVERSION= 0.1.32
+PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= https://dbmx.net/${PORTNAME}/pkg-python/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,13 +13,18 @@ WWW= https://dbmx.net/tkrzw/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= libtkrzw.so:databases/tkrzw
USES= localbase python
-USE_PYTHON= autoplist distutils flavors
+USE_PYTHON= autoplist flavors pep517
LDFLAGS+= -Wl,--as-needed
+post-patch:
+ @${REINPLACE_CMD} -e 's|0.1.30|${DISTVERSION}|' ${WRKSRC}/setup.py
+
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +