git: dfc5c0eeb116 - main - graphics/py-sorl-thumbnail: Update to 12.11.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Wed, 10 Sep 2025 08:08:01 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dfc5c0eeb11648f31d140b9a10b2aea66e3a1c75

commit dfc5c0eeb11648f31d140b9a10b2aea66e3a1c75
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2025-09-10 07:53:25 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2025-09-10 07:53:25 +0000

    graphics/py-sorl-thumbnail: Update to 12.11.0
    
    * Switch to the PEP517 build framework and adjust the related
      bits of the DOCS option accordingly.
    
    * Change to the more preferred DISTVERSION as well.
    
    Changelog:
    
    https://github.com/jazzband/sorl-thumbnail/releases/tag/12.11.0
    
    PR:             289339
    Approved by:    Kevin Golding (maintainer)
---
 graphics/py-sorl-thumbnail/Makefile                   | 19 +++++++++++++------
 graphics/py-sorl-thumbnail/distinfo                   |  6 +++---
 graphics/py-sorl-thumbnail/files/patch-pyproject.toml | 11 +++++++++++
 3 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/graphics/py-sorl-thumbnail/Makefile b/graphics/py-sorl-thumbnail/Makefile
index 01e893913fdf..cad52c7ea394 100644
--- a/graphics/py-sorl-thumbnail/Makefile
+++ b/graphics/py-sorl-thumbnail/Makefile
@@ -1,9 +1,9 @@
 PORTNAME=	sorl-thumbnail
-PORTVERSION=	12.10.0
-PORTREVISION=	4
+DISTVERSION=	12.11.0
 CATEGORIES=	graphics python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	sorl_thumbnail-${DISTVERSION}
 
 MAINTAINER=	ports@caomhin.org
 COMMENT=	Sorl-thumbnail provides an easy way to generate image thumbnails
@@ -12,11 +12,13 @@ WWW=		https://github.com/jazzband/sorl-thumbnail
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=8:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django42>=4.2:www/py-django42@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 PORTDOCS=	*
@@ -26,11 +28,12 @@ OPTIONS_DEFAULT=	PILLOW
 OPTIONS_SINGLE=		IMAGELIB
 OPTIONS_GROUP=		CACHING
 
+# An PGMAGICK option would still be possible as well, but the ports tree does
+# not yet have a py-pgmagick port.
 OPTIONS_SINGLE_IMAGELIB=	GRAPHICSMAGICK IMAGEMAGICK PILLOW WAND
 OPTIONS_GROUP_CACHING=		REDIS
 
 DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
-DOCS_VARS=		PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
 
 GRAPHICSMAGICK_RUN_DEPENDS=	${LOCALBASE}/bin/gm:graphics/GraphicsMagick
 IMAGEMAGICK_USES=		magick:6,run
@@ -44,6 +47,10 @@ PILLOW_DESC=		Use internal image processing
 REDIS_DESC=		Use REDIS as Key Value Store
 WAND_DESC=		Use Wand with ImageMagick
 
+post-build-DOCS-on:
+	${SETENV} PYTHONPATH=${WRKSRC} ${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} \
+		-d ${WRKDIR} -b html ${WRKSRC}/docs ${WRKSRC}/build/sphinx/html
+
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/build/sphinx/html && \
diff --git a/graphics/py-sorl-thumbnail/distinfo b/graphics/py-sorl-thumbnail/distinfo
index 503ab119ce1b..71659dc4d34c 100644
--- a/graphics/py-sorl-thumbnail/distinfo
+++ b/graphics/py-sorl-thumbnail/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1704566157
-SHA256 (sorl-thumbnail-12.10.0.tar.gz) = de95a49217fdfeced222fa3ceaa01d312ee2f8aad56ba34d6c70f2dee9a84938
-SIZE (sorl-thumbnail-12.10.0.tar.gz) = 665255
+TIMESTAMP = 1755414298
+SHA256 (sorl_thumbnail-12.11.0.tar.gz) = 191b89c27ecb40b5c2a35549d557d17c4841c6aff439b2e17b938b91eea463b3
+SIZE (sorl_thumbnail-12.11.0.tar.gz) = 667102
diff --git a/graphics/py-sorl-thumbnail/files/patch-pyproject.toml b/graphics/py-sorl-thumbnail/files/patch-pyproject.toml
new file mode 100644
index 000000000000..f38468089e04
--- /dev/null
+++ b/graphics/py-sorl-thumbnail/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+Relax version requirements.
+
+--- pyproject.toml.orig	2025-08-20 12:07:03 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=64", "setuptools_scm>=8"]
++requires = ["setuptools", "setuptools_scm>=8"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]