zxing-cpp: update to 2.0.0. The most visible change from the client perspective is the removal of all formerly deprecated API, (almost) completing the 'cleanup'. Since I was way too slow with this release to implement a 'cleanish' SemVer release as discussed in #333, I decided to release this 2.0 with SONAME 3. A 3.0 release might bring the major version number back in sync with the SONAME. Major Changes switch to UTF8 based API and remove deprecated UTF16 one (Result::text()) remove all API deprecated in 1.4 Adding a wrapper for iOS by @parallaxe in #337 new Aztec detector implementation to support arbitrary rotation and position of the symbol support multi-symbol detection in Aztec detector replace all Qt originated ECI/CharacterSet conversion code with a new implementation provided by @gitlost (libzueci) require c++17 to build library and client code new DecodeHints::textMode() and Result::text(TextMode) API to specify how bytes are rendered into text. HRI (human readable interpretation) is the new default for the TextMode (has been for most cases before, but not all) new DecodeHits::tryInvert() feature to test for inverted symbols (white on black background) Minor Changes deprecate TextUtfEncoding helpers, not required anymore with UTF8 APIs for both reader and writer support for multi-symbol and arbitrary position detection of DataMatrix symbols when library is built with c++20 Include version number of QR Code and DataMatrix in Result by @markusfisch in #396 reduce size of Result struct by about a third cleanup all license related files (see removal of the Qt code above) update links and comments to refer to new github.com/zxing-cpp/zxing-cpp home improved Code128 decoder for over/underexposed images support python 3.11 a whole bunch of fixes and minor improvements all over the placediff -r1.8 -r1.9 pkgsrc/graphics/zxing-cpp/Makefile
(wiz)
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | # $NetBSD: Makefile,v 1.8 2023/01/24 18:36:28 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.9 2023/04/26 19:06:36 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= zxing-cpp-1.4.0 | 3 | DISTNAME= zxing-cpp-2.0.0 | |
4 | CATEGORIES= graphics | 4 | CATEGORIES= graphics | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=nu-book/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=nu-book/} | |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | 6 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
7 | 7 | |||
8 | MAINTAINER= ryoon@NetBSD.org | 8 | MAINTAINER= ryoon@NetBSD.org | |
9 | HOMEPAGE= https://github.com/nu-book/zxing-cpp/ | 9 | HOMEPAGE= https://github.com/nu-book/zxing-cpp/ | |
10 | COMMENT= 1D/2D barcode reader/writer library in C++ | 10 | COMMENT= 1D/2D barcode reader/writer library in C++ | |
11 | LICENSE= apache-2.0 | 11 | LICENSE= apache-2.0 | |
12 | 12 | |||
13 | USE_LANGUAGES= c++11 | 13 | USE_LANGUAGES= c c++11 | |
14 | 14 | |||
15 | CMAKE_ARGS+= -DBUILD_EXAMPLES=OFF | 15 | CMAKE_ARGS+= -DBUILD_EXAMPLES=OFF | |
16 | # Blackbox tests target pulls fmtlib with git command. | 16 | # Blackbox tests target pulls fmtlib with git command. | |
17 | CMAKE_ARGS+= -DBUILD_BLACKBOX_TESTS=OFF | 17 | CMAKE_ARGS+= -DBUILD_BLACKBOX_TESTS=OFF | |
18 | 18 | |||
19 | PKGCONFIG_OVERRIDE+= zxing.pc.in | 19 | PKGCONFIG_OVERRIDE+= zxing.pc.in | |
20 | 20 | |||
21 | # Install private header file to fix build failure of misc/libreoffice-7.3.4.2. | 21 | # Install private header file to fix build failure of misc/libreoffice-7.3.4.2. | |
22 | post-install: | 22 | post-install: | |
23 | ${INSTALL_DATA} ${WRKSRC}/core/src/BitArray.h \ | 23 | ${INSTALL_DATA} ${WRKSRC}/core/src/BitArray.h \ | |
24 | ${DESTDIR}${PREFIX}/include/ZXing | 24 | ${DESTDIR}${PREFIX}/include/ZXing | |
25 | 25 | |||
26 | .include "../../devel/cmake/build.mk" | 26 | .include "../../devel/cmake/build.mk" |
@@ -1,35 +1,34 @@ | @@ -1,35 +1,34 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.5 2022/08/24 12:45:42 ryoon Exp $ | 1 | @comment $NetBSD: PLIST,v 1.6 2023/04/26 19:06:36 wiz Exp $ | |
2 | include/ZXing/BarcodeFormat.h | 2 | include/ZXing/BarcodeFormat.h | |
3 | include/ZXing/BitArray.h | 3 | include/ZXing/BitArray.h | |
4 | include/ZXing/BitHacks.h | 4 | include/ZXing/BitHacks.h | |
5 | include/ZXing/BitMatrix.h | 5 | include/ZXing/BitMatrix.h | |
6 | include/ZXing/BitMatrixIO.h | 6 | include/ZXing/BitMatrixIO.h | |
7 | include/ZXing/ByteArray.h | 7 | include/ZXing/ByteArray.h | |
8 | include/ZXing/CharacterSet.h | 8 | include/ZXing/CharacterSet.h | |
9 | include/ZXing/CharacterSetECI.h | |||
10 | include/ZXing/Content.h | 9 | include/ZXing/Content.h | |
11 | include/ZXing/DecodeHints.h | 10 | include/ZXing/DecodeHints.h | |
12 | include/ZXing/DecodeStatus.h | |||
13 | include/ZXing/Error.h | 11 | include/ZXing/Error.h | |
14 | include/ZXing/Flags.h | 12 | include/ZXing/Flags.h | |
15 | include/ZXing/GTIN.h | 13 | include/ZXing/GTIN.h | |
16 | include/ZXing/ImageView.h | 14 | include/ZXing/ImageView.h | |
17 | include/ZXing/Matrix.h | 15 | include/ZXing/Matrix.h | |
18 | include/ZXing/MultiFormatWriter.h | 16 | include/ZXing/MultiFormatWriter.h | |
19 | include/ZXing/Point.h | 17 | include/ZXing/Point.h | |
20 | include/ZXing/Quadrilateral.h | 18 | include/ZXing/Quadrilateral.h | |
19 | include/ZXing/Range.h | |||
21 | include/ZXing/ReadBarcode.h | 20 | include/ZXing/ReadBarcode.h | |
22 | include/ZXing/Result.h | 21 | include/ZXing/Result.h | |
23 | include/ZXing/StructuredAppend.h | 22 | include/ZXing/StructuredAppend.h | |
24 | include/ZXing/TextUtfEncoding.h | 23 | include/ZXing/TextUtfEncoding.h | |
25 | include/ZXing/ZXAlgorithms.h | 24 | include/ZXing/ZXAlgorithms.h | |
26 | include/ZXing/ZXConfig.h | 25 | include/ZXing/ZXConfig.h | |
27 | include/ZXing/ZXVersion.h | 26 | include/ZXing/ZXVersion.h | |
28 | lib/cmake/ZXing/ZXingConfig.cmake | 27 | lib/cmake/ZXing/ZXingConfig.cmake | |
29 | lib/cmake/ZXing/ZXingConfigVersion.cmake | 28 | lib/cmake/ZXing/ZXingConfigVersion.cmake | |
30 | lib/cmake/ZXing/ZXingTargets-release.cmake | 29 | lib/cmake/ZXing/ZXingTargets-release.cmake | |
31 | lib/cmake/ZXing/ZXingTargets.cmake | 30 | lib/cmake/ZXing/ZXingTargets.cmake | |
32 | lib/libZXing.so | 31 | lib/libZXing.so | |
33 | lib/libZXing.so.1 | |||
34 | lib/libZXing.so.${PKGVERSION} | 32 | lib/libZXing.so.${PKGVERSION} | |
33 | lib/libZXing.so.3 | |||
35 | lib/pkgconfig/zxing.pc | 34 | lib/pkgconfig/zxing.pc |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2022/08/24 12:45:42 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.6 2023/04/26 19:06:36 wiz Exp $ | |
2 | 2 | |||
3 | BLAKE2s (zxing-cpp-1.4.0.tar.gz) = e7719a2668dcc79935667eb28bf9b5abfc9eff4612034f11f69045352fad2bc3 | 3 | BLAKE2s (zxing-cpp-2.0.0.tar.gz) = fe4f81c5a35645e114a4237a3320617aa928dd7f2dcecb998965b65f4de8b28c | |
4 | SHA512 (zxing-cpp-1.4.0.tar.gz) = 05c5b9282f13b76fa0897b21e5b73cb7df0c52e62f1a2d9760fe774aa0378fde97f5f9896690b65b28b4b96ba6ad2703bed53ffaf9d3784636d29cbe860d4bad | 4 | SHA512 (zxing-cpp-2.0.0.tar.gz) = fa22164f834a42194eafd0d3e9c09d953233c69843ac6e79c8d6513314be28d8082382b436c379368e687e0eed05cb5e566d2893ec6eb29233a36643904ae083 | |
5 | Size (zxing-cpp-1.4.0.tar.gz) = 1018225 bytes | 5 | Size (zxing-cpp-2.0.0.tar.gz) = 856413 bytes |