commit:     e4b49e7bd68f7f675df6b1e4d3b951e9a055b958
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Thu Mar  5 12:17:58 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Mar  5 12:17:58 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e4b49e7b

sys-cluster/veloc: Fix USE="doc"

Package-Manager: Portage-2.3.92, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 sys-cluster/veloc/veloc-1.2.ebuild | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/sys-cluster/veloc/veloc-1.2.ebuild 
b/sys-cluster/veloc/veloc-1.2.ebuild
index 8bfdb76..429f7e9 100644
--- a/sys-cluster/veloc/veloc-1.2.ebuild
+++ b/sys-cluster/veloc/veloc-1.2.ebuild
@@ -4,7 +4,8 @@
 EAPI="7"
 
 DISTUTILS_USE_SETUPTOOLS=no
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7,8} )
+
 inherit cmake-utils distutils-r1
 
 DESCRIPTION="Very-Low Overhead Checkpointing System"
@@ -14,8 +15,10 @@ 
SRC_URI="https://github.com/ECP-VeloC/${PN^^}/archive/${P}.tar.gz";
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="alps doc lsf python +slurm test"
-RESTRICT="!test? ( test )"
+
+IUSE="alps lsf python +slurm"
+# Tests not working with python yet
+RESTRICT="python? ( test )"
 
 REQUIRED_USE="
                ?? ( alps lsf slurm )
@@ -33,10 +36,12 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="
        >=dev-util/cmake-2.8
-       doc? ( dev-python/sphinx )
 "
+
 S="${WORKDIR}/${PN^^}-${P}"
 
+distutils_enable_sphinx "${S}/docs" --no-autodoc
+
 src_prepare() {
        #strip CFLAGS
        sed -i 's/-O2 -g//g' CMakeLists.txt || die
@@ -65,15 +70,13 @@ src_configure() {
 src_compile() {
        default
        if use python; then
-               cd "${S}/src/bindings/python"
+               cd "src/bindings/python"
                distutils-r1_src_compile
-       fi
-       if use doc; then
-               cd "${S}/docs"
-               emake man
-               emake info
-               emake html
-               emake latexpdf
+               cd "${S}"
+       else
+               # If USE="-python doc" we still
+               # want to compile the doc files
+               sphinx_compile_all
        fi
 }
 
@@ -83,9 +86,6 @@ src_install() {
                cd "${S}/src/bindings/python"
                distutils-r1_src_install
        fi
-
-       #ToDO: install docs
-#      dodoc -r docs/.
 }
 
 src_test() {

Reply via email to