From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 82B64159C9C for ; Tue, 13 Aug 2024 00:32:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17DEFE2A36; Tue, 13 Aug 2024 00:32:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E7B1EE2A35 for ; Tue, 13 Aug 2024 00:32:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C68D1343025 for ; Tue, 13 Aug 2024 00:32:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B0C41EE4 for ; Tue, 13 Aug 2024 00:32:13 +0000 (UTC) From: "Lucio Sauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" Message-ID: <1723329372.c2b1ca2c9a5c34b2163ec53d44f80748a181f829.watermanpaint@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/sphinxcontrib-katex/, dev-python/sphinxcontrib-katex/files/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_use_tomli.patch dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild X-VCS-Directories: dev-python/sphinxcontrib-katex/ dev-python/sphinxcontrib-katex/files/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: c2b1ca2c9a5c34b2163ec53d44f80748a181f829 X-VCS-Branch: master Date: Tue, 13 Aug 2024 00:32:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 27c377fb-c020-40f9-a0f3-c505dcc23fcf X-Archives-Hash: 4c123c77be0c1acb2e732e2b323c9539 commit: c2b1ca2c9a5c34b2163ec53d44f80748a181f829 Author: Sergey Torokhov yandex ru> AuthorDate: Sat Aug 10 22:36:12 2024 +0000 Commit: Lucio Sauer posteo 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 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 \