Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/cglm/
Date: Tue, 01 Nov 2022 02:55:16
Message-Id: 1667138862.c435e079dc5bf391ed354710f2ed00c2f2cf97d2.tastytea@gentoo
1 commit: c435e079dc5bf391ed354710f2ed00c2f2cf97d2
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Sun Oct 30 14:07:42 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Sun Oct 30 14:07:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c435e079
7
8 dev-libs/cglm: Add doc dependency on sphinx_rtd_theme.
9
10 Closes: https://bugs.gentoo.org/878791
11 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
12
13 dev-libs/cglm/cglm-0.8.7.ebuild | 9 ++++++++-
14 dev-libs/cglm/cglm-9999.ebuild | 9 ++++++++-
15 2 files changed, 16 insertions(+), 2 deletions(-)
16
17 diff --git a/dev-libs/cglm/cglm-0.8.7.ebuild b/dev-libs/cglm/cglm-0.8.7.ebuild
18 index b148db8ed..ddb415056 100644
19 --- a/dev-libs/cglm/cglm-0.8.7.ebuild
20 +++ b/dev-libs/cglm/cglm-0.8.7.ebuild
21 @@ -4,7 +4,8 @@
22 EAPI=8
23
24 DOCS_BUILDER="sphinx"
25 -DOCS_AUTODOC=0
26 +DOCS_AUTODOC=1
27 +DOCS_DEPEND="dev-python/sphinx_rtd_theme"
28 DOCS_DIR="${S}/docs/source"
29
30 PYTHON_COMPAT=( python3_{8..11} )
31 @@ -25,6 +26,12 @@ HOMEPAGE="https://github.com/recp/cglm"
32 LICENSE="MIT"
33 SLOT="0"
34
35 +src_prepare() {
36 + default
37 + # Enable autodoc since themeing plugin is used.
38 + sed -i "s#'sphinx.ext.githubpages'#'sphinx.ext.githubpages','sphinx.ext.autodoc'#" docs/source/conf.py || die
39 +}
40 +
41 src_configure() {
42 local emesonargs=(
43 "-Dwerror=false"
44
45 diff --git a/dev-libs/cglm/cglm-9999.ebuild b/dev-libs/cglm/cglm-9999.ebuild
46 index b148db8ed..ddb415056 100644
47 --- a/dev-libs/cglm/cglm-9999.ebuild
48 +++ b/dev-libs/cglm/cglm-9999.ebuild
49 @@ -4,7 +4,8 @@
50 EAPI=8
51
52 DOCS_BUILDER="sphinx"
53 -DOCS_AUTODOC=0
54 +DOCS_AUTODOC=1
55 +DOCS_DEPEND="dev-python/sphinx_rtd_theme"
56 DOCS_DIR="${S}/docs/source"
57
58 PYTHON_COMPAT=( python3_{8..11} )
59 @@ -25,6 +26,12 @@ HOMEPAGE="https://github.com/recp/cglm"
60 LICENSE="MIT"
61 SLOT="0"
62
63 +src_prepare() {
64 + default
65 + # Enable autodoc since themeing plugin is used.
66 + sed -i "s#'sphinx.ext.githubpages'#'sphinx.ext.githubpages','sphinx.ext.autodoc'#" docs/source/conf.py || die
67 +}
68 +
69 src_configure() {
70 local emesonargs=(
71 "-Dwerror=false"