aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-23 14:20:40 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-23 14:31:05 +0000
commit78b15053bac85c8a14c08b1408fa049be2cbba86 (patch)
treeeaf3358a0e6e33c4ba752ea732027ef942214495
parent88316fb64f42a517b898c71a1648078a4d94fe9e (diff)
databases/py-leveldb: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change
-rw-r--r--databases/py-leveldb/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/databases/py-leveldb/Makefile b/databases/py-leveldb/Makefile
index 8fe8bd60accf..470beacfa752 100644
--- a/databases/py-leveldb/Makefile
+++ b/databases/py-leveldb/Makefile
@@ -1,5 +1,6 @@
PORTNAME= leveldb
PORTVERSION= 0.201
+PORTREVISION= 1
CATEGORIES= databases python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,10 +12,12 @@ WWW= https://github.com/rjpower/py-leveldb
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
LIB_DEPENDS= libleveldb.so:databases/leveldb
USES= compiler:c11 localbase python
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py