mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
media-gfx/cura: fix failing tests
Add a dependency on pytest and remove a test that either does not like the sandbox or does not like its home directory being moved. Closes: https://bugs.gentoo.org/693172 Signed-off-by: Matthew Smith <matthew@gentoo.org>
This commit is contained in:
@@ -18,10 +18,17 @@ SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="debug +usb zeroconf"
|
||||
IUSE="debug test +usb zeroconf"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="sys-devel/gettext"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="${PYTHON_DEPS}
|
||||
sys-devel/gettext
|
||||
$(python_gen_cond_dep '
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
|
||||
')
|
||||
"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
~dev-libs/libarcus-${PV}:=[python,${PYTHON_SINGLE_USEDEP}]
|
||||
~dev-libs/libcharon-${PV}[${PYTHON_SINGLE_USEDEP}]
|
||||
@@ -57,6 +64,9 @@ S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
src_prepare() {
|
||||
sed -i -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" CMakeLists.txt || die
|
||||
|
||||
# Remove failing test. Bug #693172.
|
||||
rm -r plugins/VersionUpgrade/VersionUpgrade44to45/tests || die
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user