Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/veloc/
Date: Thu, 05 Mar 2020 12:18:17
Message-Id: 1583410678.e4b49e7bd68f7f675df6b1e4d3b951e9a055b958.andrewammerlaan@gentoo
1 commit: e4b49e7bd68f7f675df6b1e4d3b951e9a055b958
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Thu Mar 5 12:17:58 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Thu Mar 5 12:17:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e4b49e7b
7
8 sys-cluster/veloc: Fix USE="doc"
9
10 Package-Manager: Portage-2.3.92, Repoman-2.3.20
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
12
13 sys-cluster/veloc/veloc-1.2.ebuild | 30 +++++++++++++++---------------
14 1 file changed, 15 insertions(+), 15 deletions(-)
15
16 diff --git a/sys-cluster/veloc/veloc-1.2.ebuild b/sys-cluster/veloc/veloc-1.2.ebuild
17 index 8bfdb76..429f7e9 100644
18 --- a/sys-cluster/veloc/veloc-1.2.ebuild
19 +++ b/sys-cluster/veloc/veloc-1.2.ebuild
20 @@ -4,7 +4,8 @@
21 EAPI="7"
22
23 DISTUTILS_USE_SETUPTOOLS=no
24 -PYTHON_COMPAT=( python3_{6,7} )
25 +PYTHON_COMPAT=( python3_{6,7,8} )
26 +
27 inherit cmake-utils distutils-r1
28
29 DESCRIPTION="Very-Low Overhead Checkpointing System"
30 @@ -14,8 +15,10 @@ SRC_URI="https://github.com/ECP-VeloC/${PN^^}/archive/${P}.tar.gz"
31 LICENSE="MIT"
32 SLOT="0"
33 KEYWORDS="~amd64"
34 -IUSE="alps doc lsf python +slurm test"
35 -RESTRICT="!test? ( test )"
36 +
37 +IUSE="alps lsf python +slurm"
38 +# Tests not working with python yet
39 +RESTRICT="python? ( test )"
40
41 REQUIRED_USE="
42 ?? ( alps lsf slurm )
43 @@ -33,10 +36,12 @@ RDEPEND="
44 DEPEND="${RDEPEND}"
45 BDEPEND="
46 >=dev-util/cmake-2.8
47 - doc? ( dev-python/sphinx )
48 "
49 +
50 S="${WORKDIR}/${PN^^}-${P}"
51
52 +distutils_enable_sphinx "${S}/docs" --no-autodoc
53 +
54 src_prepare() {
55 #strip CFLAGS
56 sed -i 's/-O2 -g//g' CMakeLists.txt || die
57 @@ -65,15 +70,13 @@ src_configure() {
58 src_compile() {
59 default
60 if use python; then
61 - cd "${S}/src/bindings/python"
62 + cd "src/bindings/python"
63 distutils-r1_src_compile
64 - fi
65 - if use doc; then
66 - cd "${S}/docs"
67 - emake man
68 - emake info
69 - emake html
70 - emake latexpdf
71 + cd "${S}"
72 + else
73 + # If USE="-python doc" we still
74 + # want to compile the doc files
75 + sphinx_compile_all
76 fi
77 }
78
79 @@ -83,9 +86,6 @@ src_install() {
80 cd "${S}/src/bindings/python"
81 distutils-r1_src_install
82 fi
83 -
84 - #ToDO: install docs
85 -# dodoc -r docs/.
86 }
87
88 src_test() {