From d6eba06a367ef5d8d2ac6787caad768fa2b713a6 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 7 Jun 2021 16:43:56 +0000 Subject: x11-misc/picom: only require Python for tests Closes: https://bugs.gentoo.org/794808 Signed-off-by: Sam James --- x11-misc/picom/picom-8-r1.ebuild | 8 ++++++++ x11-misc/picom/picom-8.2-r2.ebuild | 8 ++++++++ x11-misc/picom/picom-9999.ebuild | 8 ++++++++ 3 files changed, 24 insertions(+) (limited to 'x11-misc/picom') 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) -- cgit v1.2.3-65-gdbad