diff options
author | Mike Frysinger <vapier@chromium.org> | 2019-01-03 04:14:47 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2019-01-03 04:14:58 -0500 |
commit | a93b3a6f21c48494aba1a78f70ee1d94f9c1a8bb (patch) | |
tree | 0eb200f5d1c9817f3fbff367a4a18c7d0b75e747 /dev-libs/libcgroup | |
parent | app-emulation/virtualbox-bin: Fixed installation with USE="python" (diff) | |
download | gentoo-a93b3a6f21c48494aba1a78f70ee1d94f9c1a8bb.tar.gz gentoo-a93b3a6f21c48494aba1a78f70ee1d94f9c1a8bb.tar.bz2 gentoo-a93b3a6f21c48494aba1a78f70ee1d94f9c1a8bb.zip |
dev-libs/libcgroup: avoid building tests when USE=-test
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'dev-libs/libcgroup')
-rw-r--r-- | dev-libs/libcgroup/libcgroup-0.41-r5.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
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 } |