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 12C9115806E for ; Tue, 6 Jun 2023 04:02:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A6ACE08AE; Tue, 6 Jun 2023 04:02:44 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E84FE08AE for ; Tue, 6 Jun 2023 04:02:44 +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 12894340EB9 for ; Tue, 6 Jun 2023 04:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2EC55A88 for ; Tue, 6 Jun 2023 04:02:41 +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: <1686024146.fe98a4171f21caa41ec6b9bcba9d1b3f0f5aa6f7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dtc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/dtc/dtc-1.7.0.ebuild sys-apps/dtc/dtc-9999.ebuild X-VCS-Directories: sys-apps/dtc/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: fe98a4171f21caa41ec6b9bcba9d1b3f0f5aa6f7 X-VCS-Branch: master Date: Tue, 6 Jun 2023 04:02:41 +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: 435e3117-58f3-46fa-8ba5-80ad6436e9ec X-Archives-Hash: 4fe0d1e8b7c6dab7ee133a2d52d42968 commit: fe98a4171f21caa41ec6b9bcba9d1b3f0f5aa6f7 Author: Sam James gentoo org> AuthorDate: Tue Jun 6 04:02:26 2023 +0000 Commit: Sam James gentoo org> CommitDate: Tue Jun 6 04:02:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe98a417 sys-apps/dtc: conditionally build tests Signed-off-by: Sam James gentoo.org> sys-apps/dtc/dtc-1.7.0.ebuild | 12 +++++++++++- sys-apps/dtc/dtc-9999.ebuild | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/sys-apps/dtc/dtc-1.7.0.ebuild b/sys-apps/dtc/dtc-1.7.0.ebuild index 3c46abe827ed..117f6b36238e 100644 --- a/sys-apps/dtc/dtc-1.7.0.ebuild +++ b/sys-apps/dtc/dtc-1.7.0.ebuild @@ -18,7 +18,8 @@ HOMEPAGE="https://devicetree.org/ https://git.kernel.org/cgit/utils/dtc/dtc.git/ LICENSE="GPL-2" SLOT="0" -IUSE="static-libs yaml" +IUSE="static-libs test yaml" +RESTRICT="!test? ( test )" BDEPEND=" sys-devel/bison @@ -39,10 +40,19 @@ PATCHES=( "${FILESDIR}"/${P}-meson-macos.patch ) +src_prepare() { + default + + if ! use test ; then + sed -i -e "/subdir('tests')/d" meson.build || die + fi +} + src_configure() { local emesonargs=( -Ddefault_library=$(usex static-libs both shared) -Dpython=disabled + -Dtools=true -Dvalgrind=disabled # only used for some tests $(meson_feature yaml) ) diff --git a/sys-apps/dtc/dtc-9999.ebuild b/sys-apps/dtc/dtc-9999.ebuild index b1873ee6eac6..ce10f9e3b775 100644 --- a/sys-apps/dtc/dtc-9999.ebuild +++ b/sys-apps/dtc/dtc-9999.ebuild @@ -18,7 +18,8 @@ HOMEPAGE="https://devicetree.org/ https://git.kernel.org/cgit/utils/dtc/dtc.git/ LICENSE="GPL-2" SLOT="0" -IUSE="static-libs yaml" +IUSE="static-libs test yaml" +RESTRICT="!test? ( test )" BDEPEND=" sys-devel/bison @@ -34,10 +35,19 @@ DOCS=( Documentation/manual.txt ) +src_prepare() { + default + + if ! use test ; then + sed -i -e "/subdir('tests')/d" meson.build || die + fi +} + src_configure() { local emesonargs=( -Ddefault_library=$(usex static-libs both shared) -Dpython=disabled + -Dtools=true -Dvalgrind=disabled # only used for some tests $(meson_feature yaml) )