mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
media-libs/zxing-cpp: add USE=tools to install example binaries
USE=tools now installs ZXingReader and ZXingWriter. Closes: https://bugs.gentoo.org/966189 Signed-off-by: Louis Sautier <sbraz@gentoo.org> Part-of: https://codeberg.org/gentoo/gentoo/pulls/596 Merges: https://codeberg.org/gentoo/gentoo/pulls/596
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="experimental">Enable experimental features via <pkg>media-libs/zint</pkg></flag>
|
||||
<flag name="tools">Install ZXingReader and ZXingWriter binaries</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">zxing-cpp/zxing-cpp</remote-id>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -18,7 +18,7 @@ SRC_URI="
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/3"
|
||||
KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86"
|
||||
IUSE="experimental test"
|
||||
IUSE="experimental test tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
@@ -33,6 +33,9 @@ DEPEND="
|
||||
dev-libs/libfmt
|
||||
dev-libs/stb
|
||||
)
|
||||
tools? (
|
||||
dev-libs/stb
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
@@ -50,7 +53,8 @@ src_prepare() {
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DZXING_USE_BUNDLED_ZINT=OFF
|
||||
-DZXING_EXAMPLES=OFF # nothing is installed
|
||||
# Build and install ZXingReader and ZXingWriter
|
||||
-DZXING_EXAMPLES=$(usex tools)
|
||||
-DZXING_BLACKBOX_TESTS=$(usex test)
|
||||
-DZXING_UNIT_TESTS=$(usex test)
|
||||
-DZXING_DEPENDENCIES=LOCAL # force find_package as REQUIRED
|
||||
|
||||
@@ -20,7 +20,7 @@ S="${WORKDIR}/${MY_P}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/4"
|
||||
KEYWORDS=""
|
||||
IUSE="test"
|
||||
IUSE="test tools"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND=">=media-libs/zint-2.16.0:="
|
||||
@@ -43,7 +43,8 @@ src_prepare() {
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DZXING_DEPENDENCIES=LOCAL # force find_package as REQUIRED
|
||||
-DZXING_EXAMPLES=OFF # nothing is installed
|
||||
# Build and install ZXingReader and ZXingWriter
|
||||
-DZXING_EXAMPLES=$(usex tools)
|
||||
-DZXING_USE_BUNDLED_ZINT=OFF
|
||||
-DZXING_WRITERS=BOTH # should be kept on until revdeps are ported away from OLD
|
||||
-DZXING_BLACKBOX_TESTS=$(usex test)
|
||||
|
||||
Reference in New Issue
Block a user