commit:     f7603f093ba039f10009ec1142a7a31fee523a36
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 12 05:47:06 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 12 05:47:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7603f09

x11-misc/picom: sync live ebuild, fix tests

Closes: https://bugs.gentoo.org/795489
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-misc/picom/picom-9999.ebuild | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/x11-misc/picom/picom-9999.ebuild b/x11-misc/picom/picom-9999.ebuild
index c4a78a4bda5..a088bc75f1b 100644
--- a/x11-misc/picom/picom-9999.ebuild
+++ b/x11-misc/picom/picom-9999.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-inherit git-r3 meson xdg
+PYTHON_COMPAT=( python3_{7,8,9} )
+inherit git-r3 python-any-r1 meson virtualx xdg
 
 DESCRIPTION="A lightweight compositor for X11 (previously a compton fork)"
 HOMEPAGE="https://github.com/yshui/picom";
@@ -11,8 +12,8 @@ EGIT_REPO_URI="https://github.com/yshui/picom.git";
 
 LICENSE="MPL-2.0 MIT"
 SLOT="0"
-KEYWORDS=""
-IUSE="+config-file dbus +doc +drm opengl pcre"
+IUSE="+config-file dbus +doc +drm opengl pcre test"
+RESTRICT="!test? ( test )"
 
 RDEPEND="dev-libs/libev
        dev-libs/uthash
@@ -33,7 +34,9 @@ RDEPEND="dev-libs/libev
 DEPEND="${RDEPEND}
        x11-base/xorg-proto"
 BDEPEND="virtual/pkgconfig
-       doc? ( app-text/asciidoc )"
+       doc? ( app-text/asciidoc )
+       test? ( $(python_gen_any_dep 'dev-python/xcffib[${PYTHON_USEDEP}]') )
+"
 
 DOCS=( README.md picom.sample.conf )
 
@@ -56,3 +59,7 @@ src_configure() {
 
        meson_src_configure
 }
+
+src_test() {
+       virtx "${S}/tests/run_tests.sh" "${BUILD_DIR}/src/${PN}"
+}

Reply via email to