1 |
commit: f7603f093ba039f10009ec1142a7a31fee523a36 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 12 05:47:06 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 12 05:47:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7603f09 |
7 |
|
8 |
x11-misc/picom: sync live ebuild, fix tests |
9 |
|
10 |
Closes: https://bugs.gentoo.org/795489 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
x11-misc/picom/picom-9999.ebuild | 15 +++++++++++---- |
14 |
1 file changed, 11 insertions(+), 4 deletions(-) |
15 |
|
16 |
diff --git a/x11-misc/picom/picom-9999.ebuild b/x11-misc/picom/picom-9999.ebuild |
17 |
index c4a78a4bda5..a088bc75f1b 100644 |
18 |
--- a/x11-misc/picom/picom-9999.ebuild |
19 |
+++ b/x11-misc/picom/picom-9999.ebuild |
20 |
@@ -3,7 +3,8 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-inherit git-r3 meson xdg |
25 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
26 |
+inherit git-r3 python-any-r1 meson virtualx xdg |
27 |
|
28 |
DESCRIPTION="A lightweight compositor for X11 (previously a compton fork)" |
29 |
HOMEPAGE="https://github.com/yshui/picom" |
30 |
@@ -11,8 +12,8 @@ EGIT_REPO_URI="https://github.com/yshui/picom.git" |
31 |
|
32 |
LICENSE="MPL-2.0 MIT" |
33 |
SLOT="0" |
34 |
-KEYWORDS="" |
35 |
-IUSE="+config-file dbus +doc +drm opengl pcre" |
36 |
+IUSE="+config-file dbus +doc +drm opengl pcre test" |
37 |
+RESTRICT="!test? ( test )" |
38 |
|
39 |
RDEPEND="dev-libs/libev |
40 |
dev-libs/uthash |
41 |
@@ -33,7 +34,9 @@ RDEPEND="dev-libs/libev |
42 |
DEPEND="${RDEPEND} |
43 |
x11-base/xorg-proto" |
44 |
BDEPEND="virtual/pkgconfig |
45 |
- doc? ( app-text/asciidoc )" |
46 |
+ doc? ( app-text/asciidoc ) |
47 |
+ test? ( $(python_gen_any_dep 'dev-python/xcffib[${PYTHON_USEDEP}]') ) |
48 |
+" |
49 |
|
50 |
DOCS=( README.md picom.sample.conf ) |
51 |
|
52 |
@@ -56,3 +59,7 @@ src_configure() { |
53 |
|
54 |
meson_src_configure |
55 |
} |
56 |
+ |
57 |
+src_test() { |
58 |
+ virtx "${S}/tests/run_tests.sh" "${BUILD_DIR}/src/${PN}" |
59 |
+} |