commit:     2afbd628378643f8aeaa5779fa35533f4cf6d425
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 27 15:16:28 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep  7 20:31:35 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2afbd628

media-gfx/zbar: Tests need Python too

 media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild 
b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
index a6c0fc5a179..48f2b35f178 100644
--- a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
+++ b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
@@ -14,8 +14,9 @@ SRC_URI="https://dev.gentoo.org/~xmw/zbar-0.10_p20121015.zip";
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~x86"
-IUSE="gtk imagemagick java jpeg python qt4 static-libs +threads v4l X xv"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+IUSE="gtk imagemagick java jpeg python qt4 static-libs test +threads v4l X xv"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+       test? ( ${PYTHON_REQUIRED_USE} )"
 
 CDEPEND="gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
        imagemagick? ( virtual/imagemagick-tools )
@@ -33,12 +34,15 @@ RDEPEND="${CDEPEND}
        java? ( >=virtual/jre-1.4 )"
 DEPEND="${CDEPEND}
        java? ( >=virtual/jdk-1.4 )
+       test? ( ${PYTHON_DEPS} )
        app-arch/unzip
        sys-devel/gettext
        virtual/pkgconfig"
 
 pkg_setup() {
-       use python && python-single-r1_pkg_setup
+       if use python || use test; then
+               python-single-r1_pkg_setup
+       fi
        java-pkg-opt-2_pkg_setup
 }
 

Reply via email to