diff options
author | Matt Turner <mattst88@gentoo.org> | 2022-01-12 22:56:34 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2022-01-12 22:58:33 -0800 |
commit | 8f5680914a19b6f8ffdd6e3f6263de1eb1a1cbda (patch) | |
tree | e660cd0e1e708be1989aa44117862a56bc3006aa | |
parent | dev-util/jenkins-bin: add 2.319.2, 2.330 (diff) | |
download | gentoo-8f5680914a19b6f8ffdd6e3f6263de1eb1a1cbda.tar.gz gentoo-8f5680914a19b6f8ffdd6e3f6263de1eb1a1cbda.tar.bz2 gentoo-8f5680914a19b6f8ffdd6e3f6263de1eb1a1cbda.zip |
net-misc/modemmanager: Add missing test deps
Closes: https://bugs.gentoo.org/831068
Signed-off-by: Matt Turner <mattst88@gentoo.org>
-rw-r--r-- | net-misc/modemmanager/modemmanager-1.18.4.ebuild | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/net-misc/modemmanager/modemmanager-1.18.4.ebuild b/net-misc/modemmanager/modemmanager-1.18.4.ebuild index b84f97094ad6..a86bab79aa95 100644 --- a/net-misc/modemmanager/modemmanager-1.18.4.ebuild +++ b/net-misc/modemmanager/modemmanager-1.18.4.ebuild @@ -1,10 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -VALA_USE_DEPEND="vapigen" - -inherit gnome2 readme.gentoo-r1 systemd udev vala +PYTHON_COMPAT=( python3_{8..10} ) +inherit gnome2 python-any-r1 readme.gentoo-r1 systemd udev vala DESCRIPTION="Modem and mobile broadband management libraries" HOMEPAGE="https://www.freedesktop.org/wiki/Software/ModemManager/" @@ -14,11 +13,12 @@ LICENSE="GPL-2+" SLOT="0/1" # subslot = dbus interface version, i.e. N in org.freedesktop.ModemManager${N} KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="elogind +introspection mbim policykit +qmi systemd +udev vala" +IUSE="elogind +introspection mbim policykit +qmi systemd test +udev vala" REQUIRED_USE=" ?? ( elogind systemd ) vala? ( introspection ) " +RESTRICT="!test? ( test )" DEPEND=" >=dev-libs/glib-2.56.0:2 @@ -39,11 +39,27 @@ BDEPEND=" >=dev-util/gtk-doc-am-1 >=sys-devel/gettext-0.19.8 virtual/pkgconfig + test? ( + ${PYTHON_DEPS} + $(python_gen_any_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + ') + ) vala? ( $(vala_depend) ) " S="${WORKDIR}/ModemManager-${PV}" +python_check_deps() { + has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && + has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_prepare() { DOC_CONTENTS=" If your USB modem shows up only as a storage device when you plug it in, |