summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2020-03-25 13:29:56 -0700
committerMatt Turner <mattst88@gentoo.org>2020-03-25 13:32:50 -0700
commit115cc90adfb3176abb9096fcaa06a0978e639470 (patch)
tree1cda64f10600b053b36d07ceeec56c76bbdade94 /dev-libs/libgusb
parentnet-libs/glib-networking: Bump glib dependency (diff)
downloadgentoo-115cc90adfb3176abb9096fcaa06a0978e639470.tar.gz
gentoo-115cc90adfb3176abb9096fcaa06a0978e639470.tar.bz2
gentoo-115cc90adfb3176abb9096fcaa06a0978e639470.zip
dev-libs/libgusb: Depend on setuptools
A new build-time script was added in 0.3.4 that imports pkg_resources and xml.etree.ElementTree. Closes: https://bugs.gentoo.org/714670 Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/libgusb')
-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 f7b99287e233..c38c2990d9ad 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