git: 499f21bf5c98 - main - math/py-fraction: Convert to USE_PYTHON=pep517
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 May 2024 14:21:04 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=499f21bf5c98b697eb26322db0198867210330f0 commit 499f21bf5c98b697eb26322db0198867210330f0 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-05-13 14:02:33 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-05-13 14:02:33 +0000 math/py-fraction: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change --- math/py-fraction/Makefile | 6 +++++- math/py-fraction/files/patch-setup.py | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/math/py-fraction/Makefile b/math/py-fraction/Makefile index 53623eb711ae..bdad3c75c1e5 100644 --- a/math/py-fraction/Makefile +++ b/math/py-fraction/Makefile @@ -1,5 +1,6 @@ PORTNAME= fraction PORTVERSION= 2.2.0 +PORTREVISION= 1 CATEGORIES= math python MASTER_SITES= PYPI \ https://github.com/bradley101/fraction/releases/download/${PORTVERSION}/ @@ -13,8 +14,11 @@ WWW= https://github.com/bradley101/fraction LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +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 concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes diff --git a/math/py-fraction/files/patch-setup.py b/math/py-fraction/files/patch-setup.py new file mode 100644 index 000000000000..7f8199f859ab --- /dev/null +++ b/math/py-fraction/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2022-05-21 10:47:22 UTC ++++ setup.py +@@ -4,7 +4,7 @@ setuptools.setup( + long_description = fh.read() + + setuptools.setup( +- name="Fraction", # Replace with your own username ++ name="fraction", # Replace with your own username + version="2.2.0", + author="Shantanu Banerjee", + author_email="hi@shantanubanerjee.com",