aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-12-09 14:32:45 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-12-12 16:22:53 +0500
commitb1a2cd7094d51b66191a84fe23be6d8fde91db1c (patch)
treeeffaa1e33fd6e1a542184bf1865a6e1dfe646788 /sci-biology
parentmedia-video/trakt-scrobbler: enable py3.11 (diff)
downloadguru-b1a2cd7094d51b66191a84fe23be6d8fde91db1c.tar.gz
guru-b1a2cd7094d51b66191a84fe23be6d8fde91db1c.tar.bz2
guru-b1a2cd7094d51b66191a84fe23be6d8fde91db1c.zip
sci-biology/cmdock: fix docs build
Closes: https://bugs.gentoo.org/884905 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/cmdock/cmdock-0.1.4-r2.ebuild27
1 files changed, 14 insertions, 13 deletions
diff --git a/sci-biology/cmdock/cmdock-0.1.4-r2.ebuild b/sci-biology/cmdock/cmdock-0.1.4-r2.ebuild
index 46968da14..05961204a 100644
--- a/sci-biology/cmdock/cmdock-0.1.4-r2.ebuild
+++ b/sci-biology/cmdock/cmdock-0.1.4-r2.ebuild
@@ -4,13 +4,8 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
-
BOINC_APP_OPTIONAL="true"
-
DOCS_BUILDER="sphinx"
-DOCS_AUTODOC=0
-DOCS_DIR="docs"
-
inherit python-single-r1 boinc-app docs flag-o-matic meson optfeature
DESCRIPTION="Program for docking ligands to proteins and nucleic acids"
@@ -37,7 +32,10 @@ DEPEND="
dev-libs/cxxopts
"
BDEPEND="
- doc? ( app-doc/doxygen )
+ apidoc? (
+ app-doc/doxygen
+ dev-texlive/texlive-fontutils
+ )
"
PATCHES=( "${FILESDIR}"/cmdock-0.1.4-fix-detection.patch )
@@ -72,14 +70,17 @@ src_configure() {
src_compile() {
meson_src_compile
- # subshell prevents overriding global
- # DOCS_BUILDER and DOCS_OUTDIR
- (
+ if use doc; then
+ DOCS_AUTODOC=0
+ DOCS_DIR="docs"
+ sphinx_compile
+ fi
+
+ if use apidoc; then
DOCS_BUILDER="doxygen"
- DOCS_OUTDIR="${S}/_build/html/api"
- docs_compile
- )
- docs_compile
+ DOCS_DIR="docs"
+ doxygen_compile
+ fi
}
src_install() {