summaryrefslogtreecommitdiff
path: root/textproc/py-mkdocs-material
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2025-02-08 10:00:05 +0100
committerKai Knoblich <kai@FreeBSD.org>2025-02-08 10:51:46 +0100
commitc119b1f95e4f46e0a9124b7474be5bb84cdad52a (patch)
tree6c51157a5e5b91bb705f89ad7be34ab9a1b9168b /textproc/py-mkdocs-material
parentdatabases/mariadb106-server: Security update to 10.6.21 (diff)
textproc/py-mkdocs-material: Update to 9.6.2
* Add IMAGING and RECOMMENDED as new options to reflect the settings in pyproject.toml. Keep the first one as non-default for now, because it installs a lot of dependencies. The second one is enabled by default because it supplies a recommended set of useful plugins that improves the out-of-box experience. Changelog since 9.5.49: https://github.com/squidfunk/mkdocs-material/blob/9.6.2/CHANGELOG
Diffstat (limited to 'textproc/py-mkdocs-material')
-rw-r--r--textproc/py-mkdocs-material/Makefile39
-rw-r--r--textproc/py-mkdocs-material/distinfo6
-rw-r--r--textproc/py-mkdocs-material/files/patch-pyproject.toml13
3 files changed, 43 insertions, 15 deletions
diff --git a/textproc/py-mkdocs-material/Makefile b/textproc/py-mkdocs-material/Makefile
index 2c6a467883fc..95f5c3027a9b 100644
--- a/textproc/py-mkdocs-material/Makefile
+++ b/textproc/py-mkdocs-material/Makefile
@@ -1,5 +1,5 @@
PORTNAME= mkdocs-material
-DISTVERSION= 9.5.49
+DISTVERSION= 9.6.2
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,21 +16,36 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR
${PYTHON_PKGNAMEPREFIX}hatch-requirements-txt>0:devel/py-hatch-requirements-txt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatch-nodejs-version>=0.3.0:devel/py-hatch-nodejs-version@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}trove-classifiers>=2023.10.18:devel/py-trove-classifiers@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=2.10.3:devel/py-babel@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}colorama>=0.4:devel/py-colorama@${PY_FLAVOR} \
- ${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.6<2.0:textproc/py-mkdocs@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}mkdocs-material-extensions>=1.3:textproc/py-mkdocs-material-extensions@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}paginate>=0.5.6:textproc/py-paginate@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pygments>=2.16:textproc/py-pygments@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pymdown-extensions>=10.2:textproc/py-pymdown-extensions@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}regex>=2022.4.24:textproc/py-regex@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}requests>=2.26:www/py-requests@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=2.10<3:devel/py-babel@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}colorama>=0.4<1:devel/py-colorama@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0<4:devel/py-Jinja2@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}markdown>=3.2<4:textproc/py-markdown@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mkdocs>=1.6<2:textproc/py-mkdocs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mkdocs-material-extensions>=1.3<2:textproc/py-mkdocs-material-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}paginate>=0.5<1:textproc/py-paginate@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pygments>=2.16<3:textproc/py-pygments@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pymdown-extensions>=10.2<11:textproc/py-pymdown-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}regex>=2022.4:textproc/py-regex@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>=2.26<3:www/py-requests@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist pep517
NO_ARCH= yes
+# Option GIT requires py-mkdocs-git-committers-plugin-2 which is not currently
+# in the ports tree.
+OPTIONS_DEFINE= IMAGING RECOMMENDED
+OPTIONS_DEFAULT= RECOMMENDED
+
+IMAGING_DESC= Support for image processing
+RECOMMENDED_DESC= Install a recommended set of MkDocs plugins
+
+IMAGING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairosvg>=2.6<3:graphics/py-cairosvg@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pillow>=10.2:graphics/py-pillow@${PY_FLAVOR}
+
+RECOMMENDED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mkdocs-minify-plugin>=0.7<1:textproc/py-mkdocs-minify-plugin@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mkdocs-redirects>=1.2<2:textproc/py-mkdocs-redirects@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mkdocs-rss-plugin>=1.6<2:textproc/py-mkdocs-rss-plugin@${PY_FLAVOR}
+
.include <bsd.port.mk>
diff --git a/textproc/py-mkdocs-material/distinfo b/textproc/py-mkdocs-material/distinfo
index 89698fd153f3..ea1005829606 100644
--- a/textproc/py-mkdocs-material/distinfo
+++ b/textproc/py-mkdocs-material/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1734536045
-SHA256 (mkdocs_material-9.5.49.tar.gz) = 3671bb282b4f53a1c72e08adbe04d2481a98f85fed392530051f80ff94a9621d
-SIZE (mkdocs_material-9.5.49.tar.gz) = 3949559
+TIMESTAMP = 1738772213
+SHA256 (mkdocs_material-9.6.2.tar.gz) = a3de1c5d4c745f10afa78b1a02f917b9dce0808fb206adc0f5bb48b58c1ca21f
+SIZE (mkdocs_material-9.6.2.tar.gz) = 3942567
diff --git a/textproc/py-mkdocs-material/files/patch-pyproject.toml b/textproc/py-mkdocs-material/files/patch-pyproject.toml
new file mode 100644
index 000000000000..d6b0a1085aac
--- /dev/null
+++ b/textproc/py-mkdocs-material/files/patch-pyproject.toml
@@ -0,0 +1,13 @@
+Relax version requirements.
+
+--- pyproject.toml.orig 2020-02-02 00:00:00 UTC
++++ pyproject.toml
+@@ -63,7 +63,7 @@ imaging = [
+ "mkdocs-git-revision-date-localized-plugin~=1.2,>=1.2.4"
+ ]
+ imaging = [
+- "pillow~=10.2",
++ "pillow>=10.2",
+ "cairosvg~=2.6"
+ ]
+