Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/zbar/
Date: Thu, 07 Sep 2017 20:31:51
Message-Id: 1504816295.2afbd628378643f8aeaa5779fa35533f4cf6d425.mgorny@gentoo
1 commit: 2afbd628378643f8aeaa5779fa35533f4cf6d425
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 27 15:16:28 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 7 20:31:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2afbd628
7
8 media-gfx/zbar: Tests need Python too
9
10 media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild | 10 +++++++---
11 1 file changed, 7 insertions(+), 3 deletions(-)
12
13 diff --git a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
14 index a6c0fc5a179..48f2b35f178 100644
15 --- a/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
16 +++ b/media-gfx/zbar/zbar-0.10_p20121015-r2.ebuild
17 @@ -14,8 +14,9 @@ SRC_URI="https://dev.gentoo.org/~xmw/zbar-0.10_p20121015.zip"
18 LICENSE="LGPL-2.1"
19 SLOT="0"
20 KEYWORDS="~amd64 ~arm ~x86"
21 -IUSE="gtk imagemagick java jpeg python qt4 static-libs +threads v4l X xv"
22 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
23 +IUSE="gtk imagemagick java jpeg python qt4 static-libs test +threads v4l X xv"
24 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
25 + test? ( ${PYTHON_REQUIRED_USE} )"
26
27 CDEPEND="gtk? ( dev-libs/glib:2 x11-libs/gtk+:2 )
28 imagemagick? ( virtual/imagemagick-tools )
29 @@ -33,12 +34,15 @@ RDEPEND="${CDEPEND}
30 java? ( >=virtual/jre-1.4 )"
31 DEPEND="${CDEPEND}
32 java? ( >=virtual/jdk-1.4 )
33 + test? ( ${PYTHON_DEPS} )
34 app-arch/unzip
35 sys-devel/gettext
36 virtual/pkgconfig"
37
38 pkg_setup() {
39 - use python && python-single-r1_pkg_setup
40 + if use python || use test; then
41 + python-single-r1_pkg_setup
42 + fi
43 java-pkg-opt-2_pkg_setup
44 }