summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBratishkaErik <bratishkaerik@getgoogleoff.me>2022-03-11 16:30:26 +0600
committerJoonas Niilola <juippis@gentoo.org>2022-03-11 16:37:20 +0200
commit399443e37b2990cd86f0a5220b300a0f1f502337 (patch)
treed45aa4fdc8d09b81e0b2b5a66981170083d14f52 /app-misc/piper
parentdev-libs/libratbag: update Python targets (diff)
downloadgentoo-399443e37b2990cd86f0a5220b300a0f1f502337.tar.gz
gentoo-399443e37b2990cd86f0a5220b300a0f1f502337.tar.bz2
gentoo-399443e37b2990cd86f0a5220b300a0f1f502337.zip
app-misc/piper: make flake8 optional dependency
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Closes: https://github.com/gentoo/gentoo/pull/24414 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-misc/piper')
-rw-r--r--app-misc/piper/piper-0.6.ebuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/app-misc/piper/piper-0.6.ebuild b/app-misc/piper/piper-0.6.ebuild
index 4069145b9c5c..bc683c50c698 100644
--- a/app-misc/piper/piper-0.6.ebuild
+++ b/app-misc/piper/piper-0.6.ebuild
@@ -14,11 +14,18 @@ SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
BDEPEND="
${PYTHON_DEPS}
virtual/pkgconfig
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/flake8[${PYTHON_USEDEP}]
+ ')
+ )
"
RDEPEND="
${PYTHON_DEPS}
@@ -32,7 +39,6 @@ RDEPEND="
dev-python/pycairo[${PYTHON_USEDEP}]
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
dev-python/python-evdev[${PYTHON_USEDEP}]
- dev-python/flake8[${PYTHON_USEDEP}]
')
"
DEPEND="
@@ -43,6 +49,11 @@ DEPEND="
src_configure() {
python_setup
+
+ local emesonargs=(
+ $(meson_use test tests)
+ )
+
meson_src_configure
}