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 25A7B158041 for ; Tue, 12 Mar 2024 21:46:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6773DE29FA; Tue, 12 Mar 2024 21:46:35 +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 473F5E29FA for ; Tue, 12 Mar 2024 21:46:35 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FA30335C52 for ; Tue, 12 Mar 2024 21:46:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC53AFC2 for ; Tue, 12 Mar 2024 21:46:32 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1710279985.d129a341c240c68effcb2a03399ea52f36116aea.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/gentoolkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-portage/gentoolkit/gentoolkit-9999.ebuild X-VCS-Directories: app-portage/gentoolkit/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d129a341c240c68effcb2a03399ea52f36116aea X-VCS-Branch: master Date: Tue, 12 Mar 2024 21:46:32 +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: ed6e224d-7cba-4a9b-bc9b-73779a230b15 X-Archives-Hash: 5c137e0e3e2bc4bfe5ec7322585c8004 commit: d129a341c240c68effcb2a03399ea52f36116aea Author: Sam James gentoo org> AuthorDate: Tue Mar 12 21:46:02 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 12 21:46:25 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d129a341 app-portage/gentoolkit: adapt live to new pytest dep + build system option Closes: https://bugs.gentoo.org/926427 Co-authored-by: Greg Kubaryk gmail.com> Signed-off-by: Greg Kubaryk gmail.com> Signed-off-by: Sam James gentoo.org> app-portage/gentoolkit/gentoolkit-9999.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app-portage/gentoolkit/gentoolkit-9999.ebuild b/app-portage/gentoolkit/gentoolkit-9999.ebuild index 551b618d223a..5eb3d884baf5 100644 --- a/app-portage/gentoolkit/gentoolkit-9999.ebuild +++ b/app-portage/gentoolkit/gentoolkit-9999.ebuild @@ -22,6 +22,8 @@ HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools" LICENSE="GPL-2" SLOT="0" REQUIRED_USE="${PYTHON_REQUIRED_USE}" +IUSE="test" +RESTRICT="!test? ( test )" # Need newer Portage for eclean-pkg API, bug #900224 DEPEND=" @@ -44,6 +46,9 @@ BDEPEND=" $(python_gen_cond_dep ' dev-python/setuptools[${PYTHON_USEDEP}] ' python3_12) + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + ) " src_prepare() { @@ -64,6 +69,7 @@ src_configure() { my_src_configure() { local emesonargs=( -Dcode-only=${code_only} + $(meson_use test tests) -Deprefix="${EPREFIX}" -Ddocdir="${EPREFIX}/usr/share/doc/${PF}" )