commit: d288205bf81177e99b2e867052db04c774f800dd
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu May 13 15:56:53 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu May 13 15:57:18 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d288205b
dev-cpp/vexcl: improve docs WIP
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch | 11 +++++++++++
dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild | 11 +++++++----
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch
b/dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch
new file mode 100644
index 000000000..405376cf9
--- /dev/null
+++ b/dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch
@@ -0,0 +1,11 @@
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -45,7 +45,7 @@
+ # Add any Sphinx extension module names here, as strings. They can be
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
+ # ones.
+-extensions = ['breathe', 'sphinx.ext.mathjax',
++extensions = ['breathe', 'sphinx.ext.mathjax', 'sphinx.ext.autodoc',
+ 'matplotlib.sphinxext.plot_directive']
+
+ breathe_projects = {'VEXCL' : 'xml'}
diff --git a/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild
b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild
index a2599bbb7..b3c196c69 100644
--- a/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild
+++ b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild
@@ -3,9 +3,11 @@
EAPI=7
-#DOCS_AUTODOC=0
DOCS_BUILDER="sphinx"
-DOCS_DEPEND="dev-python/sphinx-bootstrap-theme"
+DOCS_DEPEND="
+ dev-python/breathe
+ dev-python/sphinx-bootstrap-theme
+"
DOCS_DIR="docs"
PYTHON_COMPAT=( python3_{7..9} )
@@ -29,9 +31,10 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/add-sphinx-ext-autodoc-to-conf-py.patch" )
+
src_prepare() {
- default
- sed -e "s|git_version()|${PV}|g" -i docs/conf.py || die
+ sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die
cmake_src_prepare
}