From b7b951e0bd88452d30fc83a719d6019d9edc3175 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sun, 11 Jul 2021 15:27:16 +0300 Subject: mail-client/geary: fix tests and test dep handling Tests were still failing for me, because root user has a XDG_DATA_DIRS set now when flatpak is installed, and it can't access those folders under sandbox to write dconf settings in. Fix it properly by calling gnome2_environment_reset, which sets it to use the memory backend instead. Also downgrade gnutls[tools] to a test-only dep, which it is (certtool called by a unit test only). Bug: https://bugs.gentoo.org/739524 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Mart Raudsepp --- mail-client/geary/geary-40.0.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mail-client/geary') diff --git a/mail-client/geary/geary-40.0.ebuild b/mail-client/geary/geary-40.0.ebuild index a753ad080781..dee08bf606e8 100644 --- a/mail-client/geary/geary-40.0.ebuild +++ b/mail-client/geary/geary-40.0.ebuild @@ -11,7 +11,8 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Geary" LICENSE="LGPL-2.1+ CC-BY-3.0 CC-BY-SA-3.0" # code is LGPL-2.1+, CC licenses for some icons SLOT="0" -IUSE="ytnef" +IUSE="test ytnef" +RESTRICT="!test? ( test )" KEYWORDS="~amd64 ~arm64 ~x86" # >=gspell-1.7 dep to ensure all libraries used use enchant:2 @@ -50,7 +51,7 @@ BDEPEND=" dev-util/itstool >=sys-devel/gettext-0.19.8 virtual/pkgconfig - net-libs/gnutls[tools] + test? ( net-libs/gnutls[tools] ) $(vala_depend) x11-libs/gtk+:3[introspection] @@ -67,7 +68,8 @@ BDEPEND=" src_prepare() { vala_src_prepare - xdg_src_prepare + gnome2_environment_reset + default } src_configure() { @@ -84,8 +86,6 @@ src_configure() { } src_test() { - unset GSETTINGS_BACKEND - virtx meson_src_test } -- cgit v1.2.3-65-gdbad