diff options
author | Matt Turner <mattst88@gentoo.org> | 2023-10-15 21:15:31 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2023-10-15 22:11:47 -0400 |
commit | d0684ba3c465f9b6ee73f9086b1fe292faed68f2 (patch) | |
tree | 4efb819b20371445bf1632d9cce6c64a7b63daa5 /dev-libs/libinput | |
parent | sys-devel/gcc: add 14.0.0_pre20231015 (diff) | |
download | gentoo-d0684ba3c465f9b6ee73f9086b1fe292faed68f2.tar.gz gentoo-d0684ba3c465f9b6ee73f9086b1fe292faed68f2.tar.bz2 gentoo-d0684ba3c465f9b6ee73f9086b1fe292faed68f2.zip |
dev-libs/libinput: Add test dependency on pytest
Closes: https://bugs.gentoo.org/904128
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/libinput')
-rw-r--r-- | dev-libs/libinput/libinput-1.24.0.ebuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/dev-libs/libinput/libinput-1.24.0.ebuild b/dev-libs/libinput/libinput-1.24.0.ebuild index 635e6110457c..5a5b192a1c01 100644 --- a/dev-libs/libinput/libinput-1.24.0.ebuild +++ b/dev-libs/libinput/libinput-1.24.0.ebuild @@ -41,19 +41,28 @@ BDEPEND=" >=app-doc/doxygen-1.8.3 >=media-gfx/graphviz-2.38.0 ) + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) " # test? ( dev-util/valgrind ) python_check_deps() { - python_has_version \ - "dev-python/commonmark[${PYTHON_USEDEP}]" \ - "dev-python/recommonmark[${PYTHON_USEDEP}]" \ - "dev-python/sphinx[${PYTHON_USEDEP}]" \ - ">=dev-python/sphinx-rtd-theme-0.2.4[${PYTHON_USEDEP}]" -} - -pkg_setup() { - use doc && python-any-r1_pkg_setup + if use doc; then + python_has_version \ + "dev-python/commonmark[${PYTHON_USEDEP}]" \ + "dev-python/recommonmark[${PYTHON_USEDEP}]" \ + "dev-python/sphinx[${PYTHON_USEDEP}]" \ + ">=dev-python/sphinx-rtd-theme-0.2.4[${PYTHON_USEDEP}]" \ + || return + fi + if use test; then + python_has_version \ + "dev-python/pytest[${PYTHON_USEDEP}]" \ + || return + fi } src_prepare() { |