commit:     8cf743ab63778622b848d1fb31ed7ead9a7e9e58
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 28 16:12:40 2017 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Tue Mar 28 16:13:50 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cf743ab

media-gfx/gphoto2: fix tests with USE=-exif

Gentoo-bug: 610024

 media-gfx/gphoto2/gphoto2-2.5.11.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/media-gfx/gphoto2/gphoto2-2.5.11.ebuild 
b/media-gfx/gphoto2/gphoto2-2.5.11.ebuild
index cf4452bdf7b..8cc221391d9 100644
--- a/media-gfx/gphoto2/gphoto2-2.5.11.ebuild
+++ b/media-gfx/gphoto2/gphoto2-2.5.11.ebuild
@@ -31,6 +31,10 @@ DEPEND="${RDEPEND}
 
 src_prepare() {
        default
+       if ! use exif ; then
+               # Remove tests that require EXIF to pass, bug 610024
+               rm "${S}"/tests/data/test0{35,36,37,40}* || die
+       fi
        # Leave GCC debug builds under user control
        sed -r '/(C|LD)FLAGS/ s/ -g( |")/\1/' \
                -i configure{.ac,} || die

Reply via email to