Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/zxing-cpp/
Date: Sun, 11 Oct 2020 21:33:25
Message-Id: 1602451973.2eaabc8ed574ba18a913845fcf6d987d8a2a05ff.asturm@gentoo
1 commit: 2eaabc8ed574ba18a913845fcf6d987d8a2a05ff
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 19:39:20 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 21:32:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2eaabc8e
7
8 media-libs/zxing-cpp: Disable examples build, add IUSE="test"
9
10 Closes: https://bugs.gentoo.org/747841
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 media-libs/zxing-cpp/zxing-cpp-1.1.1.ebuild | 12 +++++++++++-
15 1 file changed, 11 insertions(+), 1 deletion(-)
16
17 diff --git a/media-libs/zxing-cpp/zxing-cpp-1.1.1.ebuild b/media-libs/zxing-cpp/zxing-cpp-1.1.1.ebuild
18 index f31cea8e8ba..cd5a24f0ab9 100644
19 --- a/media-libs/zxing-cpp/zxing-cpp-1.1.1.ebuild
20 +++ b/media-libs/zxing-cpp/zxing-cpp-1.1.1.ebuild
21 @@ -12,4 +12,14 @@ SRC_URI="https://github.com/nu-book/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
22 LICENSE="Apache-2.0"
23 SLOT="0"
24 KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
25 -IUSE=""
26 +IUSE="test"
27 +
28 +RESTRICT="!test? ( test )"
29 +
30 +src_configure() {
31 + local mycmakeargs=(
32 + -DBUILD_EXAMPLES=OFF # nothing is installed
33 + -DBUILD_BLACKBOX_TESTS=$(usex test)
34 + )
35 + cmake_src_configure
36 +}