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 6A6BB158649 for ; Tue, 9 May 2023 17:46:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C55EE07D4; Tue, 9 May 2023 17:46:34 +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 815ECE07D4 for ; Tue, 9 May 2023 17:46:34 +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 9411F335DC1 for ; Tue, 9 May 2023 17:46:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2FFAA990 for ; Tue, 9 May 2023 17: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: <1683654377.db12d7be4fb8e598047da65128b65246dd6a20dd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/zchunk/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/zchunk/zchunk-1.2.3.ebuild app-arch/zchunk/zchunk-9999.ebuild X-VCS-Directories: app-arch/zchunk/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: db12d7be4fb8e598047da65128b65246dd6a20dd X-VCS-Branch: master Date: Tue, 9 May 2023 17: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: 6bbc7461-2c02-4e1f-a153-f766ba4338e3 X-Archives-Hash: 1f9915f83bfd5f367fdfe238aaa1e10a commit: db12d7be4fb8e598047da65128b65246dd6a20dd Author: Sam James gentoo org> AuthorDate: Tue May 9 16:01:09 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 9 17:46:17 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db12d7be app-arch/zchunk: conditionally build tests Signed-off-by: Sam James gentoo.org> app-arch/zchunk/zchunk-1.2.3.ebuild | 10 ++++++++++ app-arch/zchunk/zchunk-9999.ebuild | 12 +++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/app-arch/zchunk/zchunk-1.2.3.ebuild b/app-arch/zchunk/zchunk-1.2.3.ebuild index 78b7906664ab..e89d8926554d 100644 --- a/app-arch/zchunk/zchunk-1.2.3.ebuild +++ b/app-arch/zchunk/zchunk-1.2.3.ebuild @@ -18,6 +18,8 @@ fi LICENSE="BSD-2" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND=" app-arch/zstd:= @@ -25,3 +27,11 @@ DEPEND=" dev-libs/openssl:= " RDEPEND="${DEPEND}" + +src_configure() { + local emesonargs=( + $(meson_use test tests) + ) + + meson_src_configure +} diff --git a/app-arch/zchunk/zchunk-9999.ebuild b/app-arch/zchunk/zchunk-9999.ebuild index 76677dce82f5..e89d8926554d 100644 --- a/app-arch/zchunk/zchunk-9999.ebuild +++ b/app-arch/zchunk/zchunk-9999.ebuild @@ -13,11 +13,13 @@ if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://github.com/zchunk/zchunk.git" else SRC_URI="https://github.com/zchunk/zchunk/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" + KEYWORDS="~amd64 ~x86" fi LICENSE="BSD-2" SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND=" app-arch/zstd:= @@ -25,3 +27,11 @@ DEPEND=" dev-libs/openssl:= " RDEPEND="${DEPEND}" + +src_configure() { + local emesonargs=( + $(meson_use test tests) + ) + + meson_src_configure +}