summaryrefslogtreecommitdiff
path: root/devel/pardiff
diff options
context:
space:
mode:
authorzuntum <zuntum@pkgsrc.org>2001-07-09 09:35:37 +0000
committerzuntum <zuntum@pkgsrc.org>2001-07-09 09:35:37 +0000
commit53bebf081cb2fdbbfe71225a561b042bb21b17a6 (patch)
treecc8e176e521a51734685bb6c0d81b329561b8d4a /devel/pardiff
parent6ce1a5d090bd1b84bf685d35926d07da195e17bc (diff)
downloadpkgsrc-53bebf081cb2fdbbfe71225a561b042bb21b17a6.tar.gz
Initial import of pardiff-0.9.3
pardiff is a program that takes the output of diff and displays it in a parallel (side-by-side) format, emulating the /PARALLEL option on the VMS version of diff. pardiff detects the width of the terminal on which it is running and adjusts its output accordingly.
Diffstat (limited to 'devel/pardiff')
-rw-r--r--devel/pardiff/Makefile15
-rw-r--r--devel/pardiff/patches/patch-aa28
-rw-r--r--devel/pardiff/patches/patch-ab9
-rw-r--r--devel/pardiff/pkg/DESCR6
-rw-r--r--devel/pardiff/pkg/PLIST5
5 files changed, 63 insertions, 0 deletions
diff --git a/devel/pardiff/Makefile b/devel/pardiff/Makefile
new file mode 100644
index 00000000000..d0bec0b97c5
--- /dev/null
+++ b/devel/pardiff/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/07/09 09:35:37 zuntum Exp $
+#
+
+DISTNAME= pardiff-0.9.3
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pardiff/}
+
+MAINTAINER= zuntum@netbsd.org
+HOMEPAGE= http://pardiff.sourceforge.net/
+COMMENT= converts diff output to paralleled (side-by-side) format
+
+USE_BUILDLINK_ONLY= YES
+GNU_CONFIGURE= YES
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/pardiff/patches/patch-aa b/devel/pardiff/patches/patch-aa
new file mode 100644
index 00000000000..6a5324c61c3
--- /dev/null
+++ b/devel/pardiff/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/07/09 09:35:37 zuntum Exp $
+
+--- pardiff/pardiff.c.orig Sat Jul 7 07:54:35 2001
++++ pardiff/pardiff.c
+@@ -23,7 +23,11 @@
+
+ /* include files to determine the width of the output terminal */
+ #include <fcntl.h>
++#ifdef __NetBSD__
++#include <sys/ttycom.h>
++#else
+ #include <termio.h>
++#endif
+
+
+ #else
+@@ -314,7 +318,11 @@
+ * Preprocess lines to get a consistent EOL
+ */
+ if (convertCrlf) {
++#ifndef __NetBSD__
+ line_len = strnlen(nextline, PARDIFF_LINE_BUF_SIZE);
++#else
++ line_len = strlen(nextline);
++#endif
+ if (line_len > 2 && nextline[line_len - 2] == 0xd) {
+ nextline[line_len - 2] = '\n';
+ nextline[line_len - 1] = '\0';
diff --git a/devel/pardiff/patches/patch-ab b/devel/pardiff/patches/patch-ab
new file mode 100644
index 00000000000..ad048275330
--- /dev/null
+++ b/devel/pardiff/patches/patch-ab
@@ -0,0 +1,9 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/07/09 09:35:37 zuntum Exp $
+
+--- pardiff/diffp.orig Sat Jan 8 05:34:47 2000
++++ pardiff/diffp
+@@ -1,2 +1,3 @@
+ #/bin/sh
+-diff $1 $2 | pardiff | ${PAGER:=more}
++PAGER?=more
++diff $1 $2 | pardiff | ${PAGER}
diff --git a/devel/pardiff/pkg/DESCR b/devel/pardiff/pkg/DESCR
new file mode 100644
index 00000000000..f4d63b57e76
--- /dev/null
+++ b/devel/pardiff/pkg/DESCR
@@ -0,0 +1,6 @@
+Pardiff is a program that takes the output of diff and displays it in a
+parallel (side-by-side) format, emulating the /PARALLEL option on the VMS
+version of diff.
+
+Pardiff detects the width of the terminal on which it is running and adjusts
+its output accordingly.
diff --git a/devel/pardiff/pkg/PLIST b/devel/pardiff/pkg/PLIST
new file mode 100644
index 00000000000..95524357e2e
--- /dev/null
+++ b/devel/pardiff/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/09 09:35:37 zuntum Exp $
+bin/diffp
+bin/pardiff
+man/man1/diffp.1
+man/man1/pardiff.1