commit:     f5344275922663b73a12d97f07a5c7a536a2d594
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 09:42:31 2016 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sat Oct 15 09:42:37 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5344275

media-libs/kvazaar: fix tests on live ebuild

Package-Manager: portage-2.3.2

 media-libs/kvazaar/kvazaar-9999.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/media-libs/kvazaar/kvazaar-9999.ebuild 
b/media-libs/kvazaar/kvazaar-9999.ebuild
index 7f8fec2..edf3031 100644
--- a/media-libs/kvazaar/kvazaar-9999.ebuild
+++ b/media-libs/kvazaar/kvazaar-9999.ebuild
@@ -31,6 +31,7 @@ IUSE="static-libs test"
 
 DEPEND=""
 RDEPEND="${DEPEND}"
+REQUIRED_USE="test? ( static-libs )"
 
 ASM_DEP=">=dev-lang/yasm-1.2.0"
 DEPEND="${DEPEND}
@@ -39,7 +40,7 @@ DEPEND="${DEPEND}
 
 src_prepare() {
        eautoreconf
-       if use test ; then
+       if use test && [ "${PV#9999}" = "${PV}" ]; then
                # https://bugs.gentoo.org/show_bug.cgi?id=595932
                rmdir "${S}/greatest" || die
                mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die

Reply via email to