commit: 6a183d9b4ac9f17f03aca3e82fa6805520259877 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Sat Feb 22 16:57:17 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Feb 22 20:51:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a183d9b
media-libs/zxing-cpp: add 2.3.0 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/40706 Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/zxing-cpp/Manifest | 2 + media-libs/zxing-cpp/metadata.xml | 3 ++ media-libs/zxing-cpp/zxing-cpp-2.3.0.ebuild | 58 ++++++++++++++++++++++++++++ profiles/arch/arm/package.use.mask | 4 ++ profiles/arch/arm64/package.use.mask | 4 ++ profiles/arch/loong/package.use.mask | 4 ++ profiles/arch/powerpc/ppc64/package.use.mask | 4 ++ profiles/arch/riscv/package.use.mask | 4 ++ profiles/arch/x86/package.use.mask | 4 ++ 9 files changed, 87 insertions(+) diff --git a/media-libs/zxing-cpp/Manifest b/media-libs/zxing-cpp/Manifest index e5d66734f685..ac9ae2e59381 100644 --- a/media-libs/zxing-cpp/Manifest +++ b/media-libs/zxing-cpp/Manifest @@ -1,2 +1,4 @@ DIST zxing-cpp-2.2.1-test-samples.tar.gz 97082308 BLAKE2B bcea839f766e5696bcaab58d1483e43ef3d4b504979ea4db3114236853db92c64f7079ed91977a158cda745d8a08c0c249bf1b10382daf5a9816bf4280b95092 SHA512 4de268d36a337d233a60eed477e8421294d42f357534f21aba9574ec929809a4666fe7a55e3b3ac1518460aedfbb0d615659cc0a170e3685790745066339b064 DIST zxing-cpp-2.2.1.tar.gz 891055 BLAKE2B c6a3343cd0389d930e83dd9db4d6aeca6d4dda715c22c0b10dd76460e9d55bdd8e994c2ac24ba5d5a4f5e2069fcb035b2e4651a380b6b39bcce4b90d0c754df8 SHA512 f1de8df783061a152a18cd9102ac0c579c40c76ab4a5ba9f30bcb8ddb532f3fac08736840a631adbf7c30a7fa00ce8d65625c8cd695288620601708e8f256a53 +DIST zxing-cpp-2.3.0-test-samples.tar.gz 97053504 BLAKE2B f8b3ca418885731bbd0c551b7c061e9ff8d7ac20cb4464abb0c2496f1235fed78826420f139666e73af53612ab87dc551f228e1e05c934b4a08a22c3da069def SHA512 6c2bbad7a6229075f9cb0ccaa4f2bcddbf586baf15a2fb71a10fbddc6e591a33d08c737149c0688dd64c5b0fff1328bbd4975eba0e6ffd56b12d61f47469ae4a +DIST zxing-cpp-2.3.0.tar.gz 1008541 BLAKE2B a0c94e1c276759e032695918f1d177e32b3ac4d1c60085872210ef9c97f2cc0c95a54972d18ec971bc6733ea9531be15d5155011ff8893e39706acd8d5c9a7bd SHA512 be1c60a6b433c18f8dab56619553023370bfd3eddf49b0e16548466e1ebc2f1f37b48e0b36c2e74296a7274c4f0117d7052f1ffd7d1223d23e493451a11b4a80 diff --git a/media-libs/zxing-cpp/metadata.xml b/media-libs/zxing-cpp/metadata.xml index fb6ec227ee86..702d960e514f 100644 --- a/media-libs/zxing-cpp/metadata.xml +++ b/media-libs/zxing-cpp/metadata.xml @@ -5,6 +5,9 @@ <email>[email protected]</email> <name>Gentoo KDE Project</name> </maintainer> + <use> + <flag name="experimental">Enable experimental features via <pkg>media-libs/zint</pkg></flag> + </use> <upstream> <remote-id type="github">zxing-cpp/zxing-cpp</remote-id> </upstream> diff --git a/media-libs/zxing-cpp/zxing-cpp-2.3.0.ebuild b/media-libs/zxing-cpp/zxing-cpp-2.3.0.ebuild new file mode 100644 index 000000000000..8ba734404437 --- /dev/null +++ b/media-libs/zxing-cpp/zxing-cpp-2.3.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="C++ Multi-format 1D/2D barcode image processing library" +HOMEPAGE="https://github.com/zxing-cpp/zxing-cpp" +SRC_URI=" + https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( + https://github.com/zxing-cpp/zxing-cpp/releases/download/v${PV}/test_samples.tar.gz + -> ${P}-test-samples.tar.gz + ) +" + +LICENSE="Apache-2.0" +SLOT="0/3" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="experimental test" +RESTRICT="!test? ( test )" + +RDEPEND=" + experimental? ( + media-libs/zint:= + ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-cpp/gtest + dev-libs/libfmt + dev-libs/stb + ) +" + +src_prepare() { + if use test ; then + ln -s "${WORKDIR}"/test/samples "${S}"/test/samples || die + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DZXING_USE_BUNDLED_ZINT=OFF + -DZXING_EXAMPLES=OFF # nothing is installed + -DZXING_BLACKBOX_TESTS=$(usex test) + -DZXING_UNIT_TESTS=$(usex test) + -DZXING_DEPENDENCIES=LOCAL # force find_package as REQUIRED + # https://github.com/zxing-cpp/zxing-cpp/blob/v2.3.0/README.md#supported-formats + -DZXING_WRITERS=$(usex experimental BOTH OLD) + -DZXING_EXPERIMENTAL_API=$(usex experimental) + ) + cmake_src_configure +} diff --git a/profiles/arch/arm/package.use.mask b/profiles/arch/arm/package.use.mask index d525eba1917c..4c3eb494e3e1 100644 --- a/profiles/arch/arm/package.use.mask +++ b/profiles/arch/arm/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate <[email protected]> (2025-02-22) +# media-libs/zint is not keyworded here +media-libs/zxing-cpp experimental + # Sam James <[email protected]> (2025-01-04) # kde-plasma/kde-cli-tools not keyworded here x11-misc/xdg-utils plasma diff --git a/profiles/arch/arm64/package.use.mask b/profiles/arch/arm64/package.use.mask index f993edd9639e..ff3c8d387d62 100644 --- a/profiles/arch/arm64/package.use.mask +++ b/profiles/arch/arm64/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate <[email protected]> (2025-02-22) +# media-libs/zint is not keyworded here +media-libs/zxing-cpp experimental + # Nowa Ammerlaan <[email protected]> (2025-02-03) # QtWebView is available here dev-python/pyside -webview diff --git a/profiles/arch/loong/package.use.mask b/profiles/arch/loong/package.use.mask index 64a09e7b6990..93e9d7a25cd4 100644 --- a/profiles/arch/loong/package.use.mask +++ b/profiles/arch/loong/package.use.mask @@ -1,6 +1,10 @@ # Copyright 2022-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate <[email protected]> (2025-02-22) +# media-libs/zint is not keyworded here +media-libs/zxing-cpp experimental + # WANG Xuerui <[email protected]> (2025-01-16) # tests require qtwebengine which is unavailable dev-python/qtconsole test diff --git a/profiles/arch/powerpc/ppc64/package.use.mask b/profiles/arch/powerpc/ppc64/package.use.mask index 1dfc6ec8ee41..63724affe507 100644 --- a/profiles/arch/powerpc/ppc64/package.use.mask +++ b/profiles/arch/powerpc/ppc64/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate <[email protected]> (2025-02-22) +# media-libs/zint is not keyworded here +media-libs/zxing-cpp experimental + # Michał Górny <[email protected]> (2024-12-24) # OpenMP offloading is supported on 64-bit architectures only. llvm-core/clang-runtime -offload diff --git a/profiles/arch/riscv/package.use.mask b/profiles/arch/riscv/package.use.mask index 8b7df2363a59..07bc3e7174d1 100644 --- a/profiles/arch/riscv/package.use.mask +++ b/profiles/arch/riscv/package.use.mask @@ -1,6 +1,10 @@ # Copyright 2019-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate <[email protected]> (2025-02-22) +# media-libs/zint is not keyworded here +media-libs/zxing-cpp experimental + # Alexey Shvetsov <[email protected]> (2024-11-21) # sci-libs/caffe2 is not keyworded on riscv sci-chemistry/gromacs nnpot diff --git a/profiles/arch/x86/package.use.mask b/profiles/arch/x86/package.use.mask index 03fdfd1167e8..50737a610007 100644 --- a/profiles/arch/x86/package.use.mask +++ b/profiles/arch/x86/package.use.mask @@ -1,6 +1,10 @@ # Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# Alfred Wingate <[email protected]> (2025-02-22) +# media-libs/zint is not keyworded here +media-libs/zxing-cpp experimental + # Nowa Ammerlaan <[email protected]> (2025-02-03) # QtSerialBus is available here dev-python/pyside -serialbus
