commit:     115cc90adfb3176abb9096fcaa06a0978e639470
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 25 20:29:56 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Mar 25 20:32:50 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=115cc90a

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 <AT> gentoo.org>

 dev-libs/libgusb/libgusb-0.3.4.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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

Reply via email to