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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F26C3138334 for ; Wed, 18 Sep 2019 22:12:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3AB3FE08F4; Wed, 18 Sep 2019 22:12:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1D1E8E08F4 for ; Wed, 18 Sep 2019 22:12:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7D2E34B13A for ; Wed, 18 Sep 2019 22:12:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 79E607ED for ; Wed, 18 Sep 2019 22:12:28 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1568844741.4af6607f04424cd164e0cd175429c15c4076a4e1.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/capstone/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/capstone/capstone-4.0.1.ebuild X-VCS-Directories: dev-libs/capstone/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 4af6607f04424cd164e0cd175429c15c4076a4e1 X-VCS-Branch: master Date: Wed, 18 Sep 2019 22:12:28 +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: 2a2eb08a-5479-480b-98e0-b6270d63dc75 X-Archives-Hash: d7f0693789cd866d038503f05e9ededd commit: 4af6607f04424cd164e0cd175429c15c4076a4e1 Author: Sergei Trofimovich gentoo org> AuthorDate: Wed Sep 18 22:11:26 2019 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Wed Sep 18 22:12:21 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4af6607f dev-libs/capstone:guard tests building behind USE=test, bug #663006 Reported-by: Michał Górny Closes: https://bugs.gentoo.org/663006 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Sergei Trofimovich gentoo.org> dev-libs/capstone/capstone-4.0.1.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dev-libs/capstone/capstone-4.0.1.ebuild b/dev-libs/capstone/capstone-4.0.1.ebuild index e4931c690d0..77b9b960a58 100644 --- a/dev-libs/capstone/capstone-4.0.1.ebuild +++ b/dev-libs/capstone/capstone-4.0.1.ebuild @@ -16,7 +16,9 @@ LICENSE="BSD" SLOT="0/4" # libcapstone.so.4 KEYWORDS="~amd64 ~arm ~arm64 ~x86" -IUSE="python" +RESTRICT="!test? ( test )" + +IUSE="python test" RDEPEND="python? ( ${PYTHON_DEPS} )" DEPEND="${RDEPEND} python? ( dev-python/setuptools[${PYTHON_USEDEP}] ) @@ -63,6 +65,11 @@ src_configure() { EOF } >> config.mk || die + if ! use test; then + # Don't build tests if not requested: bug #663006 + sed -i tests/Makefile -e 's@all: $(BINARY)@all:@' || die + fi + wrap_python ${FUNCNAME} }