summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libgusb/libgusb-0.3.4.ebuild')
-rw-r--r--dev-libs/libgusb/libgusb-0.3.4.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-libs/libgusb/libgusb-0.3.4.ebuild b/dev-libs/libgusb/libgusb-0.3.4.ebuild
index f7b99287e23..c38c2990d9a 100644
--- a/dev-libs/libgusb/libgusb-0.3.4.ebuild
+++ b/dev-libs/libgusb/libgusb-0.3.4.ebuild
@@ -4,7 +4,10 @@
EAPI=7
VALA_USE_DEPEND="vapigen"
-inherit meson multilib-minimal vala
+PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit meson multilib-minimal python-any-r1 vala
DESCRIPTION="GObject wrapper for libusb"
HOMEPAGE="https://github.com/hughsie/libgusb"
@@ -25,6 +28,7 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
BDEPEND="
+ $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
gtk-doc? (
app-text/docbook-xml-dtd:4.1.2
app-text/docbook-xml-dtd:4.4
@@ -36,6 +40,10 @@ BDEPEND="
RESTRICT="!test? ( test )"
+python_check_deps() {
+ has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
+}
+
src_prepare() {
use vala && vala_src_prepare
default