summaryrefslogtreecommitdiff
path: root/graphics/graphviz
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2020-03-13 15:16:00 +0000
committertnn <tnn@pkgsrc.org>2020-03-13 15:16:00 +0000
commit3985a32914ddd70efd406c596f459316df5faa9a (patch)
treecd498b7f0d50983e6fa46543d0767a4fd672364a /graphics/graphviz
parent07a9281689e08ebe565249997360356e523f1d51 (diff)
downloadpkgsrc-3985a32914ddd70efd406c596f459316df5faa9a.tar.gz
graphviz: fix shell portability issues
Diffstat (limited to 'graphics/graphviz')
-rw-r--r--graphics/graphviz/Makefile5
-rw-r--r--graphics/graphviz/distinfo3
-rw-r--r--graphics/graphviz/patches/patch-cmd_gvmap_gvmap.sh39
3 files changed, 44 insertions, 3 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
index 7068ca952f1..09945f9c999 100644
--- a/graphics/graphviz/Makefile
+++ b/graphics/graphviz/Makefile
@@ -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 @@ COMMENT= Graph Drawing Programs from AT&T Research and Lucent Bell Labs
LICENSE= epl-v1.0
CHECK_FILES_SKIP+= ${PREFIX}/lib/graphviz/config6
+CHECK_PORTABILITY_SKIP+=windows/*
PRIVILEGED_STAGES+= clean
diff --git a/graphics/graphviz/distinfo b/graphics/graphviz/distinfo
index d8dac3b6a98..22a74f295b6 100644
--- a/graphics/graphviz/distinfo
+++ b/graphics/graphviz/distinfo
@@ -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 --git a/graphics/graphviz/patches/patch-cmd_gvmap_gvmap.sh b/graphics/graphviz/patches/patch-cmd_gvmap_gvmap.sh
new file mode 100644
index 00000000000..829432db473
--- /dev/null
+++ b/graphics/graphviz/patches/patch-cmd_gvmap_gvmap.sh
@@ -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