git: 9c70de09efb2 - main - textproc/py-sphinx_press_theme: Add patch to fix consumers with sphinx 9.0.4

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Fri, 26 Jun 2026 17:26:06 UTC
The branch main has been updated by makc:

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

commit 9c70de09efb20c9c184557790e1fabd0b33623ff
Author:     Hiroo Ono <hiroo.ono+freebsd@gmail.com>
AuthorDate: 2026-06-26 17:23:12 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-06-26 17:23:12 +0000

    textproc/py-sphinx_press_theme: Add patch to fix consumers with sphinx 9.0.4
    
    PR:             284845
---
 textproc/py-sphinx_press_theme/Makefile                       |  2 +-
 .../files/patch-sphinx__press__theme_layout.html              | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/textproc/py-sphinx_press_theme/Makefile b/textproc/py-sphinx_press_theme/Makefile
index e5e42728350f..33e2e07af6c2 100644
--- a/textproc/py-sphinx_press_theme/Makefile
+++ b/textproc/py-sphinx_press_theme/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	sphinx_press_theme
 PORTVERSION=	0.9.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
diff --git a/textproc/py-sphinx_press_theme/files/patch-sphinx__press__theme_layout.html b/textproc/py-sphinx_press_theme/files/patch-sphinx__press__theme_layout.html
new file mode 100644
index 000000000000..b7d421cfa279
--- /dev/null
+++ b/textproc/py-sphinx_press_theme/files/patch-sphinx__press__theme_layout.html
@@ -0,0 +1,11 @@
+--- sphinx_press_theme/layout.html.orig	2026-05-03 20:14:27 UTC
++++ sphinx_press_theme/layout.html
+@@ -12,6 +12,8 @@
+       {%- for css in css_files %}
+         {%- if css|attr("rel") %}
+           <link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} />
++        {%- elif css|attr("filename") %}
++          {{ css_tag(css) }}
+         {%- else %}
+           <link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" />
+       {%- endif %}