summaryrefslogtreecommitdiff
path: root/textproc/sablotron
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2007-01-05 13:48:14 +0000
committerdmcmahill <dmcmahill>2007-01-05 13:48:14 +0000
commit4684ec4329c3533ecdf926f1427a5ccdc0973996 (patch)
treea16b5e53e32bb32bc7646370d00aefd4ca637c28 /textproc/sablotron
parentc47c2c1e60a8ec5d6be421205bea544fe2018016 (diff)
downloadpkgsrc-4684ec4329c3533ecdf926f1427a5ccdc0973996.tar.gz
Fix building this with sun studio compilers. Patch submitted upstream.
Diffstat (limited to 'textproc/sablotron')
-rw-r--r--textproc/sablotron/Makefile4
-rw-r--r--textproc/sablotron/distinfo3
-rw-r--r--textproc/sablotron/patches/patch-aa21
3 files changed, 25 insertions, 3 deletions
diff --git a/textproc/sablotron/Makefile b/textproc/sablotron/Makefile
index 599631725af..c85d7fdcbc3 100644
--- a/textproc/sablotron/Makefile
+++ b/textproc/sablotron/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.38 2006/07/10 07:59:02 rillig Exp $
+# $NetBSD: Makefile,v 1.39 2007/01/05 13:48:14 dmcmahill Exp $
DISTNAME= Sablot-1.0.2
PKGNAME= ${DISTNAME:S/Sablot/sablotron/}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= textproc
MASTER_SITES= http://download-1.gingerall.cz/download/sablot/
diff --git a/textproc/sablotron/distinfo b/textproc/sablotron/distinfo
index cb78566c02a..ccf5c2abd9c 100644
--- a/textproc/sablotron/distinfo
+++ b/textproc/sablotron/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2005/06/06 20:14:43 jwise Exp $
+$NetBSD: distinfo,v 1.12 2007/01/05 13:48:14 dmcmahill Exp $
SHA1 (Sablot-1.0.2.tar.gz) = ac17c9c12077d429c6051df2de09a4ab974d3c58
RMD160 (Sablot-1.0.2.tar.gz) = 314b925c46c17d23ba21507ea56c414264f3581f
Size (Sablot-1.0.2.tar.gz) = 606814 bytes
+SHA1 (patch-aa) = 29f5a97eda642b925c8c5390c3b60706825ac30f
diff --git a/textproc/sablotron/patches/patch-aa b/textproc/sablotron/patches/patch-aa
new file mode 100644
index 00000000000..d3f49cc2542
--- /dev/null
+++ b/textproc/sablotron/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.4 2007/01/05 13:48:14 dmcmahill Exp $
+
+needed to build with sun studio compilers.
+Patch submitted to sab-bugs at gingerall dot com
+on 2007-01-05
+
+--- src/command/sabcmd.cpp.orig 2004-12-30 04:30:44.000000000 -0500
++++ src/command/sabcmd.cpp
+@@ -211,8 +211,10 @@ void saberrn(const char *msg, int num)
+
+ int chrpos(const char *text, char c)
+ {
+- char *p = strchr(text, c);
+- return p ? (int)(p - text) : -1;
++ const char *p;
++
++ p = strchr(text, (int) c);
++ return (p != NULL) ? (int)(p - text) : -1;
+ }
+
+ void freefirst(char **array)