diff --git a/math/py-rectangle-packer/Makefile b/math/py-rectangle-packer/Makefile index 7961e650865e..0f87a9084ab4 100644 --- a/math/py-rectangle-packer/Makefile +++ b/math/py-rectangle-packer/Makefile @@ -1,28 +1,31 @@ PORTNAME= rectangle-packer -DISTVERSION= 2.0.2 -PORTREVISION= 1 +DISTVERSION= 2.1.0 CATEGORIES= math python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Rectangle packing library WWW= https://github.com/Penlect/rectangle-packer LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + USES= python -USE_PYTHON= autoplist cython0 distutils unittest +USE_PYTHON= pep517 autoplist cython unittest USE_GITHUB= yes GH_ACCOUNT= Penlect TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} TEST_WRKSRC= ${WRKSRC}/test post-install: @${STRIP_CMD} \ - ${STAGEDIR}${PYTHON_SITELIBDIR}/rpack/_core${PYTHON_TAG}.so \ - ${STAGEDIR}${PYTHON_SITELIBDIR}/rpack/_rpack${PYTHON_TAG}.so + ${STAGEDIR}${PYTHON_SITELIBDIR}/rpack/_core${PYTHON_TAG}.so + +# tests as of 2.1.0: Ran 85 tests in 2.154s, OK (skipped=1) .include diff --git a/math/py-rectangle-packer/distinfo b/math/py-rectangle-packer/distinfo index 4c8143b36c56..becf3f595520 100644 --- a/math/py-rectangle-packer/distinfo +++ b/math/py-rectangle-packer/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1697012375 -SHA256 (Penlect-rectangle-packer-2.0.2_GH0.tar.gz) = bb3ff302baa1f60bfe16b3bd5d3967c7437e695eeae7c4550688ce57345d8d29 -SIZE (Penlect-rectangle-packer-2.0.2_GH0.tar.gz) = 98022 +TIMESTAMP = 1782232213 +SHA256 (Penlect-rectangle-packer-2.1.0_GH0.tar.gz) = 549e8b8d99b874a06f9cf878384722bd238ea736eb2f3883a14618907aad4933 +SIZE (Penlect-rectangle-packer-2.1.0_GH0.tar.gz) = 7534015 diff --git a/math/py-rectangle-packer/files/patch-pyproject.toml b/math/py-rectangle-packer/files/patch-pyproject.toml new file mode 100644 index 000000000000..b21b3150fba3 --- /dev/null +++ b/math/py-rectangle-packer/files/patch-pyproject.toml @@ -0,0 +1,10 @@ +--- pyproject.toml.orig 2026-06-23 16:33:51 UTC ++++ pyproject.toml +@@ -1,6 +1,6 @@ requires = [ + [build-system] + requires = [ +- "setuptools>=69", ++ "setuptools", + "wheel", + "Cython>=3.0", + ] diff --git a/math/py-rectangle-packer/files/patch-setup.py b/math/py-rectangle-packer/files/patch-setup.py new file mode 100644 index 000000000000..e8e63b408e5a --- /dev/null +++ b/math/py-rectangle-packer/files/patch-setup.py @@ -0,0 +1,14 @@ +-- Exclude the "benchmark" package from installation. It is a benchmarking +-- utility included in the source distribution but not intended to be installed +-- as a top-level package, where it would conflict with other packages. +--- setup.py.orig 2026-06-23 16:35:00 UTC ++++ setup.py +@@ -37,7 +37,7 @@ setup( + keywords="pack rectangle packing rectangles enclosing 2D", + url="https://github.com/Penlect/rectangle-packer", + ext_modules=ext_modules, +- packages=find_packages(exclude=("test",)), ++ packages=find_packages(exclude=("test", "benchmark")), + include_package_data=True, + python_requires=">=3.9", + classifiers=[