commit:     b473deb8e449b84ea1e165966fdeb38645a90c1a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 14 02:28:03 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 14 02:28:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b473deb8

dev-python/docutils: Bump to 0.22.1_rc1

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

 dev-python/docutils/Manifest                   |  1 +
 dev-python/docutils/docutils-0.22.1_rc1.ebuild | 61 ++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-python/docutils/Manifest b/dev-python/docutils/Manifest
index 8e95d338409d..69f65b94e189 100644
--- a/dev-python/docutils/Manifest
+++ b/dev-python/docutils/Manifest
@@ -1,2 +1,3 @@
 DIST docutils-0.21.2.tar.gz 2204444 BLAKE2B 
727c2f97fc5835a0ffa62e38ea85af366cd89ad1eaec0b8af8b1f3b12e6cddfddb65161ba34f9109952d37ba2cf8985f3c3b6905ebb2ac1c9a984cce3fb4d170
 SHA512 
7fafa331f5687448e80d299c20cdccc4b49819fa471b5f586bf0ab18c694ba43a70f58e7c76b0a70a16267585548389214e11a4998ad7fdc19a27f0f7644539c
+DIST docutils-0.22.1rc1.tar.gz 2288693 BLAKE2B 
a65ec18afab62a37f254f904b6812ffdd8b67c774ebd7d39c4f661f79150ac8b1dc9077d020ced548d0dd15fdde8458771db4e1576f09b99dd7f001a1988426e
 SHA512 
6cf2d4ce54fd3db87f09ff7a278aeefa4a47c85a7f919c4d8590e42b4583aab0a81405cf047d95238b8bae2b6e0cacad3a5397009c0b3fdb10fe8984080e911f
 DIST docutils-0.22.tar.gz 2277984 BLAKE2B 
8ad9fc3d064e39bb618f5bac7ef6b69a77e7e811ff2f7c4c1b34f4f8bc1ba793f995e653d20ba536d24af5905f68b8e3f636a0f28f1c9eef46bb6f755d988bc2
 SHA512 
09082eb3bdd5f9b3e977d356740efee47725a50fbaca7bf35c7fddff06003c2b2177a38d160a9956f9e96261f881c0d870c0aa9fef84f90d0cac079ccc73669d

diff --git a/dev-python/docutils/docutils-0.22.1_rc1.ebuild 
b/dev-python/docutils/docutils-0.22.1_rc1.ebuild
new file mode 100644
index 000000000000..d5ea86951ef5
--- /dev/null
+++ b/dev-python/docutils/docutils-0.22.1_rc1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python Documentation Utilities (reference reStructuredText impl.)"
+HOMEPAGE="
+       https://docutils.sourceforge.io/
+       https://pypi.org/project/docutils/
+"
+
+# GPL-3+ only for emacs/rst.el
+LICENSE="BSD BSD-2 GPL-3+ PSF-2.4 public-domain"
+SLOT="0"
+
+RDEPEND="
+       dev-python/pillow[${PYTHON_USEDEP}]
+       dev-python/pygments[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       ${RDEPEND}
+"
+
+python_compile_all() {
+       # Generate html docs from reStructured text sources.
+
+       # Place html4css1.css in base directory to ensure that the generated 
reference to it is correct.
+       cp docutils/writers/html4css1/html4css1.css . || die
+
+       cd tools || die
+       "${EPYTHON}" buildhtml.py --input-encoding=utf-8 --no-datestamp \
+               --stylesheet-path=../html4css1.css, --traceback ../docs || die
+}
+
+src_test() {
+       cd test || die
+       distutils-r1_src_test
+}
+
+python_test() {
+       "${EPYTHON}" alltests.py -v || die "Testing failed with ${EPYTHON}"
+}
+
+python_install() {
+       distutils-r1_python_install
+
+       # Install tools.
+       python_doscript tools/buildhtml.py
+}
+
+python_install_all() {
+       local DOCS=( *.rst )
+       local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css )
+
+       distutils-r1_python_install_all
+}

Reply via email to