summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Haustein <mario.haustein@hrz.tu-chemnitz.de>2022-10-19 18:34:07 +0200
committerSam James <sam@gentoo.org>2022-10-30 09:33:26 +0000
commit118ed5a34d15597a315a811c975f46a29b1a1efa (patch)
treee7431a2732f06e8f04d47d036685491dc2ebc4aa /dev-util/gef
parentdev-util/gef: drop 2022.01 (diff)
downloadgentoo-118ed5a34d15597a315a811c975f46a29b1a1efa.tar.gz
gentoo-118ed5a34d15597a315a811c975f46a29b1a1efa.tar.bz2
gentoo-118ed5a34d15597a315a811c975f46a29b1a1efa.zip
dev-util/gef: use docs.eclass
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> Closes: https://github.com/gentoo/gentoo/pull/27850 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/gef')
-rw-r--r--dev-util/gef/gef-2022.06-r1.ebuild (renamed from dev-util/gef/gef-2022.06.ebuild)27
-rw-r--r--dev-util/gef/gef-9999.ebuild27
2 files changed, 24 insertions, 30 deletions
diff --git a/dev-util/gef/gef-2022.06.ebuild b/dev-util/gef/gef-2022.06-r1.ebuild
index f6f2afc9a0ad..9e741b58d560 100644
--- a/dev-util/gef/gef-2022.06.ebuild
+++ b/dev-util/gef/gef-2022.06-r1.ebuild
@@ -5,7 +5,12 @@ EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
-inherit python-single-r1 wrapper
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/mkdocs-material
+"
+
+inherit python-single-r1 docs wrapper
DESCRIPTION="A GDB Enhanced Features for exploit devs & reversers"
HOMEPAGE="https://github.com/hugsy/gef"
@@ -20,7 +25,7 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="doc test"
+IUSE="test"
# Seem to hang right now?
RESTRICT="!test? ( test ) test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@@ -37,10 +42,6 @@ RDEPEND="
')"
BDEPEND="
- doc? (
- dev-python/mkdocs
- dev-python/mkdocs-material
- )
test? (
$(python_gen_cond_dep '
dev-python/pytest[${PYTHON_USEDEP}]
@@ -48,6 +49,8 @@ BDEPEND="
')
)"
+DOCS=( README.md )
+
src_prepare() {
default
@@ -57,6 +60,8 @@ src_prepare() {
src_compile() {
# Tries to compile tests
:
+
+ docs_compile
}
src_install() {
@@ -68,15 +73,7 @@ src_install() {
make_wrapper "gdb-gef" \
"gdb -x \"/usr/share/${PN}/gef.py\"" || die
- if use doc; then
- # TODO: docs.eclass?
- mkdocs build -d html || die
-
- rm "${WORKDIR}/${P}/html/sitemap.xml.gz" || die
- dodoc -r html/
- fi
-
- dodoc README.md
+ einstalldocs
}
pkg_postinst() {
diff --git a/dev-util/gef/gef-9999.ebuild b/dev-util/gef/gef-9999.ebuild
index f6f2afc9a0ad..9e741b58d560 100644
--- a/dev-util/gef/gef-9999.ebuild
+++ b/dev-util/gef/gef-9999.ebuild
@@ -5,7 +5,12 @@ EAPI=8
PYTHON_COMPAT=( python3_{9..10} )
-inherit python-single-r1 wrapper
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+ dev-python/mkdocs-material
+"
+
+inherit python-single-r1 docs wrapper
DESCRIPTION="A GDB Enhanced Features for exploit devs & reversers"
HOMEPAGE="https://github.com/hugsy/gef"
@@ -20,7 +25,7 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="doc test"
+IUSE="test"
# Seem to hang right now?
RESTRICT="!test? ( test ) test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
@@ -37,10 +42,6 @@ RDEPEND="
')"
BDEPEND="
- doc? (
- dev-python/mkdocs
- dev-python/mkdocs-material
- )
test? (
$(python_gen_cond_dep '
dev-python/pytest[${PYTHON_USEDEP}]
@@ -48,6 +49,8 @@ BDEPEND="
')
)"
+DOCS=( README.md )
+
src_prepare() {
default
@@ -57,6 +60,8 @@ src_prepare() {
src_compile() {
# Tries to compile tests
:
+
+ docs_compile
}
src_install() {
@@ -68,15 +73,7 @@ src_install() {
make_wrapper "gdb-gef" \
"gdb -x \"/usr/share/${PN}/gef.py\"" || die
- if use doc; then
- # TODO: docs.eclass?
- mkdocs build -d html || die
-
- rm "${WORKDIR}/${P}/html/sitemap.xml.gz" || die
- dodoc -r html/
- fi
-
- dodoc README.md
+ einstalldocs
}
pkg_postinst() {