aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-04 20:40:04 +0800
committeredwin <edwin@FreeBSD.org>2003-04-04 20:40:04 +0800
commita9a0aae420eed0c7dd1bb79e5e1cd2a3a3b307ca (patch)
treee5519e57fe407a225b05c4f6e2fa308e9ecd58dc /misc
parentb24b7a585830c3e1873aa965899b471bee3933e6 (diff)
downloadfreebsd-ports-gnome-a9a0aae420eed0c7dd1bb79e5e1cd2a3a3b307ca.tar.gz
freebsd-ports-gnome-a9a0aae420eed0c7dd1bb79e5e1cd2a3a3b307ca.tar.zst
freebsd-ports-gnome-a9a0aae420eed0c7dd1bb79e5e1cd2a3a3b307ca.zip
[maintainer-update] ports/misc/less 374 -> 378
revive the port - it improperly suffered repo-death - and apply the patch below. PR: ports/47577 Submitted by: Jason Harris <jharris@widomaker.com>
Diffstat (limited to 'misc')
-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