diff options
author | edwin <edwin@FreeBSD.org> | 2003-04-04 20:40:04 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-04-04 20:40:04 +0800 |
commit | a9a0aae420eed0c7dd1bb79e5e1cd2a3a3b307ca (patch) | |
tree | e5519e57fe407a225b05c4f6e2fa308e9ecd58dc /sysutils/less | |
parent | b24b7a585830c3e1873aa965899b471bee3933e6 (diff) | |
download | freebsd-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 'sysutils/less')
-rw-r--r-- | sysutils/less/Makefile | 30 | ||||
-rw-r--r-- | sysutils/less/distinfo | 1 | ||||
-rw-r--r-- | sysutils/less/files/patch-aa | 11 | ||||
-rw-r--r-- | sysutils/less/files/patch-ab | 41 | ||||
-rw-r--r-- | sysutils/less/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/less/pkg-plist | 3 |
6 files changed, 90 insertions, 0 deletions
diff --git a/sysutils/less/Makefile b/sysutils/less/Makefile new file mode 100644 index 000000000000..a1f69af43d73 --- /dev/null +++ b/sysutils/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/sysutils/less/distinfo b/sysutils/less/distinfo new file mode 100644 index 000000000000..6c4783574873 --- /dev/null +++ b/sysutils/less/distinfo @@ -0,0 +1 @@ +MD5 (less-378.tar.gz) = db73e39a2d1a68eafa949f80be5a28c8 diff --git a/sysutils/less/files/patch-aa b/sysutils/less/files/patch-aa new file mode 100644 index 000000000000..092ecbe95fb9 --- /dev/null +++ b/sysutils/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/sysutils/less/files/patch-ab b/sysutils/less/files/patch-ab new file mode 100644 index 000000000000..fb9dcb946beb --- /dev/null +++ b/sysutils/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/sysutils/less/pkg-descr b/sysutils/less/pkg-descr new file mode 100644 index 000000000000..bfa94d911c7e --- /dev/null +++ b/sysutils/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/sysutils/less/pkg-plist b/sysutils/less/pkg-plist new file mode 100644 index 000000000000..f85e8a92e7ff --- /dev/null +++ b/sysutils/less/pkg-plist @@ -0,0 +1,3 @@ +bin/less +bin/lesskey +bin/lessecho |