From cdf5b5392ca1f171e9a422b8206984f3b348a282 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 13 Feb 2017 16:09:39 -0500 Subject: 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 6624a538149a..b83875db0e0a 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 +} -- cgit v1.2.3-65-gdbad