diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-10 06:19:57 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-10 06:19:57 +0000 |
commit | 30f491533785a455cdfbd05bb57f1f869a8e41bb (patch) | |
tree | 231d01a9349dfa1f56a7235017f5201a7382c652 /kde-frameworks/prison/files | |
parent | a96f1a2ca235a5eb9e7c498636cd1291be76cb09 (diff) |
gentoo auto-resync : 10:01:2023 - 06:19:57
Diffstat (limited to 'kde-frameworks/prison/files')
-rw-r--r-- | kde-frameworks/prison/files/prison-5.99.0-zxing-2.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kde-frameworks/prison/files/prison-5.99.0-zxing-2.patch b/kde-frameworks/prison/files/prison-5.99.0-zxing-2.patch new file mode 100644 index 000000000000..946cf9d1cc34 --- /dev/null +++ b/kde-frameworks/prison/files/prison-5.99.0-zxing-2.patch @@ -0,0 +1,31 @@ +From 14fb6f0a31373b242bdeb18cf9f3a36441bf86b5 Mon Sep 17 00:00:00 2001 +From: Volker Krause <vkrause@kde.org> +Date: Tue, 3 Jan 2023 16:55:59 +0100 +Subject: [PATCH] Add support for ZXing 2.0 + +As far as we are concerned that is source-compatible, so nothing we need +to change here apart from adjusting the build system to accept the new +major version. +--- + CMakeLists.txt | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 365a1c9..961262e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -44,7 +44,10 @@ find_package(Dmtx) + set_package_properties(Dmtx PROPERTIES + PURPOSE "Required for generation of Data Matrix barcodes." + TYPE RECOMMENDED) +-find_package(ZXing 1.2.0) ++find_package(ZXing 2.0) ++if (NOT TARGET ZXing::ZXing) ++ find_package(ZXing 1.2.0) ++endif() + set_package_properties(ZXing PROPERTIES + PURPOSE "Required for generation of PDF417 barcodes and for scanning of barcodes from live video feed." + TYPE RECOMMENDED) +-- +GitLab + |