aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-03-05 13:17:58 +0100
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-03-05 13:17:58 +0100
commite4b49e7bd68f7f675df6b1e4d3b951e9a055b958 (patch)
tree53b2f36860424fb8de4b633802e196f37c223b18 /sys-cluster
parentsys-cluster/genders: Add py3_8 (diff)
downloadguru-e4b49e7bd68f7f675df6b1e4d3b951e9a055b958.tar.gz
guru-e4b49e7bd68f7f675df6b1e4d3b951e9a055b958.tar.bz2
guru-e4b49e7bd68f7f675df6b1e4d3b951e9a055b958.zip
sys-cluster/veloc: Fix USE="doc"
Package-Manager: Portage-2.3.92, Repoman-2.3.20 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/veloc/veloc-1.2.ebuild30
1 files changed, 15 insertions, 15 deletions
diff --git a/sys-cluster/veloc/veloc-1.2.ebuild b/sys-cluster/veloc/veloc-1.2.ebuild
index 8bfdb76d..429f7e9e 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() {