pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/graphviz graphviz: fix shell portability issues



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54640dc69fe6
branches:  trunk
changeset: 412932:54640dc69fe6
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Mar 13 15:16:00 2020 +0000

description:
graphviz: fix shell portability issues

diffstat:

 graphics/graphviz/Makefile                         |   5 +-
 graphics/graphviz/distinfo                         |   3 +-
 graphics/graphviz/patches/patch-cmd_gvmap_gvmap.sh |  39 ++++++++++++++++++++++
 3 files changed, 44 insertions(+), 3 deletions(-)

diffs (79 lines):

diff -r 589eac1edc3b -r 54640dc69fe6 graphics/graphviz/Makefile
--- a/graphics/graphviz/Makefile        Fri Mar 13 15:12:41 2020 +0000
+++ b/graphics/graphviz/Makefile        Fri Mar 13 15:16:00 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.211 2020/03/10 22:10:08 wiz Exp $
+# $NetBSD: Makefile,v 1.212 2020/03/13 15:16:00 tnn Exp $
 
 DISTNAME=      graphviz-2.40.1
-PKGREVISION=   45
+PKGREVISION=   46
 CATEGORIES=    graphics
 MASTER_SITES=  http://www.graphviz.org/pub/graphviz/stable/SOURCES/
 
@@ -11,6 +11,7 @@
 LICENSE=       epl-v1.0
 
 CHECK_FILES_SKIP+=     ${PREFIX}/lib/graphviz/config6
+CHECK_PORTABILITY_SKIP+=windows/*
 
 PRIVILEGED_STAGES+=    clean
 
diff -r 589eac1edc3b -r 54640dc69fe6 graphics/graphviz/distinfo
--- a/graphics/graphviz/distinfo        Fri Mar 13 15:12:41 2020 +0000
+++ b/graphics/graphviz/distinfo        Fri Mar 13 15:16:00 2020 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.62 2019/08/17 04:39:05 ryoon Exp $
+$NetBSD: distinfo,v 1.63 2020/03/13 15:16:00 tnn Exp $
 
 SHA1 (graphviz-2.40.1.tar.gz) = 8a44d19bcdb50df1bd8e649de472ebf868468888
 RMD160 (graphviz-2.40.1.tar.gz) = 8fc103fc519e07e9db522ec2f748838571c71acf
 SHA512 (graphviz-2.40.1.tar.gz) = a3f358a7050523a39b91a259563a95925b37853ffec799e571211af5b686d3af42457c937882954482785745d90416b1abd945caf05f8abb52b3876e07aa70f5
 Size (graphviz-2.40.1.tar.gz) = 25633455 bytes
+SHA1 (patch-cmd_gvmap_gvmap.sh) = a6047ffe825cf13271b556ba8c4f3c866d04f5c3
 SHA1 (patch-cmd_lefty_os_unix_io.c) = 48f91c79b97928b54ae24af59a9fea173f34dfe5
 SHA1 (patch-config_config__perl.pl) = 85d535282a819c1055386244f7b520387d0ddbb1
 SHA1 (patch-configure) = 2e541e065a594093f54e47d5a24972367405bec1
diff -r 589eac1edc3b -r 54640dc69fe6 graphics/graphviz/patches/patch-cmd_gvmap_gvmap.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/graphviz/patches/patch-cmd_gvmap_gvmap.sh        Fri Mar 13 15:16:00 2020 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-cmd_gvmap_gvmap.sh,v 1.1 2020/03/13 15:16:00 tnn Exp $
+
+shell portability issues
+
+--- cmd/gvmap/gvmap.sh.orig    2016-08-09 21:02:09.000000000 +0000
++++ cmd/gvmap/gvmap.sh
+@@ -64,7 +64,7 @@ do
+     exit 2
+     ;;
+   \? )
+-    if [[ "$OPTARG" == '?' ]]
++    if [ "$OPTARG" = '?' ]
+     then
+       getopts -a gvmap "$OPTSTR" x '-?'
+       exit 0
+@@ -76,9 +76,9 @@ do
+ done
+ shift $((OPTIND-1))
+ 
+-if [[ $# == 0 ]]
++if [ $# = 0 ]
+ then
+-  if [[ -n $VERBOSE ]]
++  if [ -n $VERBOSE ]
+   then
+     print -u 2 "$LAYOUT -Goverlap=prism $FLAGS1 | gvmap $FLAGS2 | neato -n2 $FLAGS3"
+   fi
+@@ -86,9 +86,9 @@ then
+ else
+   while (( $# > 0 ))
+   do
+-    if [[ -f $1 ]]
++    if [ -f $1 ]
+     then
+-      if [[ -n $VERBOSE ]]
++      if [ -n $VERBOSE ]
+       then
+         print -u 2 "$LAYOUT -Goverlap=prism $FLAGS1 $1 | gvmap $FLAGS2 | neato -n2 $FLAGS3"
+       fi



Home | Main Index | Thread Index | Old Index