1 |
commit: a282b3d47a732dbaf680c3f2d71255f9abbffa26 |
2 |
Author: Matthew Smith <matthew <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 28 18:51:15 2022 +0000 |
4 |
Commit: Matthew Smith <matthew <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 28 19:42:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a282b3d4 |
7 |
|
8 |
media-gfx/cura: fix failing tests |
9 |
|
10 |
Add a dependency on pytest and remove a test that either does not like |
11 |
the sandbox or does not like its home directory being moved. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/693172 |
14 |
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org> |
15 |
|
16 |
media-gfx/cura/cura-4.12.1.ebuild | 14 ++++++++++++-- |
17 |
1 file changed, 12 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/media-gfx/cura/cura-4.12.1.ebuild b/media-gfx/cura/cura-4.12.1.ebuild |
20 |
index f38aa921e53b..448cf753c799 100644 |
21 |
--- a/media-gfx/cura/cura-4.12.1.ebuild |
22 |
+++ b/media-gfx/cura/cura-4.12.1.ebuild |
23 |
@@ -18,10 +18,17 @@ SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar. |
24 |
LICENSE="LGPL-3" |
25 |
SLOT="0" |
26 |
KEYWORDS="~amd64 ~arm64 ~x86" |
27 |
-IUSE="debug +usb zeroconf" |
28 |
+IUSE="debug test +usb zeroconf" |
29 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
30 |
|
31 |
-BDEPEND="sys-devel/gettext" |
32 |
+RESTRICT="!test? ( test )" |
33 |
+ |
34 |
+BDEPEND="${PYTHON_DEPS} |
35 |
+ sys-devel/gettext |
36 |
+ $(python_gen_cond_dep ' |
37 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
38 |
+ ') |
39 |
+" |
40 |
RDEPEND="${PYTHON_DEPS} |
41 |
~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}] |
42 |
~dev-libs/libcharon-${PV}[${PYTHON_SINGLE_USEDEP}] |
43 |
@@ -57,6 +64,9 @@ S="${WORKDIR}/${MY_PN}-${PV}" |
44 |
src_prepare() { |
45 |
sed -i -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" CMakeLists.txt || die |
46 |
|
47 |
+ # Remove failing test. Bug #693172. |
48 |
+ rm -r plugins/VersionUpgrade/VersionUpgrade44to45/tests || die |
49 |
+ |
50 |
cmake_src_prepare |
51 |
} |