From: Matt Turner Date: Wed, 25 Mar 2020 20:29:56 +0000 (-0700) Subject: dev-libs/libgusb: Depend on setuptools X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=115cc90adfb3176abb9096fcaa06a0978e639470;p=gentoo.git 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 --- 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