From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 62E23158087 for ; Thu, 13 Jan 2022 06:58:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DB852BC020; Thu, 13 Jan 2022 06:58:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 72C302BC020 for ; Thu, 13 Jan 2022 06:58:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8DEEA343434 for ; Thu, 13 Jan 2022 06:58:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 03FD321D for ; Thu, 13 Jan 2022 06:58:43 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1642057113.8f5680914a19b6f8ffdd6e3f6263de1eb1a1cbda.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/modemmanager/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/modemmanager/modemmanager-1.18.4.ebuild X-VCS-Directories: net-misc/modemmanager/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 8f5680914a19b6f8ffdd6e3f6263de1eb1a1cbda X-VCS-Branch: master Date: Thu, 13 Jan 2022 06:58:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 001359ca-3ab2-41ec-9f40-ed6f15cd227f X-Archives-Hash: 7460070af4462cff759a2139c59c01d1 commit: 8f5680914a19b6f8ffdd6e3f6263de1eb1a1cbda Author: Matt Turner gentoo org> AuthorDate: Thu Jan 13 06:56:34 2022 +0000 Commit: Matt Turner gentoo org> CommitDate: Thu Jan 13 06:58:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f568091 net-misc/modemmanager: Add missing test deps Closes: https://bugs.gentoo.org/831068 Signed-off-by: Matt Turner gentoo.org> net-misc/modemmanager/modemmanager-1.18.4.ebuild | 26 +++++++++++++++++++----- 1 file 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,