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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A95C15ACFC for ; Fri, 5 May 2023 10:14:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CDF73E07D0; Fri, 5 May 2023 10:14:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 B4FB7E07D0 for ; Fri, 5 May 2023 10:14:37 +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 881F03414C6 for ; Fri, 5 May 2023 10:14:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E55F7A57 for ; Fri, 5 May 2023 10:14:34 +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: <1683281624.58edb6ac6707d73f5a9dc8de0eacf43a9e0600d8.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/usbredir/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/usbredir/usbredir-0.13.0.ebuild X-VCS-Directories: sys-apps/usbredir/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 58edb6ac6707d73f5a9dc8de0eacf43a9e0600d8 X-VCS-Branch: master Date: Fri, 5 May 2023 10:14:34 +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: cba21e00-d22f-4cf2-aacf-2ab916412b08 X-Archives-Hash: a439f356c2153f923b10b510811e9e94 commit: 58edb6ac6707d73f5a9dc8de0eacf43a9e0600d8 Author: Sam James gentoo org> AuthorDate: Fri May 5 09:48:21 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri May 5 10:13:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58edb6ac sys-apps/usbredir: build tests conditionally, fix -Werror in some cases -Werror would be added when WORKDIR is a git repo (which I do for testing). Signed-off-by: Sam James gentoo.org> sys-apps/usbredir/usbredir-0.13.0.ebuild | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sys-apps/usbredir/usbredir-0.13.0.ebuild b/sys-apps/usbredir/usbredir-0.13.0.ebuild index 0edea99661f3..14d387242d5d 100644 --- a/sys-apps/usbredir/usbredir-0.13.0.ebuild +++ b/sys-apps/usbredir/usbredir-0.13.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,12 +13,25 @@ S="${WORKDIR}"/usbredir-${P} LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv ~sparc x86" +IUSE="test" +RESTRICT="!test? ( test )" -DEPEND="dev-libs/glib:2 - virtual/libusb:1" +DEPEND=" + dev-libs/glib:2 + virtual/libusb:1 +" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" +src_configure() { + local emesonargs=( + -Dgit_werror=disabled + $(meson_feature test tests) + ) + + meson_src_configure +} + src_install() { meson_src_install dodoc -r docs/.