summaryrefslogtreecommitdiff
path: root/x11/xp
diff options
context:
space:
mode:
authortron <tron>1999-08-13 19:35:45 +0000
committertron <tron>1999-08-13 19:35:45 +0000
commit014f14263c4e9a71935e5852d092f41ba1ba2570 (patch)
tree8711c3061742ee07f8ebbf58c7125f38a0b8e137 /x11/xp
parent849cdee9ae4e4dab0721d5b35e06e2d3dd3be6c2 (diff)
downloadpkgsrc-014f14263c4e9a71935e5852d092f41ba1ba2570.tar.gz
Import new "xp" package submitted by Julian Coleman in PR pkg/8197:
A fast X11 text file viewer using Athena widgets
Diffstat (limited to 'x11/xp')
-rw-r--r--x11/xp/Makefile11
-rw-r--r--x11/xp/files/md53
-rw-r--r--x11/xp/files/patch-sum4
-rw-r--r--x11/xp/patches/patch-aa32
-rw-r--r--x11/xp/patches/patch-ab23
-rw-r--r--x11/xp/pkg/COMMENT1
-rw-r--r--x11/xp/pkg/DESCR18
-rw-r--r--x11/xp/pkg/PLIST5
8 files changed, 97 insertions, 0 deletions
diff --git a/x11/xp/Makefile b/x11/xp/Makefile
new file mode 100644
index 00000000000..f4f27dbee92
--- /dev/null
+++ b/x11/xp/Makefile
@@ -0,0 +1,11 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $
+
+DISTNAME= xp-1.2b10
+CATEGORIES= x11
+MASTER_SITES= ftp://ftp.ncl.ac.uk/pub/users/ngmt/X11/
+
+MAINTAINER= j.d.coleman@ncl.ac.uk
+
+USE_IMAKE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/xp/files/md5 b/x11/xp/files/md5
new file mode 100644
index 00000000000..646dab86c47
--- /dev/null
+++ b/x11/xp/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $
+
+MD5 (xp-1.2b10.tar.gz) = 56e018e46e3896cb4cc8e99e1a8ae534
diff --git a/x11/xp/files/patch-sum b/x11/xp/files/patch-sum
new file mode 100644
index 00000000000..f6f9ff739a4
--- /dev/null
+++ b/x11/xp/files/patch-sum
@@ -0,0 +1,4 @@
+$NetBSD: patch-sum,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $
+
+MD5 (patch-aa) = 41c33f5f7208571e1856e49518ea9cd3
+MD5 (patch-ab) = 835aa5d8dbfcee9ec99d36b897cdfc63
diff --git a/x11/xp/patches/patch-aa b/x11/xp/patches/patch-aa
new file mode 100644
index 00000000000..6096b24e3af
--- /dev/null
+++ b/x11/xp/patches/patch-aa
@@ -0,0 +1,32 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $
+
+--- Imakefile.orig Thu Feb 11 15:55:09 1999
++++ Imakefile Fri Aug 13 21:30:56 1999
+@@ -1,23 +1,12 @@
+-/* set MKDIRHIER in case you change BINDIR */
+-MKDIRHIER = mkdirhier
+-
+-XPTOP = /usr/local/xp/1.2b10
+-
+-/* where do you want the binary installed */
+-BINDIR = ${XPTOP}/bin
+-
+-/* where do you want the man page installed */
+-MANDIR = ${XPTOP}/man/man1
+-
+-/* where do you want the application defaults file installed */
+-XAPPLOADDIR = ${XPTOP}/lib/app-defaults
+-
+-
+ #ifdef HasVFork
+ VFORK_DEFINES = -DHASVFORK
+ #endif
+
+ #XP_DEFINES= -DNOPUTENV
++
++#if !(defined(SunArchitecture) && OSMajorVersion == 4)
++XP_DEFINES+= -DHAS_STRERROR
++#endif
+
+ DEFINES= $(SIGNAL_DEFINES) $(VFORK_DEFINES) $(XP_DEFINES)
+
diff --git a/x11/xp/patches/patch-ab b/x11/xp/patches/patch-ab
new file mode 100644
index 00000000000..2216b2f5cef
--- /dev/null
+++ b/x11/xp/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $
+
+--- utils.c.orig Thu Feb 11 13:44:15 1999
++++ utils.c Fri Aug 13 21:30:56 1999
+@@ -1,13 +1,18 @@
+ #include <errno.h>
++#include <string.h>
+ #define NULL 0
+
+
+ char *
+ uerror() {
++#ifdef HAS_STRERROR
++ return strerror(errno);
++#else
+ extern int sys_nerr;
+ extern char *sys_errlist[];
+ if (errno > sys_nerr)
+ return NULL;
+ else
+ return sys_errlist[errno];
++#endif
+ }
diff --git a/x11/xp/pkg/COMMENT b/x11/xp/pkg/COMMENT
new file mode 100644
index 00000000000..e5ba9201e34
--- /dev/null
+++ b/x11/xp/pkg/COMMENT
@@ -0,0 +1 @@
+A fast X11 text file viewer using Athena widgets
diff --git a/x11/xp/pkg/DESCR b/x11/xp/pkg/DESCR
new file mode 100644
index 00000000000..5eba2f84dd7
--- /dev/null
+++ b/x11/xp/pkg/DESCR
@@ -0,0 +1,18 @@
+Release 2.0 of xp
+
+xp started as a filter to simply display stdin in an Athena text
+widget. It grew to be a more general file displayer with an emphasis
+on ease of browsing and searching, but I've tried to keep its interface
+(and implementation) simple and make it useful in shell scripts.
+
+xp tries to be reasonably efficient in use of memory when displaying
+large files, given that the text widgets requires the whole file to be
+in memory, by using a read-only text widget and freeing memory when a
+file is no longer displayed (so if you go back to a previously
+displayed file it gets re-opened).
+
+xp incorporates Henry Spencer's implementation of egrep style regular
+expression matching. The xp distribution includes that part of the
+regexp distribution which it requires.
+
+gerry.tomlinson@ncl.ac.uk November 1995
diff --git a/x11/xp/pkg/PLIST b/x11/xp/pkg/PLIST
new file mode 100644
index 00000000000..ff298386469
--- /dev/null
+++ b/x11/xp/pkg/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $
+bin/xp
+bin/xpman
+lib/X11/app-defaults/Xp
+man/cat1/xp.0