--- a/alot-0.9.1.ebuild 2020-08-29 18:27:10.675967053 -0400 +++ b/alot-0.9.1.ebuild 2020-08-29 18:28:14.852963165 -0400 @@ -28,7 +28,7 @@ net-mail/notmuch[crypt,python,${PYTHON_USEDEP}] " BDEPEND=" - dev-python/sphinx[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) " PATCHES=( @@ -40,13 +40,16 @@ BDEPEND+=" test? ( dev-python/mock[${PYTHON_USEDEP}] ) " python_compile_all() { - emake -C docs man - use doc && emake -C docs html + if use doc; then + emake -C docs man html + fi } python_install_all() { - use doc && local HTML_DOCS=( docs/build/html/. ) + if use doc; then + local HTML_DOCS=( docs/build/html/. ) doman docs/build/man/* + fi distutils-r1_python_install_all insinto /usr/share/alot @@ -61,4 +64,4 @@ elog " https://alot.readthedocs.io/en/latest/" elog "" fi -} +} \ No newline at end of file