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 B87CB158089 for ; Mon, 16 Oct 2023 02:11:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D04D52BC014; Mon, 16 Oct 2023 02:11:55 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id B13F92BC014 for ; Mon, 16 Oct 2023 02:11:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 E671E335CAF for ; Mon, 16 Oct 2023 02:11:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C2E31149 for ; Mon, 16 Oct 2023 02:11:53 +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: <1697422307.d0684ba3c465f9b6ee73f9086b1fe292faed68f2.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libinput/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libinput/libinput-1.24.0.ebuild X-VCS-Directories: dev-libs/libinput/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: d0684ba3c465f9b6ee73f9086b1fe292faed68f2 X-VCS-Branch: master Date: Mon, 16 Oct 2023 02:11:53 +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: 8fd3254f-2e06-4d4f-b828-acf520c39d2a X-Archives-Hash: 704e3604a08642ec885b84e91ebf4489 commit: d0684ba3c465f9b6ee73f9086b1fe292faed68f2 Author: Matt Turner gentoo org> AuthorDate: Mon Oct 16 01:15:31 2023 +0000 Commit: Matt Turner gentoo org> CommitDate: Mon Oct 16 02:11:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0684ba3 dev-libs/libinput: Add test dependency on pytest Closes: https://bugs.gentoo.org/904128 Signed-off-by: Matt Turner gentoo.org> dev-libs/libinput/libinput-1.24.0.ebuild | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/dev-libs/libinput/libinput-1.24.0.ebuild b/dev-libs/libinput/libinput-1.24.0.ebuild index 635e6110457c..5a5b192a1c01 100644 --- a/dev-libs/libinput/libinput-1.24.0.ebuild +++ b/dev-libs/libinput/libinput-1.24.0.ebuild @@ -41,19 +41,28 @@ BDEPEND=" >=app-doc/doxygen-1.8.3 >=media-gfx/graphviz-2.38.0 ) + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) " # test? ( dev-util/valgrind ) python_check_deps() { - python_has_version \ - "dev-python/commonmark[${PYTHON_USEDEP}]" \ - "dev-python/recommonmark[${PYTHON_USEDEP}]" \ - "dev-python/sphinx[${PYTHON_USEDEP}]" \ - ">=dev-python/sphinx-rtd-theme-0.2.4[${PYTHON_USEDEP}]" -} - -pkg_setup() { - use doc && python-any-r1_pkg_setup + if use doc; then + python_has_version \ + "dev-python/commonmark[${PYTHON_USEDEP}]" \ + "dev-python/recommonmark[${PYTHON_USEDEP}]" \ + "dev-python/sphinx[${PYTHON_USEDEP}]" \ + ">=dev-python/sphinx-rtd-theme-0.2.4[${PYTHON_USEDEP}]" \ + || return + fi + if use test; then + python_has_version \ + "dev-python/pytest[${PYTHON_USEDEP}]" \ + || return + fi } src_prepare() {