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 2D9FE139694 for ; Mon, 13 Feb 2017 21:19:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68446E0C57; Mon, 13 Feb 2017 21:19:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A094E0C57 for ; Mon, 13 Feb 2017 21:19:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D8B934155D for ; Mon, 13 Feb 2017 21:19:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1602446CE for ; Mon, 13 Feb 2017 21:19:22 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1487020753.cdf5b5392ca1f171e9a422b8206984f3b348a282.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rr/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/rr/rr-4.5.0.ebuild X-VCS-Directories: dev-util/rr/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: cdf5b5392ca1f171e9a422b8206984f3b348a282 X-VCS-Branch: master Date: Mon, 13 Feb 2017 21:19:22 +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-Archives-Salt: 49974fcd-739b-4490-9eaa-748bacc65b2f X-Archives-Hash: 4abc82aab2a8bbdd15e6bd4d884fe840 commit: cdf5b5392ca1f171e9a422b8206984f3b348a282 Author: Mike Frysinger gentoo org> AuthorDate: Mon Feb 13 21:09:39 2017 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Mon Feb 13 21:19:13 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdf5b539 dev-util/rr: clean up build/test deps We only need zlib & gdb at runtime. All the other deps in here are for building & testing only, so drop them from RDEPEND. dev-util/rr/rr-4.5.0.ebuild | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/dev-util/rr/rr-4.5.0.ebuild b/dev-util/rr/rr-4.5.0.ebuild index 6624a53814..b83875db0e 100644 --- a/dev-util/rr/rr-4.5.0.ebuild +++ b/dev-util/rr/rr-4.5.0.ebuild @@ -16,15 +16,18 @@ SRC_URI="https://github.com/mozilla/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.t LICENSE="MIT BSD-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" - -DEPEND="dev-python/pexpect[${PYTHON_USEDEP}] - sys-libs/zlib - ${PYTHON_DEPS}" - -RDEPEND=" - sys-devel/gdb[xml] - ${DEPEND}" +IUSE="test" + +DEPEND="sys-libs/zlib" +RDEPEND="${DEPEND} + sys-devel/gdb[xml]" +# Add all the deps needed only at build/test time. +DEPEND+=" + test? ( + dev-python/pexpect[${PYTHON_USEDEP}] + sys-devel/gdb[xml] + ) + ${PYTHON_DEPS}" pkg_setup() { if use kernel_linux; then @@ -39,3 +42,11 @@ src_prepare() { sed -i 's:-Werror::' CMakeLists.txt || die #609192 } + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTS=$(usex test) + ) + + cmake-utils_src_configure +}