1 |
commit: cdf5b5392ca1f171e9a422b8206984f3b348a282 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 13 21:09:39 2017 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 13 21:19:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdf5b539 |
7 |
|
8 |
dev-util/rr: clean up build/test deps |
9 |
|
10 |
We only need zlib & gdb at runtime. All the other deps in here |
11 |
are for building & testing only, so drop them from RDEPEND. |
12 |
|
13 |
dev-util/rr/rr-4.5.0.ebuild | 29 ++++++++++++++++++++--------- |
14 |
1 file changed, 20 insertions(+), 9 deletions(-) |
15 |
|
16 |
diff --git a/dev-util/rr/rr-4.5.0.ebuild b/dev-util/rr/rr-4.5.0.ebuild |
17 |
index 6624a53814..b83875db0e 100644 |
18 |
--- a/dev-util/rr/rr-4.5.0.ebuild |
19 |
+++ b/dev-util/rr/rr-4.5.0.ebuild |
20 |
@@ -16,15 +16,18 @@ SRC_URI="https://github.com/mozilla/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.t |
21 |
LICENSE="MIT BSD-2" |
22 |
SLOT="0" |
23 |
KEYWORDS="~amd64 ~x86" |
24 |
-IUSE="" |
25 |
- |
26 |
-DEPEND="dev-python/pexpect[${PYTHON_USEDEP}] |
27 |
- sys-libs/zlib |
28 |
- ${PYTHON_DEPS}" |
29 |
- |
30 |
-RDEPEND=" |
31 |
- sys-devel/gdb[xml] |
32 |
- ${DEPEND}" |
33 |
+IUSE="test" |
34 |
+ |
35 |
+DEPEND="sys-libs/zlib" |
36 |
+RDEPEND="${DEPEND} |
37 |
+ sys-devel/gdb[xml]" |
38 |
+# Add all the deps needed only at build/test time. |
39 |
+DEPEND+=" |
40 |
+ test? ( |
41 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
42 |
+ sys-devel/gdb[xml] |
43 |
+ ) |
44 |
+ ${PYTHON_DEPS}" |
45 |
|
46 |
pkg_setup() { |
47 |
if use kernel_linux; then |
48 |
@@ -39,3 +42,11 @@ src_prepare() { |
49 |
|
50 |
sed -i 's:-Werror::' CMakeLists.txt || die #609192 |
51 |
} |
52 |
+ |
53 |
+src_configure() { |
54 |
+ local mycmakeargs=( |
55 |
+ -DBUILD_TESTS=$(usex test) |
56 |
+ ) |
57 |
+ |
58 |
+ cmake-utils_src_configure |
59 |
+} |