dev-python/python-libevdev: Add test dependency
authorMatt Turner <mattst88@gentoo.org>
Wed, 29 Apr 2020 17:52:31 +0000 (10:52 -0700)
committerMatt Turner <mattst88@gentoo.org>
Wed, 29 Apr 2020 17:52:33 +0000 (10:52 -0700)
Closes: https://bugs.gentoo.org/719994
Signed-off-by: Matt Turner <mattst88@gentoo.org>
dev-python/python-libevdev/python-libevdev-0.8.ebuild

index 15867639b043b80801010b0da6e1e37ab005e1b6..c1d9bb0d9d4e95f8885355be21f791d30c3caea9 100644 (file)
@@ -13,7 +13,12 @@ SRC_URI="https://gitlab.freedesktop.org/libevdev/${PN}/-/archive/${PV}/${P}.tar.
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
-IUSE=""
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       test? ( dev-libs/libevdev )
+"
 
 python_test() {
        esetup.py test