Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/veloc/
Date: Sun, 26 Sep 2021 18:37:16
Message-Id: 1632681428.0a09d7b96b2633fb874ee6bab8825fcf84d990b7.Alessandro-Barbieri@gentoo
1 commit: 0a09d7b96b2633fb874ee6bab8825fcf84d990b7
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Sep 26 01:39:43 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun Sep 26 18:37:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0a09d7b9
7
8 sys-cluster/veloc: add AXL constraint
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 .../{veloc-1.5.ebuild => veloc-1.5-r1.ebuild} | 29 ++++++++++++++--------
13 1 file changed, 18 insertions(+), 11 deletions(-)
14
15 diff --git a/sys-cluster/veloc/veloc-1.5.ebuild b/sys-cluster/veloc/veloc-1.5-r1.ebuild
16 similarity index 83%
17 rename from sys-cluster/veloc/veloc-1.5.ebuild
18 rename to sys-cluster/veloc/veloc-1.5-r1.ebuild
19 index 0a7867156..04a707e90 100644
20 --- a/sys-cluster/veloc/veloc-1.5.ebuild
21 +++ b/sys-cluster/veloc/veloc-1.5-r1.ebuild
22 @@ -1,7 +1,7 @@
23 # Copyright 1999-2021 Gentoo Authors
24 # Distributed under the terms of the GNU General Public License v2
25
26 -EAPI=7
27 +EAPI=8
28
29 DISTUTILS_USE_SETUPTOOLS=no
30 PYTHON_COMPAT=( python3_{8..10} )
31 @@ -30,13 +30,12 @@ RDEPEND="
32
33 app-shells/pdsh
34 dev-libs/openssl
35 - sys-cluster/AXL
36 + <sys-cluster/AXL-0.4.0
37 sys-cluster/er
38 virtual/mpi
39 "
40 # comm-queue-thallium? ( thallium )
41 DEPEND="${RDEPEND}"
42 -BDEPEND=">=dev-util/cmake-2.8"
43
44 PATCHES=( "${FILESDIR}/${PN}-strip-cflags.patch" )
45 # Tests not working with python yet
46 @@ -46,6 +45,11 @@ REQUIRED_USE="
47 "
48
49 distutils_enable_sphinx "${S}/docs" --no-autodoc
50 +distutils_enable_tests pytest
51 +
52 +src_prepare() {
53 + cmake_src_prepare
54 +}
55
56 src_configure() {
57 local resman="NONE"
58 @@ -66,11 +70,11 @@ src_configure() {
59 }
60
61 src_compile() {
62 - default
63 + cmake_src_compile
64 if use python; then
65 - cd "src/bindings/python"
66 + pushd "src/bindings/python" || die
67 distutils-r1_src_compile
68 - cd "${S}"
69 + popd || die
70 else
71 # If USE="-python doc" we still
72 # want to compile the doc files
73 @@ -81,8 +85,9 @@ src_compile() {
74 src_install() {
75 cmake_src_install
76 if use python; then
77 - cd "${S}/src/bindings/python"
78 + pushd "${S}/src/bindings/python" || die
79 distutils-r1_src_install
80 + popd || die
81 fi
82 }
83
84 @@ -90,10 +95,12 @@ src_test() {
85 cd test
86 default
87 if use python; then
88 - cd "${S}/src/bindings/python"
89 - python_test() {
90 - "${EPYTHON}" test.py -v || die
91 - }
92 + pushd "${S}/src/bindings/python" || die
93 +# python_test() {
94 +# "${EPYTHON}" test.py -v || die
95 +# }
96 distutils-r1_src_test
97 + popd || die
98 fi
99 }
100 +