commit:     c435e079dc5bf391ed354710f2ed00c2f2cf97d2
Author:     Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
AuthorDate: Sun Oct 30 14:07:42 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Sun Oct 30 14:07:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c435e079

dev-libs/cglm: Add doc dependency on sphinx_rtd_theme.

Closes: https://bugs.gentoo.org/878791
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>

 dev-libs/cglm/cglm-0.8.7.ebuild | 9 ++++++++-
 dev-libs/cglm/cglm-9999.ebuild  | 9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/dev-libs/cglm/cglm-0.8.7.ebuild b/dev-libs/cglm/cglm-0.8.7.ebuild
index b148db8ed..ddb415056 100644
--- a/dev-libs/cglm/cglm-0.8.7.ebuild
+++ b/dev-libs/cglm/cglm-0.8.7.ebuild
@@ -4,7 +4,8 @@
 EAPI=8
 
 DOCS_BUILDER="sphinx"
-DOCS_AUTODOC=0
+DOCS_AUTODOC=1
+DOCS_DEPEND="dev-python/sphinx_rtd_theme"
 DOCS_DIR="${S}/docs/source"
 
 PYTHON_COMPAT=( python3_{8..11} )
@@ -25,6 +26,12 @@ HOMEPAGE="https://github.com/recp/cglm";
 LICENSE="MIT"
 SLOT="0"
 
+src_prepare() {
+       default
+       # Enable autodoc since themeing plugin is used.
+       sed -i 
"s#'sphinx.ext.githubpages'#'sphinx.ext.githubpages','sphinx.ext.autodoc'#" 
docs/source/conf.py || die
+}
+
 src_configure() {
        local emesonargs=(
                "-Dwerror=false"

diff --git a/dev-libs/cglm/cglm-9999.ebuild b/dev-libs/cglm/cglm-9999.ebuild
index b148db8ed..ddb415056 100644
--- a/dev-libs/cglm/cglm-9999.ebuild
+++ b/dev-libs/cglm/cglm-9999.ebuild
@@ -4,7 +4,8 @@
 EAPI=8
 
 DOCS_BUILDER="sphinx"
-DOCS_AUTODOC=0
+DOCS_AUTODOC=1
+DOCS_DEPEND="dev-python/sphinx_rtd_theme"
 DOCS_DIR="${S}/docs/source"
 
 PYTHON_COMPAT=( python3_{8..11} )
@@ -25,6 +26,12 @@ HOMEPAGE="https://github.com/recp/cglm";
 LICENSE="MIT"
 SLOT="0"
 
+src_prepare() {
+       default
+       # Enable autodoc since themeing plugin is used.
+       sed -i 
"s#'sphinx.ext.githubpages'#'sphinx.ext.githubpages','sphinx.ext.autodoc'#" 
docs/source/conf.py || die
+}
+
 src_configure() {
        local emesonargs=(
                "-Dwerror=false"

Reply via email to