1 |
commit: a93b3a6f21c48494aba1a78f70ee1d94f9c1a8bb |
2 |
Author: Mike Frysinger <vapier <AT> chromium <DOT> org> |
3 |
AuthorDate: Thu Jan 3 09:14:47 2019 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 3 09:14:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a93b3a6f |
7 |
|
8 |
dev-libs/libcgroup: avoid building tests when USE=-test |
9 |
|
10 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libcgroup/libcgroup-0.41-r5.ebuild | 7 ++++++- |
13 |
1 file changed, 6 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild b/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild |
16 |
index a4301a5acce..6c256390301 100644 |
17 |
--- a/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild |
18 |
+++ b/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild |
19 |
@@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/project/libcg/${PN}/v${PV}/${P}.tar.bz2" |
20 |
LICENSE="LGPL-2.1" |
21 |
SLOT="0" |
22 |
KEYWORDS="amd64 arm ~ppc ~ppc64 x86" |
23 |
-IUSE="+daemon elibc_musl pam static-libs +tools" |
24 |
+IUSE="+daemon elibc_musl pam static-libs test +tools" |
25 |
|
26 |
RDEPEND="pam? ( virtual/pam )" |
27 |
|
28 |
@@ -51,6 +51,11 @@ src_prepare() { |
29 |
-i src/pam/Makefile.am || die "sed failed" |
30 |
sed -e 's#/var/run#/run#g' -i configure.in || die "sed failed" |
31 |
|
32 |
+ # If we're not running tests, don't bother building them. |
33 |
+ if ! use test; then |
34 |
+ sed -i '/^SUBDIRS/s:tests::' Makefile.am || die |
35 |
+ fi |
36 |
+ |
37 |
eautoreconf |
38 |
} |