commit:     4a8563fe7139312ee1365768effa9f59fe3c355c
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Sat Jun 15 16:06:44 2024 +0000
Commit:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
CommitDate: Sat Jun 15 16:07:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4a8563fe

dev-python/sphinxcontrib-katex: 0.9.10 version bump

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

 dev-python/sphinxcontrib-katex/Manifest            |  1 +
 .../sphinxcontrib-katex-0.9.10_fix_install.patch   | 11 ++++++
 .../sphinxcontrib-katex-0.9.10.ebuild              | 39 ++++++++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/dev-python/sphinxcontrib-katex/Manifest 
b/dev-python/sphinxcontrib-katex/Manifest
index af6a3a858..a2981c1e9 100644
--- a/dev-python/sphinxcontrib-katex/Manifest
+++ b/dev-python/sphinxcontrib-katex/Manifest
@@ -1 +1,2 @@
 DIST sphinxcontrib-katex-0.9.9.tar.gz 99711 BLAKE2B 
75d8e4acd26bb8b83693ea42d8bb05997195252ae34f8484484f094b124ea629b48b2c496d3f7b5252171cda125c63aaf3161c457032f91057662a76a1a40f8d
 SHA512 
aaac916193d01b32e3e10636294abb5285b18f922c7e7c190e0e4dc66f477860058981f50f38a9441323e79be32d9b0585c0e99f90f4074b555229cceb0a8b8f
+DIST sphinxcontrib_katex-0.9.10.tar.gz 100194 BLAKE2B 
e821a4f43d57c65eeb1439fc0067cf1200bfd7135dc05b08bbe65f0c695180be94f3c496d2438735f76af3cb49653312c79856b28960a399e8ae10cc47bac4c4
 SHA512 
43c62a37383920d9e328f16e10b437ffa8ff0bb2f1b9e282d5b1e02de2f2d54a2222ab7b7f2314a80eca710472808502f0f152344ed11e3a54b42441007d875f

diff --git 
a/dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_install.patch
 
b/dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_install.patch
new file mode 100644
index 000000000..cb03252d7
--- /dev/null
+++ 
b/dev-python/sphinxcontrib-katex/files/sphinxcontrib-katex-0.9.10_fix_install.patch
@@ -0,0 +1,11 @@
+diff '--color=auto' -Naur a/pyproject.toml b/pyproject.toml
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -170,6 +170,7 @@
+ #
+ # Find all (sub-)modules of the Python package
+ [tool.setuptools.packages.find]
++exclude = ["docs", "tests"]
+ 
+ [tool.setuptools.dynamic]
+ version = {attr = 'sphinxcontrib.katex.__version__'}

diff --git a/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild 
b/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild
new file mode 100644
index 000000000..ce0d1d187
--- /dev/null
+++ b/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYPI_PN=${PN/-/_}
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="KaTeX Sphinx extension for rendering of math in HTML pages"
+HOMEPAGE="https://github.com/hagenw/sphinxcontrib-katex";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-python/sphinx-4.5.0-r1[${PYTHON_USEDEP}]"
+
+DOCS=()
+
+PATCHES="${FILESDIR}/${P}_fix_install.patch"
+
+distutils_enable_sphinx docs \
+       dev-python/insipid-sphinx-theme
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       default
+       sed -i -e 's/license_file/license_files/' setup.cfg || die
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+       find "${ED}" -name '*.pth' -delete || die
+}

Reply via email to