summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-03-26 21:51:11 +0000
committerjoerg <joerg@pkgsrc.org>2020-03-26 21:51:11 +0000
commit33ff60c6bee0096682ec924fb6eae9b82b393117 (patch)
tree9b38745ff9505dab73777b721701ff03ff411d29 /graphics
parente691075cb457209aec182012b38804b034c068e7 (diff)
downloadpkgsrc-33ff60c6bee0096682ec924fb6eae9b82b393117.tar.gz
Fix portability of test case.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/zbar/distinfo3
-rw-r--r--graphics/zbar/patches/patch-test_test__examples.sh.in72
2 files changed, 74 insertions, 1 deletions
diff --git a/graphics/zbar/distinfo b/graphics/zbar/distinfo
index 8f7f701f4a3..fc5a846e5f9 100644
--- a/graphics/zbar/distinfo
+++ b/graphics/zbar/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2019/12/04 11:17:32 leot Exp $
+$NetBSD: distinfo,v 1.2 2020/03/26 21:51:11 joerg Exp $
SHA1 (zbar-0.23.tar.bz2) = 11a1d3f1aa8ef905fe16d88347a191909705d7ab
RMD160 (zbar-0.23.tar.bz2) = 59ecd5c78fa91f6951a129377b4fa477307676bb
@@ -6,3 +6,4 @@ SHA512 (zbar-0.23.tar.bz2) = 7eef2ee99760edd693ecc12a36e04b71a156b93b4c1977ca4f6
Size (zbar-0.23.tar.bz2) = 1168183 bytes
SHA1 (patch-configure) = 7cbc332aae614096b4dcc76af0dd831284639fcc
SHA1 (patch-gtk_Makefile.in) = bf32ac312d0d00ed7ac152ddd849dae0fc681e74
+SHA1 (patch-test_test__examples.sh.in) = d8a91cf9f8d619723825d6b50c26e781b5411a43
diff --git a/graphics/zbar/patches/patch-test_test__examples.sh.in b/graphics/zbar/patches/patch-test_test__examples.sh.in
new file mode 100644
index 00000000000..129fc2ced25
--- /dev/null
+++ b/graphics/zbar/patches/patch-test_test__examples.sh.in
@@ -0,0 +1,72 @@
+$NetBSD: patch-test_test__examples.sh.in,v 1.1 2020/03/26 21:51:11 joerg Exp $
+
+--- test/test_examples.sh.in.orig 2020-03-26 11:48:50.144837043 +0000
++++ test/test_examples.sh.in
+@@ -31,28 +31,28 @@ test()
+ fi
+ }
+
+-if [ "@ENABLE_CODE128@" == "1" ]; then
++if [ "@ENABLE_CODE128@" = "1" ]; then
+ test code-128.png
+ fi
+
+-if [ "@ENABLE_CODE93@" == "1" ]; then
++if [ "@ENABLE_CODE93@" = "1" ]; then
+ test code-93.png
+ fi
+
+-if [ "@ENABLE_CODE39@" == "1" ]; then
++if [ "@ENABLE_CODE39@" = "1" ]; then
+ test code-39.png
+ fi
+
+-if [ "@ENABLE_CODABAR@" == "1" ]; then
++if [ "@ENABLE_CODABAR@" = "1" ]; then
+ test codabar.png
+ fi
+
+-if [ "@ENABLE_DATABAR@" == "1" ]; then
++if [ "@ENABLE_DATABAR@" = "1" ]; then
+ test databar.png
+ test databar-exp.png
+ fi
+
+-if [ "@ENABLE_EAN@" == "1" ]; then
++if [ "@ENABLE_EAN@" = "1" ]; then
+ 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
+ test -Supca.enable code-upc-a.png
+ fi
+
+-if [ "@ENABLE_I25@" == "1" ]; then
++if [ "@ENABLE_I25@" = "1" ]; then
+ test i2-5.png
+ fi
+
+-if [ "@ENABLE_QRCODE@" == "1" ]; then
++if [ "@ENABLE_QRCODE@" = "1" ]; then
+ test qr-code.png
+ test -Stest-inverted qr-code-inverted.png
+ fi
+
+-if [ "@ENABLE_SQCODE@" == "1" ]; then
++if [ "@ENABLE_SQCODE@" = "1" ]; then
+ test sqcode1-generated.png
+ test sqcode1-scanned.png
+ fi
+
+ # The pdf417 code is incomplete: it doesn't output any results
+ #
+-#if [ "@ENABLE_PDF417@" == "1" ]; then
++#if [ "@ENABLE_PDF417@" = "1" ]; then
+ # test code-pdf417.png
+ #fi
+
+-if [ "$ERR" == "" ]; then
++if [ "$ERR" = "" ]; then
+ echo "zbarimg PASSED."
+ else
+ exit 1