From 5bae3827ea6a4b570da75070450d7f0fefb56e15 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Sun, 8 Feb 2026 13:58:15 +0100 Subject: [PATCH] sys-apps/xdg-desktop-portal: always use python-any-r1 used by src/generate-method-info.py Signed-off-by: Nicolas PARLANT Part-of: https://github.com/gentoo/gentoo/pull/45707 Closes: https://github.com/gentoo/gentoo/pull/45707 Signed-off-by: Andreas Sturmlechner --- .../xdg-desktop-portal-1.20.4-r1.ebuild | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild index 6e0b782393cef..fff84e38b987e 100644 --- a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild +++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild @@ -42,12 +42,12 @@ RDEPEND=" sys-apps/dbus " BDEPEND=" + ${PYTHON_DEPS} >=dev-util/gdbus-codegen-2.80.5-r1 dev-python/docutils sys-devel/gettext virtual/pkgconfig test? ( - ${PYTHON_DEPS} dev-util/umockdev media-libs/gstreamer media-libs/gst-plugins-good @@ -66,14 +66,12 @@ PATCHES=( "${FILESDIR}/${PN}-1.20.0-sandbox-disable-failing-tests.patch" ) -pkg_setup() { - use test && python-any-r1_pkg_setup -} - python_check_deps() { - python_has_version ">=dev-python/pytest-3[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && - python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" + if use test; then + python_has_version ">=dev-python/pytest-3[${PYTHON_USEDEP}]" && + python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && + python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" + fi } src_configure() {