Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/gef/
Date: Sun, 30 Oct 2022 09:35:05
Message-Id: 1667122406.118ed5a34d15597a315a811c975f46a29b1a1efa.sam@gentoo
1 commit: 118ed5a34d15597a315a811c975f46a29b1a1efa
2 Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
3 AuthorDate: Wed Oct 19 16:34:07 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 09:33:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=118ed5a3
7
8 dev-util/gef: use docs.eclass
9
10 Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
11 Closes: https://github.com/gentoo/gentoo/pull/27850
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../{gef-2022.06.ebuild => gef-2022.06-r1.ebuild} | 27 ++++++++++------------
15 dev-util/gef/gef-9999.ebuild | 27 ++++++++++------------
16 2 files changed, 24 insertions(+), 30 deletions(-)
17
18 diff --git a/dev-util/gef/gef-2022.06.ebuild b/dev-util/gef/gef-2022.06-r1.ebuild
19 similarity index 84%
20 rename from dev-util/gef/gef-2022.06.ebuild
21 rename to dev-util/gef/gef-2022.06-r1.ebuild
22 index f6f2afc9a0ad..9e741b58d560 100644
23 --- a/dev-util/gef/gef-2022.06.ebuild
24 +++ b/dev-util/gef/gef-2022.06-r1.ebuild
25 @@ -5,7 +5,12 @@ EAPI=8
26
27 PYTHON_COMPAT=( python3_{9..10} )
28
29 -inherit python-single-r1 wrapper
30 +DOCS_BUILDER="mkdocs"
31 +DOCS_DEPEND="
32 + dev-python/mkdocs-material
33 +"
34 +
35 +inherit python-single-r1 docs wrapper
36
37 DESCRIPTION="A GDB Enhanced Features for exploit devs & reversers"
38 HOMEPAGE="https://github.com/hugsy/gef"
39 @@ -20,7 +25,7 @@ fi
40
41 LICENSE="MIT"
42 SLOT="0"
43 -IUSE="doc test"
44 +IUSE="test"
45 # Seem to hang right now?
46 RESTRICT="!test? ( test ) test"
47 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 @@ -37,10 +42,6 @@ RDEPEND="
49 ')"
50
51 BDEPEND="
52 - doc? (
53 - dev-python/mkdocs
54 - dev-python/mkdocs-material
55 - )
56 test? (
57 $(python_gen_cond_dep '
58 dev-python/pytest[${PYTHON_USEDEP}]
59 @@ -48,6 +49,8 @@ BDEPEND="
60 ')
61 )"
62
63 +DOCS=( README.md )
64 +
65 src_prepare() {
66 default
67
68 @@ -57,6 +60,8 @@ src_prepare() {
69 src_compile() {
70 # Tries to compile tests
71 :
72 +
73 + docs_compile
74 }
75
76 src_install() {
77 @@ -68,15 +73,7 @@ src_install() {
78 make_wrapper "gdb-gef" \
79 "gdb -x \"/usr/share/${PN}/gef.py\"" || die
80
81 - if use doc; then
82 - # TODO: docs.eclass?
83 - mkdocs build -d html || die
84 -
85 - rm "${WORKDIR}/${P}/html/sitemap.xml.gz" || die
86 - dodoc -r html/
87 - fi
88 -
89 - dodoc README.md
90 + einstalldocs
91 }
92
93 pkg_postinst() {
94
95 diff --git a/dev-util/gef/gef-9999.ebuild b/dev-util/gef/gef-9999.ebuild
96 index f6f2afc9a0ad..9e741b58d560 100644
97 --- a/dev-util/gef/gef-9999.ebuild
98 +++ b/dev-util/gef/gef-9999.ebuild
99 @@ -5,7 +5,12 @@ EAPI=8
100
101 PYTHON_COMPAT=( python3_{9..10} )
102
103 -inherit python-single-r1 wrapper
104 +DOCS_BUILDER="mkdocs"
105 +DOCS_DEPEND="
106 + dev-python/mkdocs-material
107 +"
108 +
109 +inherit python-single-r1 docs wrapper
110
111 DESCRIPTION="A GDB Enhanced Features for exploit devs & reversers"
112 HOMEPAGE="https://github.com/hugsy/gef"
113 @@ -20,7 +25,7 @@ fi
114
115 LICENSE="MIT"
116 SLOT="0"
117 -IUSE="doc test"
118 +IUSE="test"
119 # Seem to hang right now?
120 RESTRICT="!test? ( test ) test"
121 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
122 @@ -37,10 +42,6 @@ RDEPEND="
123 ')"
124
125 BDEPEND="
126 - doc? (
127 - dev-python/mkdocs
128 - dev-python/mkdocs-material
129 - )
130 test? (
131 $(python_gen_cond_dep '
132 dev-python/pytest[${PYTHON_USEDEP}]
133 @@ -48,6 +49,8 @@ BDEPEND="
134 ')
135 )"
136
137 +DOCS=( README.md )
138 +
139 src_prepare() {
140 default
141
142 @@ -57,6 +60,8 @@ src_prepare() {
143 src_compile() {
144 # Tries to compile tests
145 :
146 +
147 + docs_compile
148 }
149
150 src_install() {
151 @@ -68,15 +73,7 @@ src_install() {
152 make_wrapper "gdb-gef" \
153 "gdb -x \"/usr/share/${PN}/gef.py\"" || die
154
155 - if use doc; then
156 - # TODO: docs.eclass?
157 - mkdocs build -d html || die
158 -
159 - rm "${WORKDIR}/${P}/html/sitemap.xml.gz" || die
160 - dodoc -r html/
161 - fi
162 -
163 - dodoc README.md
164 + einstalldocs
165 }
166
167 pkg_postinst() {