git: bb96893d7afd - main - textproc/py-pallets-sphinx-themes: Fix RUN_DEPENDS

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 19 Nov 2022 08:18:39 UTC
The branch main has been updated by sunpoet:

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

commit bb96893d7afd67ce4ef7911e67a677217492db9b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-11-19 08:13:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-11-19 08:13:51 +0000

    textproc/py-pallets-sphinx-themes: Fix RUN_DEPENDS
    
    - Bump PORTREVISION for dependency change
    
    from setup.py:
        install_requires = [
            "importlib-metadata; python_version < '3.8'",
            "packaging",
            "Sphinx",
        ]
    
    Approved by:    portmgr (blanket)
    With hat:       python
    Reference:      https://github.com/pallets/pallets-sphinx-themes/blob/2.0.2/setup.py#L5-L9
---
 textproc/py-pallets-sphinx-themes/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/textproc/py-pallets-sphinx-themes/Makefile b/textproc/py-pallets-sphinx-themes/Makefile
index b828f2da6257..6f6066e43588 100644
--- a/textproc/py-pallets-sphinx-themes/Makefile
+++ b/textproc/py-pallets-sphinx-themes/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	Pallets-Sphinx-Themes
 PORTVERSION=	2.0.2
+PORTREVISION=	1
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,11 +12,18 @@ WWW=		https://pypi.org/project/Pallets-Sphinx-Themes/
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.rst
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
 
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>