git: bd0faf19d07f - main - textproc/py-mkdocs-material: Update to 8.5.11

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Tue, 20 Dec 2022 13:48:49 UTC
The branch main has been updated by kai:

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

commit bd0faf19d07f445d8ea43c69b45bb26eaf236ac0
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-12-20 13:46:39 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-12-20 13:46:39 +0000

    textproc/py-mkdocs-material: Update to 8.5.11
    
    Changelog since 8.4.4:
    
    https://github.com/squidfunk/mkdocs-material/compare/8.4.4...8.5.11
---
 textproc/py-mkdocs-material/Makefile             | 17 ++++++--
 textproc/py-mkdocs-material/distinfo             |  6 +--
 textproc/py-mkdocs-material/files/patch-setup.py | 52 ++++++++++++++++++++++++
 3 files changed, 68 insertions(+), 7 deletions(-)

diff --git a/textproc/py-mkdocs-material/Makefile b/textproc/py-mkdocs-material/Makefile
index a29b49a81d64..7b7123a25c81 100644
--- a/textproc/py-mkdocs-material/Makefile
+++ b/textproc/py-mkdocs-material/Makefile
@@ -1,8 +1,9 @@
 PORTNAME=	mkdocs-material
-DISTVERSION=	8.4.4
+DISTVERSION=	8.5.11
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	mkdocs_material-${DISTVERSION}
 
 MAINTAINER=	kai@FreeBSD.org
 COMMENT=	Material Design theme for MkDocs
@@ -13,14 +14,22 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0.2:devel/py-Jinja2@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}markdown>=3.2:textproc/py-markdown@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mkdocs>=1.3.0:textproc/py-mkdocs@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}mkdocs-material-extensions>=1.0.3:textproc/py-mkdocs-material-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mkdocs>=1.4.0:textproc/py-mkdocs@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mkdocs-material-extensions>=1.1:textproc/py-mkdocs-material-extensions@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pygments>=2.12:textproc/py-pygments@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pymdown-extensions>=9.4:textproc/py-pymdown-extensions@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}pymdown-extensions>=9.4:textproc/py-pymdown-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.26:www/py-requests@${PY_FLAVOR}
 
 USES=		python:3.7+
 USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 
+# Avoid that pyproject.toml is read during setup otherwise build fails
+post-extract:
+	@${MV} ${WRKSRC}/pyproject.toml ${WRKSRC}/pyproject.toml.dist
+
+post-patch:
+	@${REINPLACE_CMD} -e 's/%%DISTVERSION%%/${DISTVERSION}/' ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/textproc/py-mkdocs-material/distinfo b/textproc/py-mkdocs-material/distinfo
index de2721810c01..fcebd2c1b5e5 100644
--- a/textproc/py-mkdocs-material/distinfo
+++ b/textproc/py-mkdocs-material/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1670065234
-SHA256 (mkdocs-material-8.4.4.tar.gz) = 877cdaff642a224ea50e8f0f0a024c6e4a883c731c2efe4a6aaa4b958f3fd693
-SIZE (mkdocs-material-8.4.4.tar.gz) = 3688110
+TIMESTAMP = 1671529347
+SHA256 (mkdocs_material-8.5.11.tar.gz) = b0ea0513fd8cab323e8a825d6692ea07fa83e917bb5db042e523afecc7064ab7
+SIZE (mkdocs_material-8.5.11.tar.gz) = 3533290
diff --git a/textproc/py-mkdocs-material/files/patch-setup.py b/textproc/py-mkdocs-material/files/patch-setup.py
new file mode 100644
index 000000000000..dc4f53f88f2a
--- /dev/null
+++ b/textproc/py-mkdocs-material/files/patch-setup.py
@@ -0,0 +1,52 @@
+Generated via adding
+
+[tool.hatch.build.targets.sdist]
+support-legacy = true
+
+to setup.py and then run "hatchling build".
+
+--- setup.py.orig	2022-12-20 10:46:10 UTC
++++ setup.py
+@@ -0,0 +1,42 @@
++# -*- coding: utf-8 -*-
++from setuptools import setup
++
++setup(
++    name='mkdocs-material',
++    version='%%DISTVERSION%%',
++    description='Documentation that simply works',
++    long_description='',
++    author_email='Martin Donath <martin.donath@squidfunk.com>',
++    classifiers=[
++        'Development Status :: 5 - Production/Stable',
++        'Environment :: Web Environment',
++        'License :: OSI Approved :: MIT License',
++        'Programming Language :: JavaScript',
++        'Programming Language :: Python',
++        'Topic :: Documentation',
++        'Topic :: Software Development :: Documentation',
++        'Topic :: Text Processing :: Markup :: HTML',
++    ],
++    install_requires=[
++        'jinja2>=3.0.2',
++        'markdown>=3.2',
++        'mkdocs-material-extensions>=1.1',
++        'mkdocs>=1.4.0',
++        'pygments>=2.12',
++        'pymdown-extensions>=9.4',
++        'requests>=2.26',
++    ],
++    entry_points={
++        'mkdocs.plugins': [
++            'search = material.plugins.search.plugin:SearchPlugin',
++            'social = material.plugins.social.plugin:SocialPlugin',
++            'tags = material.plugins.tags.plugin:TagsPlugin',
++        ],
++        'mkdocs.themes': [
++            'material = material',
++        ],
++    },
++    package_data={
++        '': ['*', '.icons/*', '.icons/*/*', '.icons/*/*/*'],
++    },
++)