commit: cdf5b5392ca1f171e9a422b8206984f3b348a282 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Mon Feb 13 21:09:39 2017 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> 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 +}