1 |
commit: d288205bf81177e99b2e867052db04c774f800dd |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu May 13 15:56:53 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu May 13 15:57:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d288205b |
7 |
|
8 |
dev-cpp/vexcl: improve docs WIP |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch | 11 +++++++++++ |
13 |
dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild | 11 +++++++---- |
14 |
2 files changed, 18 insertions(+), 4 deletions(-) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 000000000..405376cf9 |
19 |
--- /dev/null |
20 |
+++ b/dev-cpp/vexcl/files/add-sphinx-ext-autodoc-to-conf-py.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- a/docs/conf.py |
23 |
++++ b/docs/conf.py |
24 |
+@@ -45,7 +45,7 @@ |
25 |
+ # Add any Sphinx extension module names here, as strings. They can be |
26 |
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
27 |
+ # ones. |
28 |
+-extensions = ['breathe', 'sphinx.ext.mathjax', |
29 |
++extensions = ['breathe', 'sphinx.ext.mathjax', 'sphinx.ext.autodoc', |
30 |
+ 'matplotlib.sphinxext.plot_directive'] |
31 |
+ |
32 |
+ breathe_projects = {'VEXCL' : 'xml'} |
33 |
|
34 |
diff --git a/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild |
35 |
index a2599bbb7..b3c196c69 100644 |
36 |
--- a/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild |
37 |
+++ b/dev-cpp/vexcl/vexcl-1.4.2-r1.ebuild |
38 |
@@ -3,9 +3,11 @@ |
39 |
|
40 |
EAPI=7 |
41 |
|
42 |
-#DOCS_AUTODOC=0 |
43 |
DOCS_BUILDER="sphinx" |
44 |
-DOCS_DEPEND="dev-python/sphinx-bootstrap-theme" |
45 |
+DOCS_DEPEND=" |
46 |
+ dev-python/breathe |
47 |
+ dev-python/sphinx-bootstrap-theme |
48 |
+" |
49 |
DOCS_DIR="docs" |
50 |
PYTHON_COMPAT=( python3_{7..9} ) |
51 |
|
52 |
@@ -29,9 +31,10 @@ RDEPEND=" |
53 |
" |
54 |
DEPEND="${RDEPEND}" |
55 |
|
56 |
+PATCHES=( "${FILESDIR}/add-sphinx-ext-autodoc-to-conf-py.patch" ) |
57 |
+ |
58 |
src_prepare() { |
59 |
- default |
60 |
- sed -e "s|git_version()|${PV}|g" -i docs/conf.py || die |
61 |
+ sed -e "s|git_version()|\'${PV}\'|g" -i docs/conf.py || die |
62 |
cmake_src_prepare |
63 |
} |