git: 4b7e39d244ec - main - textproc/py-pallets-sphinx-themes: Update to 2.2.0

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Fri, 18 Oct 2024 09:28:37 UTC
The branch main has been updated by nivit:

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

commit 4b7e39d244ec4d52a28c62d76002e351ff1cdbfc
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-10-18 09:27:00 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-10-18 09:27:00 +0000

    textproc/py-pallets-sphinx-themes: Update to 2.2.0
    
    - Convert to PEP517
    
    Release changes:        https://github.com/pallets/pallets-sphinx-themes/releases/tag/2.2.0
    Reported by:    "github-actions[bot]" <notifications@github.com>
---
 textproc/py-pallets-sphinx-themes/Makefile | 23 +++++++++++++++++++----
 textproc/py-pallets-sphinx-themes/distinfo |  6 +++---
 2 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/textproc/py-pallets-sphinx-themes/Makefile b/textproc/py-pallets-sphinx-themes/Makefile
index 668fc1f3e98d..22024d5300ac 100644
--- a/textproc/py-pallets-sphinx-themes/Makefile
+++ b/textproc/py-pallets-sphinx-themes/Makefile
@@ -1,23 +1,38 @@
 PORTNAME=	Pallets-Sphinx-Themes
-PORTVERSION=	2.1.1
-PORTREVISION=	0
+DISTVERSION=	2.2.0
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g:tl}-${DISTVERSIONFULL}
 
 MAINTAINER=	nivit@FreeBSD.org
 COMMENT=	Sphinx themes for Pallets and related projects
 WWW=		https://pypi.org/project/Pallets-Sphinx-Themes/
 
 LICENSE=	BSD3CLAUSE
-LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.9.0:devel/py-flit-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=23.1:devel/py-packaging@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sphinx>=5.3.0:textproc/py-sphinx@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
+PEP517_INSTALL_CMD=	${PYTHON_CMD} -m installer --destdir ${STAGEDIR} \
+			--prefix ${PREFIX} \
+			${BUILD_WRKSRC}/dist/${PORTNAME:C|[-_]+|_|g:tl}-${DISTVERSION}*.whl
 
 NO_ARCH=	yes
 
+do-install:
+	@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+	@cd ${INSTALL_WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${PEP517_INSTALL_CMD}
+	@${PYTHON_CMD} -B ${PORTSDIR}/Mk/Scripts/strip_RECORD.py \
+		${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME:C|[-_]+|_|g:tl}-${DISTVERSION}*.dist-info/RECORD >> ${_PYTHONPKGLIST}
+	@${REINPLACE_CMD} \
+		-e '/\.pyc$$/d' \
+		-e 's|^|${PYTHONPREFIX_SITELIBDIR}/|' \
+		-e 's|^${PYTHONPREFIX_SITELIBDIR}/../../../lib/|lib/|' \
+			${_PYTHONPKGLIST}
+	@cd ${STAGEDIR}${PREFIX} && ${FIND} lib -name '*.pyc' >> ${_PYTHONPKGLIST}
 .include <bsd.port.mk>
diff --git a/textproc/py-pallets-sphinx-themes/distinfo b/textproc/py-pallets-sphinx-themes/distinfo
index 870eb34d675a..d950878003be 100644
--- a/textproc/py-pallets-sphinx-themes/distinfo
+++ b/textproc/py-pallets-sphinx-themes/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1686239948
-SHA256 (Pallets-Sphinx-Themes-2.1.1.tar.gz) = e5da65967bb6fae3055682a97d37c3311fe38e132c0761052c16aaacafc8d47f
-SIZE (Pallets-Sphinx-Themes-2.1.1.tar.gz) = 21776
+TIMESTAMP = 1729240250
+SHA256 (pallets_sphinx_themes-2.2.0.tar.gz) = e2c65822ad9f043b13b503f2f00a9a5181bc7a8d288fe23c1393ab62aa9af7b8
+SIZE (pallets_sphinx_themes-2.2.0.tar.gz) = 20659