From 240eed442d1f97f7d7dd9430673499ef25dd1f36 Mon Sep 17 00:00:00 2001 From: hubertf Date: Sat, 11 Oct 1997 21:53:59 +0000 Subject: Import as of 09/25/97 --- x11/xless/Makefile | 19 +++++++++++++++++++ x11/xless/files/md5 | 1 + x11/xless/patches/patch-aa | 12 ++++++++++++ x11/xless/patches/patch-ab | 32 ++++++++++++++++++++++++++++++++ x11/xless/pkg/COMMENT | 1 + x11/xless/pkg/DESCR | 22 ++++++++++++++++++++++ x11/xless/pkg/PLIST | 6 ++++++ 7 files changed, 93 insertions(+) create mode 100644 x11/xless/Makefile create mode 100644 x11/xless/files/md5 create mode 100644 x11/xless/patches/patch-aa create mode 100644 x11/xless/patches/patch-ab create mode 100644 x11/xless/pkg/COMMENT create mode 100644 x11/xless/pkg/DESCR create mode 100644 x11/xless/pkg/PLIST (limited to 'x11/xless') diff --git a/x11/xless/Makefile b/x11/xless/Makefile new file mode 100644 index 00000000000..c071b02ee16 --- /dev/null +++ b/x11/xless/Makefile @@ -0,0 +1,19 @@ +# New ports collection makefile for: xless +# Version required: 1.7 +# Date created: 23 December 1996 +# Whom: Conrad Sabatier +# +# $Id: Makefile,v 1.1.1.1 1997/10/11 21:55:10 hubertf Exp $ +# + +DISTNAME= xless-1.7 +CATEGORIES= misc +MASTER_SITES= ${MASTER_SITE_XCONTRIB} \ + ftp://ftp.cs.berkeley.edu/ucb/people/dglo/xless/ +MASTER_SITE_SUBDIR= applications + +MAINTAINER= conrads@neosoft.com + +USE_IMAKE= yes + +.include diff --git a/x11/xless/files/md5 b/x11/xless/files/md5 new file mode 100644 index 00000000000..585a1406b8e --- /dev/null +++ b/x11/xless/files/md5 @@ -0,0 +1 @@ +MD5 (xless-1.7.tar.gz) = 8b6322b7f08be533380ca2a32b7f2963 diff --git a/x11/xless/patches/patch-aa b/x11/xless/patches/patch-aa new file mode 100644 index 00000000000..a71f4ffc80e --- /dev/null +++ b/x11/xless/patches/patch-aa @@ -0,0 +1,12 @@ +--- Imakefile.orig Thu Jun 2 16:22:14 1994 ++++ Imakefile Fri Dec 27 18:52:23 1996 +@@ -5,7 +5,8 @@ + * -DPRINTCMD=\"/usr/ucb/lpr\" - path to send file to printer + * -DTILDE_EXPANSION - perform ~ expansion on filenames + */ +- DEFINES = -DHELPFILE=\"${LIBDIR}/xless.help\" -DTILDE_EXPANSION ++ DEFINES = -DHELPFILE=\"${LIBDIR}/xless.help\" -DTILDE_EXPANSION \ ++ -DDEFEDITOR=\"/usr/bin/vi\" -DPRINTCMD=\"/usr/bin/lpr\" + + + SRCS = help.c init.c popup.c util.c callbacks.c window.c main.c \ diff --git a/x11/xless/patches/patch-ab b/x11/xless/patches/patch-ab new file mode 100644 index 00000000000..b41554543c2 --- /dev/null +++ b/x11/xless/patches/patch-ab @@ -0,0 +1,32 @@ +*** ../work/xless-1.7/xless.h Mon Dec 23 15:57:37 1996 +--- xless.h Mon Dec 23 16:11:53 1996 +*************** +*** 38,50 **** + + #define XLESS_MAX_INPUT 256 + +! /* handle differences between K&R and ANSI C */ + #if __STDC__ + #define __P(a) a + #else + #define __P(a) () + #define const + #endif + + /* + * The default editor; make sure the file exists. +--- 38,51 ---- + + #define XLESS_MAX_INPUT 256 + +! /* handle differences between K&R and ANSI C + #if __STDC__ + #define __P(a) a + #else + #define __P(a) () + #define const + #endif ++ */ + + /* + * The default editor; make sure the file exists. diff --git a/x11/xless/pkg/COMMENT b/x11/xless/pkg/COMMENT new file mode 100644 index 00000000000..7836eb974a0 --- /dev/null +++ b/x11/xless/pkg/COMMENT @@ -0,0 +1 @@ +An X11 viewer for text files. Useful as an add-on tool for other apps. diff --git a/x11/xless/pkg/DESCR b/x11/xless/pkg/DESCR new file mode 100644 index 00000000000..23239df6569 --- /dev/null +++ b/x11/xless/pkg/DESCR @@ -0,0 +1,22 @@ +This is a port of xless (version 1.7), a handy text file viewer for X. +Useful as a viewer tool for other apps (e.g., xfm, the X file manager), +or as a standalone viewer. Presents a scrollable text window (both +vertical and horizontal scrolling), with a number of clickable buttons. + +From the README file: + +FEATURES: + Display either the file(s) specified on the command line or input from + standard input, supplied by a pipe. File/pipe may be optionally + monitored so that the display is continuously updated as new text is + added. + Display new files in the current window or by creating a new window. + Reload or print the displayed file. + Search the displayed file using either exact, case-insensitive, or + regular expression patterns. + Edit the displayed file with your favorite editor (as specified in + the VISUAL or EDITOR environment variable) + +-- +Conrad Sabatier +conrads@neosoft.com diff --git a/x11/xless/pkg/PLIST b/x11/xless/pkg/PLIST new file mode 100644 index 00000000000..72e34d38646 --- /dev/null +++ b/x11/xless/pkg/PLIST @@ -0,0 +1,6 @@ +bin/xless +lib/X11/xless.help +lib/X11/app-defaults/XLess +lib/X11/app-defaults/XLess-color +man/man1/xless.1.gz + -- cgit v1.2.3