From 65db49f158d6f4c4e77f5d33d01baa30f876e9c5 Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sun, 16 Aug 2020 10:14:15 +0300 Subject: dev-python/pyatspi: enable py3.8, tests Package-Manager: Portage-2.3.103, Repoman-2.3.20 Signed-off-by: Mart Raudsepp --- dev-python/pyatspi/pyatspi-2.36.0.ebuild | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'dev-python/pyatspi') diff --git a/dev-python/pyatspi/pyatspi-2.36.0.ebuild b/dev-python/pyatspi/pyatspi-2.36.0.ebuild index 3c1b5335abf1..3e2dd64de8ae 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 -- cgit v1.2.3-65-gdbad