aboutsummaryrefslogtreecommitdiff
path: root/misc/less
diff options
context:
space:
mode:
Diffstat (limited to 'misc/less')
-rw-r--r--misc/less/Makefile30
-rw-r--r--misc/less/distinfo1
-rw-r--r--misc/less/files/patch-aa11
-rw-r--r--misc/less/files/patch-ab41
-rw-r--r--misc/less/pkg-descr4
-rw-r--r--misc/less/pkg-plist3
6 files changed, 90 insertions, 0 deletions
diff --git a/misc/less/Makefile b/misc/less/Makefile
new file mode 100644
index 000000000000..a1f69af43d73
--- /dev/null
+++ b/misc/less/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: less
+# Date created: 8 Nov 1994
+# Whom: ache
+#
+# $FreeBSD$
+#
+
+PORTNAME= less
+PORTVERSION= 378
+CATEGORIES= misc
+MASTER_SITES= http://www.greenwoodsoftware.com/%SUBDIR%/ \
+ ${MASTER_SITE_GNU}
+MASTER_SITE_SUBDIR= less
+
+MAINTAINER= jharris@widomaker.com
+COMMENT= A better pager utility
+
+.include <bsd.port.pre.mk>
+
+GNU_CONFIGURE= yes
+MAN1= less.1 lesskey.1
+
+.if defined(COLOUR_LESS) || defined(COLOR_LESS)
+MAKE_ENV= CPPFLAGS="-DCOLOUR_LESS"
+
+pre-fetch:
+ @${ECHO_MSG} "Making a colour version of less."
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/misc/less/distinfo b/misc/less/distinfo
new file mode 100644
index 000000000000..6c4783574873
--- /dev/null
+++ b/misc/less/distinfo
@@ -0,0 +1 @@
+MD5 (less-378.tar.gz) = db73e39a2d1a68eafa949f80be5a28c8
diff --git a/misc/less/files/patch-aa b/misc/less/files/patch-aa
new file mode 100644
index 000000000000..092ecbe95fb9
--- /dev/null
+++ b/misc/less/files/patch-aa
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri Apr 9 20:02:59 1999
++++ Makefile.in Thu Apr 15 23:09:36 1999
+@@ -15,7 +15,7 @@
+ LDFLAGS = @LDFLAGS@
+ O=o
+
+-LIBS = @LIBS@
++LIBS = -ltermcap
+
+ prefix = @prefix@
+ exec_prefix = @exec_prefix@
diff --git a/misc/less/files/patch-ab b/misc/less/files/patch-ab
new file mode 100644
index 000000000000..fb9dcb946beb
--- /dev/null
+++ b/misc/less/files/patch-ab
@@ -0,0 +1,41 @@
+--- charset.c.orig Thu Mar 23 05:36:33 2000
++++ charset.c Mon Jun 19 22:33:43 2000
+@@ -267,6 +267,10 @@
+ control_char(c)
+ int c;
+ {
++#ifdef COLOR_LESS
++ if (c == ESC)
++ return 0;
++#endif
+ c &= 0377;
+ return (chardef[c] & IS_CONTROL_CHAR);
+ }
+@@ -281,6 +285,20 @@
+ {
+ static char buf[8];
+
++#ifdef COLOR_LESS
++ if(c == ESC)
++ sprintf(buf, "%c", ESC);
++ else
++ {
++ c &= 0377;
++ if (!control_char(c))
++ sprintf(buf, "%c", c);
++ else if (!control_char(c ^ 0100))
++ sprintf(buf, "^%c", c ^ 0100);
++ else
++ sprintf(buf, binfmt, c);
++ }
++#else
+ c &= 0377;
+ if (!control_char(c))
+ sprintf(buf, "%c", c);
+@@ -290,5 +308,6 @@
+ sprintf(buf, "^%c", c ^ 0100);
+ else
+ sprintf(buf, binfmt, c);
++#endif
+ return (buf);
+ }
diff --git a/misc/less/pkg-descr b/misc/less/pkg-descr
new file mode 100644
index 000000000000..bfa94d911c7e
--- /dev/null
+++ b/misc/less/pkg-descr
@@ -0,0 +1,4 @@
+This is the distribution of "less", a paginator similar to "more" or "pg",
+but much more powerful.
+
+WWW: http://www.greenwoodsoftware.com/less/
diff --git a/misc/less/pkg-plist b/misc/less/pkg-plist
new file mode 100644
index 000000000000..f85e8a92e7ff
--- /dev/null
+++ b/misc/less/pkg-plist
@@ -0,0 +1,3 @@
+bin/less
+bin/lesskey
+bin/lessecho