From 5a910ffd7240e84f53b09a438e73faba3567c424 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 13 May 2024 22:02:29 +0800 Subject: [PATCH] math/py-fastcluster: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change --- math/py-fastcluster/Makefile | 8 +++++--- math/py-fastcluster/files/patch-pyproject.toml | 8 ++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 math/py-fastcluster/files/patch-pyproject.toml diff --git a/math/py-fastcluster/Makefile b/math/py-fastcluster/Makefile index 859e76602684..e19eaa145ae9 100644 --- a/math/py-fastcluster/Makefile +++ b/math/py-fastcluster/Makefile @@ -1,6 +1,6 @@ PORTNAME= fastcluster PORTVERSION= 1.2.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,11 +13,13 @@ WWW= http://danifold.net/fastcluster.html \ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING.txt -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.9,1:math/py-numpy@${PY_FLAVOR} USES= compiler python -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 .include diff --git a/math/py-fastcluster/files/patch-pyproject.toml b/math/py-fastcluster/files/patch-pyproject.toml new file mode 100644 index 000000000000..a733d01745f2 --- /dev/null +++ b/math/py-fastcluster/files/patch-pyproject.toml @@ -0,0 +1,8 @@ +--- pyproject.toml.orig 2022-02-27 10:25:41 UTC ++++ pyproject.toml +@@ -10,4 +10,4 @@ requires = ["setuptools", + # Scipy's "oldest_supported_numpy" package does this work for us. + requires = ["setuptools", + "wheel", +- "oldest_supported_numpy"] ++ "numpy"]