1 |
commit: 6affc71a3c6eede0e0a004f1dcf938fb34fe6c5e |
2 |
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Sun May 30 15:04:37 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 30 15:04:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6affc71a |
7 |
|
8 |
dev-libs/cglm: use docs.eclass in most recent versions. |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> |
12 |
|
13 |
dev-libs/cglm/cglm-0.8.3.ebuild | 27 +++++++++------------------ |
14 |
dev-libs/cglm/cglm-9999.ebuild | 27 +++++++++------------------ |
15 |
2 files changed, 18 insertions(+), 36 deletions(-) |
16 |
|
17 |
diff --git a/dev-libs/cglm/cglm-0.8.3.ebuild b/dev-libs/cglm/cglm-0.8.3.ebuild |
18 |
index 4009cf449..6fbdc797c 100644 |
19 |
--- a/dev-libs/cglm/cglm-0.8.3.ebuild |
20 |
+++ b/dev-libs/cglm/cglm-0.8.3.ebuild |
21 |
@@ -3,7 +3,14 @@ |
22 |
|
23 |
EAPI=7 |
24 |
|
25 |
-inherit meson |
26 |
+DOCS_BUILDER="sphinx" |
27 |
+DOCS_AUTODOC=0 |
28 |
+DOCS_DIR="${S}/docs/source" |
29 |
+ |
30 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
31 |
+ |
32 |
+inherit python-any-r1 |
33 |
+inherit docs meson |
34 |
|
35 |
if [[ ${PV} == *9999* ]]; then |
36 |
inherit git-r3 |
37 |
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm" |
38 |
LICENSE="MIT" |
39 |
SLOT="0" |
40 |
|
41 |
-IUSE="doc" |
42 |
- |
43 |
-BDEPEND="dev-util/meson |
44 |
- doc? ( dev-python/sphinx )" |
45 |
- |
46 |
src_configure() { |
47 |
local emesonargs=( |
48 |
"-Dwerror=false" |
49 |
@@ -33,16 +35,5 @@ src_configure() { |
50 |
src_compile() { |
51 |
default |
52 |
meson_src_compile |
53 |
- if use doc; then |
54 |
- einfo "Building documentation ..." |
55 |
- local doc_dir="${S}/docs" |
56 |
- cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!" |
57 |
- sphinx-build -b html source build || die "Building documentation failed!" |
58 |
- fi |
59 |
-} |
60 |
- |
61 |
-src_install() { |
62 |
- use doc && local HTML_DOCS=( "${S}/docs/build/." ) |
63 |
- default |
64 |
- meson_src_install |
65 |
+ docs_compile |
66 |
} |
67 |
|
68 |
diff --git a/dev-libs/cglm/cglm-9999.ebuild b/dev-libs/cglm/cglm-9999.ebuild |
69 |
index 4009cf449..6fbdc797c 100644 |
70 |
--- a/dev-libs/cglm/cglm-9999.ebuild |
71 |
+++ b/dev-libs/cglm/cglm-9999.ebuild |
72 |
@@ -3,7 +3,14 @@ |
73 |
|
74 |
EAPI=7 |
75 |
|
76 |
-inherit meson |
77 |
+DOCS_BUILDER="sphinx" |
78 |
+DOCS_AUTODOC=0 |
79 |
+DOCS_DIR="${S}/docs/source" |
80 |
+ |
81 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
82 |
+ |
83 |
+inherit python-any-r1 |
84 |
+inherit docs meson |
85 |
|
86 |
if [[ ${PV} == *9999* ]]; then |
87 |
inherit git-r3 |
88 |
@@ -18,11 +25,6 @@ HOMEPAGE="https://github.com/recp/cglm" |
89 |
LICENSE="MIT" |
90 |
SLOT="0" |
91 |
|
92 |
-IUSE="doc" |
93 |
- |
94 |
-BDEPEND="dev-util/meson |
95 |
- doc? ( dev-python/sphinx )" |
96 |
- |
97 |
src_configure() { |
98 |
local emesonargs=( |
99 |
"-Dwerror=false" |
100 |
@@ -33,16 +35,5 @@ src_configure() { |
101 |
src_compile() { |
102 |
default |
103 |
meson_src_compile |
104 |
- if use doc; then |
105 |
- einfo "Building documentation ..." |
106 |
- local doc_dir="${S}/docs" |
107 |
- cd "${doc_dir}" || die "Cannot chdir into \"${doc_dir}\"!" |
108 |
- sphinx-build -b html source build || die "Building documentation failed!" |
109 |
- fi |
110 |
-} |
111 |
- |
112 |
-src_install() { |
113 |
- use doc && local HTML_DOCS=( "${S}/docs/build/." ) |
114 |
- default |
115 |
- meson_src_install |
116 |
+ docs_compile |
117 |
} |