summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-08-27 17:16:28 +0200
committerMichał Górny <mgorny@gentoo.org>2017-09-07 22:31:35 +0200
commit2afbd628378643f8aeaa5779fa35533f4cf6d425 (patch)
tree55766b9431dba383e7ccb2b74181ca42d88c2bb7 /media-gfx/zbar
parentmedia-gfx/zbar: Add missing unzip dep (diff)
downloadgentoo-2afbd628378643f8aeaa5779fa35533f4cf6d425.tar.gz
gentoo-2afbd628378643f8aeaa5779fa35533f4cf6d425.tar.bz2
gentoo-2afbd628378643f8aeaa5779fa35533f4cf6d425.zip
media-gfx/zbar: Tests need Python too
Diffstat (limited to 'media-gfx/zbar')
-rw-r--r--media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild10
1 files 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 a6c0fc5a1795..48f2b35f178c 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
}