commit: c5ca13d818262729e691e4d23487cb427b50665d Author: Michal Privoznik <michal.privoznik <AT> gmail <DOT> com> AuthorDate: Wed Nov 13 15:13:05 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Nov 13 19:08:43 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ca13d8
app-emulation/virt-manager: Update live ebuild Virt-manager just switched to meson [1]. Adapt our live ebuild to it. Oh, and while at it - drop test useflag. Running tests doesn't make much sense for virt-manger since the even the current ebuild ignores pretty much all of them (as it ignores failed tests from test_cli.py where pretty much 90% of test suite lives). The referenced bug below is not closed with this just yet, as this is just live ebuild. But we can expect new release soon, in which case the bug will be fixed. 1: https://github.com/virt-manager/virt-manager/commit/cbd2a7ef925cd11e525448561174ce6cc0e14e9a Bug: https://bugs.gentoo.org/909876 Signed-off-by: Michal Privoznik <michal.privoznik <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39305 Signed-off-by: Sam James <sam <AT> gentoo.org> .../virt-manager/virt-manager-9999.ebuild | 43 +++++++--------------- 1 file changed, 14 insertions(+), 29 deletions(-) diff --git a/app-emulation/virt-manager/virt-manager-9999.ebuild b/app-emulation/virt-manager/virt-manager-9999.ebuild index 1051e0881e70..054d03a48f7f 100644 --- a/app-emulation/virt-manager/virt-manager-9999.ebuild +++ b/app-emulation/virt-manager/virt-manager-9999.ebuild @@ -4,9 +4,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_USE_SETUPTOOLS=no -inherit gnome2 distutils-r1 optfeature +inherit gnome2 python-single-r1 optfeature meson DESCRIPTION="A graphical tool for administering virtual machines" HOMEPAGE="https://virt-manager.org https://github.com/virt-manager/virt-manager" @@ -25,6 +23,8 @@ LICENSE="GPL-2" SLOT="0" IUSE="gui policykit sasl" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + RDEPEND=" ${PYTHON_DEPS} || ( dev-libs/libisoburn app-cdr/cdrtools ) @@ -53,33 +53,18 @@ BDEPEND="dev-python/docutils" DOCS=( README.md NEWS.md ) -DISTUTILS_ARGS=( - --no-update-icon-cache - --no-compile-schemas -) - -EPYTEST_IGNORE=( - # Wants to use /tmp osinfo config? - tests/test_cli.py - - # These seem to be essentially coverage tests - tests/test_checkprops.py -) - -distutils_enable_tests pytest - -python_configure() { - esetup.py configure --default-graphics=spice -} - -python_test() { - export VIRTINST_TEST_SUITE_FORCE_LIBOSINFO=0 - - epytest -} +src_configure() { + # While in the past we did allow test suite to run, any errors from + # test_cli.py were ignored. Since that's where like 90% of tests actually + # lives, just disable tests (and do not drag additional dependencies). + local emesonargs=( + -Dcompile-schemas=false + -Ddefault-graphics=spice + -Dtests=disabled + -Dupdate-icon-cache=false + ) -python_install() { - esetup.py install + meson_src_configure } pkg_preinst() {
