commit:     60b95c852c14c5bdf8fd326f51433f954b6f6b08
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 21 14:28:43 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb 21 17:06:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60b95c85

dev-python/sphinxcontrib-plantuml: Bump to 0.28

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/sphinxcontrib-plantuml/Manifest         |  1 +
 .../sphinxcontrib-plantuml-0.28.ebuild             | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-python/sphinxcontrib-plantuml/Manifest 
b/dev-python/sphinxcontrib-plantuml/Manifest
index b2d26c33ecfc..cf7222dee0fe 100644
--- a/dev-python/sphinxcontrib-plantuml/Manifest
+++ b/dev-python/sphinxcontrib-plantuml/Manifest
@@ -1 +1,2 @@
 DIST sphinxcontrib-plantuml-0.27.gh.tar.gz 19268 BLAKE2B 
d74d85da40a9c17eb6d73bfd2890af4f4260b11001bba4f3001d84f2f9b53597c2148c14af5a853ab3c0d3a760435a3475c6bc69748c9522f66b5f1c5e01d7b2
 SHA512 
acf648bc83647317d717c7f69026f20cc87066e26c409daaf14ec35e874f53ba324d1b2325b82987bc54f8224293113997bbfeca78b9f14c1704ff108e083faf
+DIST sphinxcontrib-plantuml-0.28.gh.tar.gz 19322 BLAKE2B 
b76166130ddcebc9312ea40d20dd0710403566a989dfdc40b906a724b32d8e3b53d50a4db1871e771eafb46f9cfea463f58348910c4bdeed0f25996269be8dea
 SHA512 
52553e8ee5a9dbb3644f28a26f6be48a910e2013673169a8a9f0776406f6453b2443967af1837056010b0621d681e7fd00ab590858b07665bb74699c81aa81e2

diff --git 
a/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.28.ebuild 
b/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.28.ebuild
new file mode 100644
index 000000000000..74c22f4418d0
--- /dev/null
+++ b/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.28.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Sphinx extensions for PlantUML"
+HOMEPAGE="
+       https://github.com/sphinx-contrib/plantuml/
+       https://pypi.org/project/sphinxcontrib-plantuml/
+"
+SRC_URI="
+       
https://github.com/sphinx-contrib/plantuml/archive/refs/tags/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+
+S="${WORKDIR}/${P#sphinxcontrib-}"
+
+BDEPEND="
+       test? (
+               app-text/texlive
+               dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}]
+               dev-tex/latexmk
+               dev-texlive/texlive-fontutils
+               dev-texlive/texlive-latexextra
+       )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+       # Fix for sphinx.errors.ExtensionError: Could not import extension 
sphinxcontrib.applehelp
+       # See 
https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions,
 thanks to mgorny.
+       rm -rf sphinxcontrib || die
+
+       epytest
+}

Reply via email to