Wed Apr 26 19:06:36 2023 UTC ()
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 place


(wiz)
diff -r1.8 -r1.9 pkgsrc/graphics/zxing-cpp/Makefile
diff -r1.5 -r1.6 pkgsrc/graphics/zxing-cpp/PLIST
diff -r1.5 -r1.6 pkgsrc/graphics/zxing-cpp/distinfo

cvs diff -r1.8 -r1.9 pkgsrc/graphics/zxing-cpp/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/zxing-cpp/Makefile 2023/01/24 18:36:28 1.8
+++ pkgsrc/graphics/zxing-cpp/Makefile 2023/04/26 19:06:36 1.9
@@ -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
3DISTNAME= zxing-cpp-1.4.0 3DISTNAME= zxing-cpp-2.0.0
4CATEGORIES= graphics 4CATEGORIES= graphics
5MASTER_SITES= ${MASTER_SITE_GITHUB:=nu-book/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=nu-book/}
6GITHUB_TAG= v${PKGVERSION_NOREV} 6GITHUB_TAG= v${PKGVERSION_NOREV}
7 7
8MAINTAINER= ryoon@NetBSD.org 8MAINTAINER= ryoon@NetBSD.org
9HOMEPAGE= https://github.com/nu-book/zxing-cpp/ 9HOMEPAGE= https://github.com/nu-book/zxing-cpp/
10COMMENT= 1D/2D barcode reader/writer library in C++ 10COMMENT= 1D/2D barcode reader/writer library in C++
11LICENSE= apache-2.0 11LICENSE= apache-2.0
12 12
13USE_LANGUAGES= c++11 13USE_LANGUAGES= c c++11
14 14
15CMAKE_ARGS+= -DBUILD_EXAMPLES=OFF 15CMAKE_ARGS+= -DBUILD_EXAMPLES=OFF
16# Blackbox tests target pulls fmtlib with git command. 16# Blackbox tests target pulls fmtlib with git command.
17CMAKE_ARGS+= -DBUILD_BLACKBOX_TESTS=OFF 17CMAKE_ARGS+= -DBUILD_BLACKBOX_TESTS=OFF
18 18
19PKGCONFIG_OVERRIDE+= zxing.pc.in 19PKGCONFIG_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.
22post-install: 22post-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"

cvs diff -r1.5 -r1.6 pkgsrc/graphics/zxing-cpp/PLIST (expand / switch to unified diff)

--- pkgsrc/graphics/zxing-cpp/PLIST 2022/08/24 12:45:42 1.5
+++ pkgsrc/graphics/zxing-cpp/PLIST 2023/04/26 19:06:36 1.6
@@ -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 $
2include/ZXing/BarcodeFormat.h 2include/ZXing/BarcodeFormat.h
3include/ZXing/BitArray.h 3include/ZXing/BitArray.h
4include/ZXing/BitHacks.h 4include/ZXing/BitHacks.h
5include/ZXing/BitMatrix.h 5include/ZXing/BitMatrix.h
6include/ZXing/BitMatrixIO.h 6include/ZXing/BitMatrixIO.h
7include/ZXing/ByteArray.h 7include/ZXing/ByteArray.h
8include/ZXing/CharacterSet.h 8include/ZXing/CharacterSet.h
9include/ZXing/CharacterSetECI.h 
10include/ZXing/Content.h 9include/ZXing/Content.h
11include/ZXing/DecodeHints.h 10include/ZXing/DecodeHints.h
12include/ZXing/DecodeStatus.h 
13include/ZXing/Error.h 11include/ZXing/Error.h
14include/ZXing/Flags.h 12include/ZXing/Flags.h
15include/ZXing/GTIN.h 13include/ZXing/GTIN.h
16include/ZXing/ImageView.h 14include/ZXing/ImageView.h
17include/ZXing/Matrix.h 15include/ZXing/Matrix.h
18include/ZXing/MultiFormatWriter.h 16include/ZXing/MultiFormatWriter.h
19include/ZXing/Point.h 17include/ZXing/Point.h
20include/ZXing/Quadrilateral.h 18include/ZXing/Quadrilateral.h
 19include/ZXing/Range.h
21include/ZXing/ReadBarcode.h 20include/ZXing/ReadBarcode.h
22include/ZXing/Result.h 21include/ZXing/Result.h
23include/ZXing/StructuredAppend.h 22include/ZXing/StructuredAppend.h
24include/ZXing/TextUtfEncoding.h 23include/ZXing/TextUtfEncoding.h
25include/ZXing/ZXAlgorithms.h 24include/ZXing/ZXAlgorithms.h
26include/ZXing/ZXConfig.h 25include/ZXing/ZXConfig.h
27include/ZXing/ZXVersion.h 26include/ZXing/ZXVersion.h
28lib/cmake/ZXing/ZXingConfig.cmake 27lib/cmake/ZXing/ZXingConfig.cmake
29lib/cmake/ZXing/ZXingConfigVersion.cmake 28lib/cmake/ZXing/ZXingConfigVersion.cmake
30lib/cmake/ZXing/ZXingTargets-release.cmake 29lib/cmake/ZXing/ZXingTargets-release.cmake
31lib/cmake/ZXing/ZXingTargets.cmake 30lib/cmake/ZXing/ZXingTargets.cmake
32lib/libZXing.so 31lib/libZXing.so
33lib/libZXing.so.1 
34lib/libZXing.so.${PKGVERSION} 32lib/libZXing.so.${PKGVERSION}
 33lib/libZXing.so.3
35lib/pkgconfig/zxing.pc 34lib/pkgconfig/zxing.pc

cvs diff -r1.5 -r1.6 pkgsrc/graphics/zxing-cpp/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/zxing-cpp/distinfo 2022/08/24 12:45:42 1.5
+++ pkgsrc/graphics/zxing-cpp/distinfo 2023/04/26 19:06:36 1.6
@@ -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
3BLAKE2s (zxing-cpp-1.4.0.tar.gz) = e7719a2668dcc79935667eb28bf9b5abfc9eff4612034f11f69045352fad2bc3 3BLAKE2s (zxing-cpp-2.0.0.tar.gz) = fe4f81c5a35645e114a4237a3320617aa928dd7f2dcecb998965b65f4de8b28c
4SHA512 (zxing-cpp-1.4.0.tar.gz) = 05c5b9282f13b76fa0897b21e5b73cb7df0c52e62f1a2d9760fe774aa0378fde97f5f9896690b65b28b4b96ba6ad2703bed53ffaf9d3784636d29cbe860d4bad 4SHA512 (zxing-cpp-2.0.0.tar.gz) = fa22164f834a42194eafd0d3e9c09d953233c69843ac6e79c8d6513314be28d8082382b436c379368e687e0eed05cb5e566d2893ec6eb29233a36643904ae083
5Size (zxing-cpp-1.4.0.tar.gz) = 1018225 bytes 5Size (zxing-cpp-2.0.0.tar.gz) = 856413 bytes