From a93b3a6f21c48494aba1a78f70ee1d94f9c1a8bb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 3 Jan 2019 04:14:47 -0500 Subject: dev-libs/libcgroup: avoid building tests when USE=-test Signed-off-by: Mike Frysinger --- dev-libs/libcgroup/libcgroup-0.41-r5.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dev-libs/libcgroup') diff --git a/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild b/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild index a4301a5acce2..6c2563903010 100644 --- a/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild +++ b/dev-libs/libcgroup/libcgroup-0.41-r5.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/project/libcg/${PN}/v${PV}/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 arm ~ppc ~ppc64 x86" -IUSE="+daemon elibc_musl pam static-libs +tools" +IUSE="+daemon elibc_musl pam static-libs test +tools" RDEPEND="pam? ( virtual/pam )" @@ -51,6 +51,11 @@ src_prepare() { -i src/pam/Makefile.am || die "sed failed" sed -e 's#/var/run#/run#g' -i configure.in || die "sed failed" + # If we're not running tests, don't bother building them. + if ! use test; then + sed -i '/^SUBDIRS/s:tests::' Makefile.am || die + fi + eautoreconf } -- cgit v1.2.3-65-gdbad