public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/sphinxcontrib-katex/, dev-python/sphinxcontrib-katex/files/
@ 2024-08-13  0:32 Lucio Sauer
  0 siblings, 0 replies; only message in thread
From: Lucio Sauer @ 2024-08-13  0:32 UTC (permalink / raw
  To: gentoo-commits

commit:     c2b1ca2c9a5c34b2163ec53d44f80748a181f829
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Sat Aug 10 22:36:12 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sat Aug 10 22:36:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c2b1ca2c

dev-pyton/sphinxcontrib-katex: fix build USE="doc"; switch toml->tomli

Closes: https://bugs.gentoo.org/934950

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>

 .../sphinxcontrib-katex-0.9.10_fix_use_tomli.patch | 22 ++++++++++++++++++++++
 .../sphinxcontrib-katex-0.9.10.ebuild              |  5 ++++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_use_tomli.patch b/dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_use_tomli.patch
new file mode 100644
index 000000000..7e0c49d61
--- /dev/null
+++ b/dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_use_tomli.patch
@@ -0,0 +1,22 @@
+Gentoo issue: https://bugs.gentoo.org/934950
+Switch to use tomli instead of toml
+diff '--color=auto' -Naur a/docs/conf.py b/docs/conf.py
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -3,13 +3,14 @@
+ import os
+ import subprocess
+ 
+-import toml
++import tomli
+ 
+ import sphinxcontrib.katex as katex
+ 
+ 
+ # -- GENERAL -------------------------------------------------------------
+-config = toml.load(os.path.join("..", "pyproject.toml"))
++with open("../pyproject.toml", "rb") as f:
++    config = tomli.load(f)
+ 
+ project = config["project"]["name"]
+ author = ", ".join(author["name"] for author in config["project"]["authors"])

diff --git a/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild b/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild
index da30f99c8..956fb1cb6 100644
--- a/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild
+++ b/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild
@@ -21,7 +21,10 @@ RDEPEND=">=dev-python/sphinx-4.5.0-r1[${PYTHON_USEDEP}]"
 
 DOCS=()
 
-PATCHES="${FILESDIR}/${P}_fix_install.patch"
+PATCHES="
+	${FILESDIR}/${P}_fix_install.patch
+	${FILESDIR}/${P}_fix_use_tomli.patch
+"
 
 distutils_enable_sphinx docs \
 	dev-python/insipid-sphinx-theme \


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-13  0:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-13  0:32 [gentoo-commits] repo/proj/guru:master commit in: dev-python/sphinxcontrib-katex/, dev-python/sphinxcontrib-katex/files/ Lucio Sauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox