git: 2c3d49d4f38f - main - net/py-pyroute2.minimal: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 19:29:37 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2c3d49d4f38f1c5d3972cb33ba3ae11cebb30d2c
commit 2c3d49d4f38f1c5d3972cb33ba3ae11cebb30d2c
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:46:38 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:21:12 +0000
net/py-pyroute2.minimal: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for dependency and package change
---
net/py-pyroute2.minimal/Makefile | 9 +++++----
net/py-pyroute2.minimal/files/setup.py | 3 ---
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/net/py-pyroute2.minimal/Makefile b/net/py-pyroute2.minimal/Makefile
index 362cb4e3117f..22a471ba1a1f 100644
--- a/net/py-pyroute2.minimal/Makefile
+++ b/net/py-pyroute2.minimal/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pyroute2.minimal
PORTVERSION= 0.7.3
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +14,11 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.Apache-2.0
LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSE.GPL-2.0-or-later
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
USES= python:3.6+
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
@@ -24,7 +28,4 @@ NO_ARCH= yes
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
.endif
-post-patch:
- @${CP} ${FILESDIR}/setup.py ${WRKSRC}/
-
.include <bsd.port.post.mk>
diff --git a/net/py-pyroute2.minimal/files/setup.py b/net/py-pyroute2.minimal/files/setup.py
deleted file mode 100644
index 606849326a40..000000000000
--- a/net/py-pyroute2.minimal/files/setup.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from setuptools import setup
-
-setup()