diff options
author | Sam James <sam@gentoo.org> | 2021-06-07 16:43:56 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-07 16:44:14 +0000 |
commit | d6eba06a367ef5d8d2ac6787caad768fa2b713a6 (patch) | |
tree | 532f3a1f058d0e6006870906db0d1bfe4b2379a5 /x11-misc/picom | |
parent | sci-libs/p4est: version bump to 2.3.1 (diff) | |
download | gentoo-d6eba06a367ef5d8d2ac6787caad768fa2b713a6.tar.gz gentoo-d6eba06a367ef5d8d2ac6787caad768fa2b713a6.tar.bz2 gentoo-d6eba06a367ef5d8d2ac6787caad768fa2b713a6.zip |
x11-misc/picom: only require Python for tests
Closes: https://bugs.gentoo.org/794808
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-misc/picom')
-rw-r--r-- | x11-misc/picom/picom-8-r1.ebuild | 8 | ||||
-rw-r--r-- | x11-misc/picom/picom-8.2-r2.ebuild | 8 | ||||
-rw-r--r-- | x11-misc/picom/picom-9999.ebuild | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/x11-misc/picom/picom-8-r1.ebuild b/x11-misc/picom/picom-8-r1.ebuild index ff42b3981ea5..a266247cac0b 100644 --- a/x11-misc/picom/picom-8-r1.ebuild +++ b/x11-misc/picom/picom-8-r1.ebuild @@ -42,6 +42,14 @@ BDEPEND="virtual/pkgconfig test? ( $(python_gen_any_dep 'dev-python/xcffib[${PYTHON_USEDEP}]') ) " +python_check_deps() { + has_version -b "dev-python/xcffib[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_configure() { local emesonargs=( $(meson_use config-file config_file) diff --git a/x11-misc/picom/picom-8.2-r2.ebuild b/x11-misc/picom/picom-8.2-r2.ebuild index b0f968999550..022f196ec4f0 100644 --- a/x11-misc/picom/picom-8.2-r2.ebuild +++ b/x11-misc/picom/picom-8.2-r2.ebuild @@ -44,6 +44,14 @@ BDEPEND="virtual/pkgconfig DOCS=( README.md picom.sample.conf ) +python_check_deps() { + has_version -b "dev-python/xcffib[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_configure() { local emesonargs=( $(meson_use config-file config_file) diff --git a/x11-misc/picom/picom-9999.ebuild b/x11-misc/picom/picom-9999.ebuild index ae0a2c9641a2..c4a78a4bda5b 100644 --- a/x11-misc/picom/picom-9999.ebuild +++ b/x11-misc/picom/picom-9999.ebuild @@ -37,6 +37,14 @@ BDEPEND="virtual/pkgconfig DOCS=( README.md picom.sample.conf ) +python_check_deps() { + has_version -b "dev-python/xcffib[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_configure() { local emesonargs=( $(meson_use config-file config_file) |