Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/zbar zbar: Update to 0.23.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3203faf8cfce
branches:  trunk
changeset: 434661:3203faf8cfce
user:      leot <leot%pkgsrc.org@localhost>
date:      Sat Jun 20 10:42:42 2020 +0000

description:
zbar: Update to 0.23.1

Changes:
0.23.1
------
  * Add i18n translation support and add a pt_BR translation
  * Change default to autodetect python and gtk versions
  * Improve tests and builds on travisCI
  * Some documentation updates
  * Add support for binary data extraction
  * Add support for raw decoding without charset conversions
  * Add one shot scanning mode
  * Improved OSX and iphone support
  * Fix help messages
  * Fix some makefile issues
  * Fix error detection in video4linux read
  * Fix pkgconfig for zbar-qt5
  * Fix a double-free condition

diffstat:

 graphics/zbar/Makefile                                |    7 +-
 graphics/zbar/distinfo                                |   14 +-
 graphics/zbar/patches/patch-configure                 |  123 ++---------------
 graphics/zbar/patches/patch-test_test__examples.sh.in |    9 +-
 4 files changed, 30 insertions(+), 123 deletions(-)

diffs (236 lines):

diff -r ef0a7d52e367 -r 3203faf8cfce graphics/zbar/Makefile
--- a/graphics/zbar/Makefile    Sat Jun 20 09:47:55 2020 +0000
+++ b/graphics/zbar/Makefile    Sat Jun 20 10:42:42 2020 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2020/06/02 08:24:08 adam Exp $
+# $NetBSD: Makefile,v 1.8 2020/06/20 10:42:42 leot Exp $
 
-DISTNAME=      zbar-0.23
-PKGREVISION=   4
+DISTNAME=      zbar-0.23.1
 CATEGORIES=    graphics
 MASTER_SITES=  https://linuxtv.org/downloads/zbar/
 EXTRACT_SUFX=  .tar.bz2
@@ -16,6 +15,7 @@
 USE_TOOLS+=    pkg-config
 
 CONFIGURE_ARGS+=       --with-jpeg
+CONFIGURE_ARGS+=       --disable-nls
 CONFIGURE_ARGS+=       --disable-video
 CONFIGURE_ARGS+=       --without-gtk
 CONFIGURE_ARGS+=       --without-python
@@ -23,7 +23,6 @@
 CONFIGURE_ARGS+=       --without-qt
 
 PKGCONFIG_OVERRIDE+=   zbar-gtk.pc.in
-PKGCONFIG_OVERRIDE+=   zbar-qt.pc.in
 PKGCONFIG_OVERRIDE+=   zbar.pc.in
 
 .include "options.mk"
diff -r ef0a7d52e367 -r 3203faf8cfce graphics/zbar/distinfo
--- a/graphics/zbar/distinfo    Sat Jun 20 09:47:55 2020 +0000
+++ b/graphics/zbar/distinfo    Sat Jun 20 10:42:42 2020 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.2 2020/03/26 21:51:11 joerg Exp $
+$NetBSD: distinfo,v 1.3 2020/06/20 10:42:42 leot Exp $
 
-SHA1 (zbar-0.23.tar.bz2) = 11a1d3f1aa8ef905fe16d88347a191909705d7ab
-RMD160 (zbar-0.23.tar.bz2) = 59ecd5c78fa91f6951a129377b4fa477307676bb
-SHA512 (zbar-0.23.tar.bz2) = 7eef2ee99760edd693ecc12a36e04b71a156b93b4c1977ca4f6da103a955284cf640b55adb185477e1d4cc65345bb01608ed9528f6518abb514ccbc58e5d350b
-Size (zbar-0.23.tar.bz2) = 1168183 bytes
-SHA1 (patch-configure) = 7cbc332aae614096b4dcc76af0dd831284639fcc
+SHA1 (zbar-0.23.1.tar.bz2) = 6a047e29895dd9248cc3dbac6fe0ac454d86f45b
+RMD160 (zbar-0.23.1.tar.bz2) = d4a8f17d7bc5874677c5bc301028b2fd236f221c
+SHA512 (zbar-0.23.1.tar.bz2) = e27765d380daa907b50817f4efa9b16a906f01ddb4ad7d7fd4a5193582a3fabc5a34d01c5dd8bdeb16cad9ccb62e6d72279294fbdcf8163815394be9722bfba4
+Size (zbar-0.23.1.tar.bz2) = 1195599 bytes
+SHA1 (patch-configure) = 98a156737fd6058ba39f9f7e43cac8c63034beb2
 SHA1 (patch-gtk_Makefile.in) = bf32ac312d0d00ed7ac152ddd849dae0fc681e74
-SHA1 (patch-test_test__examples.sh.in) = d8a91cf9f8d619723825d6b50c26e781b5411a43
+SHA1 (patch-test_test__examples.sh.in) = d5739c5e4670d602b36ac62e7544f25709fc0d61
diff -r ef0a7d52e367 -r 3203faf8cfce graphics/zbar/patches/patch-configure
--- a/graphics/zbar/patches/patch-configure     Sat Jun 20 09:47:55 2020 +0000
+++ b/graphics/zbar/patches/patch-configure     Sat Jun 20 10:42:42 2020 +0000
@@ -1,64 +1,22 @@
-$NetBSD: patch-configure,v 1.1 2019/12/04 11:17:32 leot Exp $
+$NetBSD: patch-configure,v 1.2 2020/06/20 10:42:42 leot Exp $
 
-- Avoid unportable `==' test(1) operator
 - Avoid `${parameter/pattern/string}' bash-ism
 - Only honor `--with-python' configure argument and completely ignore
   possible PYTHON environment variable that could be passed via
   CONFIGURE_ENV by pkgsrc
+- Use standard `=' test(1) operator
 
-`==' unportable test(1) operator commited upstream as
-f326730fff1cb3ea7c98d30f67fc94481468d468.
-
---- configure.orig     2019-05-23 21:12:06.000000000 +0000
+--- configure.orig     2020-04-20 21:13:55.000000000 +0000
 +++ configure
-@@ -21590,7 +21590,7 @@ fi
- 
- 
- 
--if test "x$with_gtk" == "xgtk3" || test "x$with_gtk" == "xauto"; then :
-+if test "x$with_gtk" = "xgtk3" || test "x$with_gtk" = "xauto"; then :
- 
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK3" >&5
-@@ -21693,7 +21693,7 @@ fi
- 
- fi
- 
--if test "x$with_gtk" == "xgtk2" || test "x$with_gtk" == "xauto"; then :
-+if test "x$with_gtk" = "xgtk2" || test "x$with_gtk" = "xauto"; then :
- 
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
-@@ -21844,8 +21844,9 @@ fi
+@@ -23896,6 +23896,7 @@ fi
  
  
  
 +if false; then
  if test -z "$PYTHON"; then :
--  if test "x$with_python" == "xauto"; then :
-+  if test "x$with_python" = "xauto"; then :
+   if test "x$with_python" = "xauto"; then :
    for ac_prog in python3 python2 python
- do
-   # Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -21893,7 +21894,7 @@ done
- test -n "$PYTHON" || PYTHON=":"
- 
- else
--  if test "x$with_python" == "xpython3"; then :
-+  if test "x$with_python" = "xpython3"; then :
-   for ac_prog in python3 python
- do
-   # Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -21941,7 +21942,7 @@ done
- test -n "$PYTHON" || PYTHON=":"
- 
- else
--  if test "x$with_python" == "xpython2"; then :
-+  if test "x$with_python" = "xpython2"; then :
-   for ac_prog in python2 python
- do
-   # Extract the first word of "$ac_prog", so it can be a program name with args.
-@@ -22000,6 +22001,7 @@ else
+@@ -24052,6 +24053,7 @@ else
    with_python="auto"
  
  fi
@@ -66,16 +24,7 @@
  
  if test "x$with_python" != "xno"; then :
  
-@@ -22450,7 +22452,7 @@ fi
- 
- 
- 
--if test "x$with_gir" == "xyes" && test "x$with_gtk" != "xno"; then :
-+if test "x$with_gir" = "xyes" && test "x$with_gtk" != "xno"; then :
- 
- 
- 
-@@ -23002,7 +23004,7 @@ else
+@@ -25064,7 +25066,7 @@ else
  fi
  
  
@@ -84,56 +33,12 @@
  
  # Javah was obsoleted on Java 8 and removed on Java 11. So, we need to
  # look strictly at the $JAVA_HOME in order to avoid mixing different versions
-@@ -23110,7 +23112,7 @@ fi
- done
- test -n "$JAR" || JAR=":"
- 
--if test "x$JAR" == "x:"; then :
-+if test "x$JAR" = "x:"; then :
-   have_java="no"
- fi
- 
-@@ -23163,7 +23165,7 @@ test -n "$JAVA" || JAVA="/bin/false"
- 
- 
+@@ -29146,7 +29148,7 @@ fi
+ echo ""
+ echo "please verify that the detected configuration matches your expectations:"
+ echo "------------------------------------------------------------------------"
+-if test "x$USE_NLS" == "xyes"; then :
++if test "x$USE_NLS" = "xyes"; then :
+   echo    "gettext                $USE_NLS"
  
--if test "x$CLASSPATH" == "x"; then :
-+if test "x$CLASSPATH" = "x"; then :
-   CLASSPATH="."
- fi
- 
-@@ -26981,7 +26985,7 @@ echo "GTK                    --with-gtk=
- echo "GObject introspection  --with-gir=$with_gir"
- echo "Qt                     --with-qt=$with_qt            Qt${QT_VERSION}"
- echo "Java                   --with-java=$with_java"
--if test "x$win32" == "xno"; then :
-+if test "x$win32" = "xno"; then :
-   echo "Dbus                   --with-dbus=$with_dbus"
  fi
- if test "x$have_GM" = "xyes"; then :
-@@ -27012,7 +27016,7 @@ fi
- if test "x$have_GM" = "xyes"; then :
-   echo "        => ImageMagick is preferred, as GraphicsMagick doesn't support https"
- fi
--if test "x$with_gtk" == "xno"; then :
-+if test "x$with_gtk" = "xno"; then :
-   echo "        => GTK support will *NOT* be built"
- fi
- if test "x$with_pygtk2" != "xyes" && test "xPYTHON_VERSION_MAJOR" = "x2"; then :
-@@ -27021,7 +27025,7 @@ fi
- if test "x$with_qt" != "xyes"; then :
-   echo "        => the Qt widget will *NOT* be built"
- fi
--if test "x$with_qt" == "xyes" && test "x$enable_static_qt" == "xyes" ; then :
-+if test "x$with_qt" = "xyes" && test "x$enable_static_qt" = "xyes" ; then :
-   echo "        => Building a static Qt library"
- fi
- if test "x$with_java" != "xyes"; then :
-@@ -27033,6 +27037,6 @@ fi
- #echo "NPAPI Plugin     --with-npapi=$with_npapi"
- #AS_IF([test "x$with_mozilla" != "xyes"],
- #  [echo "       => the Mozilla/Firefox/OpenOffice plugin will *NOT* be built"])
--if test "x$enable_pdf417" == "xyes"; then :
-+if test "x$enable_pdf417" = "xyes"; then :
-   echo "        => the pdf417 code support is incomplete!"
- fi
diff -r ef0a7d52e367 -r 3203faf8cfce graphics/zbar/patches/patch-test_test__examples.sh.in
--- a/graphics/zbar/patches/patch-test_test__examples.sh.in     Sat Jun 20 09:47:55 2020 +0000
+++ b/graphics/zbar/patches/patch-test_test__examples.sh.in     Sat Jun 20 10:42:42 2020 +0000
@@ -1,6 +1,8 @@
-$NetBSD: patch-test_test__examples.sh.in,v 1.1 2020/03/26 21:51:11 joerg Exp $
+$NetBSD: patch-test_test__examples.sh.in,v 1.2 2020/06/20 10:42:42 leot Exp $
 
---- test/test_examples.sh.in.orig      2020-03-26 11:48:50.144837043 +0000
+Use standard `=' test(1) operator.
+
+--- test/test_examples.sh.in.orig      2020-03-13 09:49:04.000000000 +0000
 +++ test/test_examples.sh.in
 @@ -31,28 +31,28 @@ test()
        fi
@@ -37,7 +39,7 @@
          test -Sean2.enable ean-2.png
          test -Sean5.enable ean-5.png
          test ean-8.png
-@@ -62,27 +62,27 @@ if [ "@ENABLE_EAN@" == "1" ]; then
+@@ -62,28 +62,28 @@ if [ "@ENABLE_EAN@" == "1" ]; then
          test -Supca.enable code-upc-a.png
  fi
  
@@ -50,6 +52,7 @@
 +if [ "@ENABLE_QRCODE@" = "1" ]; then
          test qr-code.png
          test -Stest-inverted qr-code-inverted.png
+         test '--raw --oneshot -Sbinary' qr-code-binary.png
  fi
  
 -if [ "@ENABLE_SQCODE@" == "1" ]; then



Home | Main Index | Thread Index | Old Index