diff --git a/dev-python/pyatspi/pyatspi-2.36.0.ebuild b/dev-python/pyatspi/pyatspi-2.36.0.ebuild index 3c1b5335abf1c..3e2dd64de8ae7 100644 --- a/dev-python/pyatspi/pyatspi-2.36.0.ebuild +++ b/dev-python/pyatspi/pyatspi-2.36.0.ebuild @@ -2,9 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python{3_6,3_7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) -inherit gnome2 python-r1 +inherit gnome2 python-r1 virtualx DESCRIPTION="Python client bindings for D-Bus AT-SPI" HOMEPAGE="https://wiki.gnome.org/Accessibility" @@ -14,7 +14,7 @@ LICENSE="LGPL-2 GPL-2+" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="" # test +IUSE="test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" COMMON_DEPEND="${PYTHON_DEPS} @@ -29,6 +29,7 @@ RDEPEND="${COMMON_DEPEND} " DEPEND="${COMMON_DEPEND} virtual/pkgconfig + test? ( sys-apps/dbus ) " src_prepare() { @@ -37,13 +38,17 @@ src_prepare() { } src_configure() { - python_foreach_impl run_in_build_dir gnome2_src_configure --disable-tests + python_foreach_impl run_in_build_dir gnome2_src_configure $(use_enable test tests) } src_compile() { python_foreach_impl run_in_build_dir gnome2_src_compile } +src_test() { + python_foreach_impl run_in_build_dir virtx dbus-run-session emake check +} + src_install() { installing() { gnome2_src_install