summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2021-08-13 19:26:06 +0300
committerMart Raudsepp <leio@gentoo.org>2021-08-13 19:27:26 +0300
commitd7c239bcfbbf8f770fca33143b82e8542c3dd8f2 (patch)
tree9191b2541412fadf36cd64078aa8e6a22078c644 /dev-util/meld
parentdev-util/meld: Enable py3.10 (diff)
downloadgentoo-d7c239bcfbbf8f770fca33143b82e8542c3dd8f2.tar.gz
gentoo-d7c239bcfbbf8f770fca33143b82e8542c3dd8f2.tar.bz2
gentoo-d7c239bcfbbf8f770fca33143b82e8542c3dd8f2.zip
dev-util/meld: Enable tests
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'dev-util/meld')
-rw-r--r--dev-util/meld/meld-3.20.4.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-util/meld/meld-3.20.4.ebuild b/dev-util/meld/meld-3.20.4.ebuild
index ca18cbcb9d0c..5f935a31e2e4 100644
--- a/dev-util/meld/meld-3.20.4.ebuild
+++ b/dev-util/meld/meld-3.20.4.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{8..10} )
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_SETUPTOOLS=no
-inherit gnome2 distutils-r1
+inherit gnome2 distutils-r1 virtualx
DESCRIPTION="A graphical diff and merge tool"
HOMEPAGE="http://meldmerge.org/"
@@ -39,6 +39,8 @@ BDEPEND="
# but it's mainly needed for debian and derivatives - seems the fallback
# works fine, as we aren't a special_case, just an annoying warning.
+distutils_enable_tests pytest
+
python_check_deps() {
has_version -b "dev-python/distro[${PYTHON_USEDEP}]"
}
@@ -53,3 +55,8 @@ python_install() {
rm "${ED}"/usr/share/doc/meld-${PV}/{COPYING,NEWS} || die
rmdir "${ED}"/usr/share/doc/meld-${PV} || die
}
+
+python_test() {
+ # test_gutterrendererchunk.py needs a GdkScreen for Gtk.IconTheme.get_default() to work
+ virtx epytest
+}