1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 VARIANTS= standard color
7 SDESC[standard]= Popular open-source file pager
8 SDESC[color]= Popular file pager with color sequence support
9 HOMEPAGE= http://www.greenwoodsoftware.com/less/
13 SITES[main]= http://www.greenwoodsoftware.com/less/
14 DISTFILE[1]= less-633.tar.gz:main
16 SPKGS[standard]= single
19 OPTIONS_AVAILABLE= COLOR
20 OPTIONS_STANDARD= none
21 VOPTS[color]= COLOR=ON
23 USES= cpe gmake ncurses:build
25 LICENSE= GPLv3:single CUSTOM1:single
26 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
27 LICENSE_NAME= CUSTOM1:"Less License"
28 LICENSE_FILE= GPLv3:{{WRKSRC}}/COPYING
29 CUSTOM1:{{WRKSRC}}/LICENSE
33 FPC_EQUIVALENT= sysutils/less
36 CONFIGURE_ARGS= --prefix={{PREFIX}}
38 VAR_OPSYS[sunos]= CONFIGURE_ENV=LIBS="-lrt -lsocket"
40 [COLOR].DESCRIPTION= Color support via escape sequences
41 [COLOR].CPPFLAGS_ON= -DCOLOR_LESS
44 ${REINPLACE_CMD} -e 's|-lcurses|-lncurses -ltinfo|' ${WRKSRC}/configure
45 ${HEAD} -n 18 ${WRKSRC}/README > ${WRKDIR}/TERMS
48 # support static linking
49 ${RM} ${LOCALBASE}/lib/lib*.so
51 [FILE:707:descriptions/desc.single]
52 Less is a pager. A pager is a program that displays text files. Other
53 pagers commonly in use are more and pg. Pagers are often used in
54 command-line environments like the Unix shell and the MS-DOS command
55 prompt to display files. Windowed environments like the Windows and
56 Macintosh desktops don't need pagers as much, since they have other
57 methods for viewing files.
59 Less is not an editor. You can't change the contents of the file
60 you're viewing. Less is not a windowing system. It doesn't have
61 fancy scroll bars or other GUI (graphical user interface) elements.
62 It was designed to work on simple text-only terminals.
64 Less has been used by thousands of people around the world since
69 2f201d64b828b88af36dfe6cfdba3e0819ece2e446ebe6224813209aaefed04f 375733 less-633.tar.gz
72 [FILE:86:manifests/plist.single]
83 [FILE:938:patches/patch-charset.c]
84 --- charset.c.orig 2023-05-03 18:43:01 UTC
86 @@ -525,6 +525,10 @@ public int binary_char(LWCHAR c)
88 public int control_char(LWCHAR c)
95 return (chardef[c] & IS_CONTROL_CHAR);
97 @@ -538,6 +542,20 @@ public char * prchar(LWCHAR c)
98 /* {{ This buffer can be overrun if LESSBINFMT is a long string. }} */
99 static char buf[MAX_PRCHAR_LEN+1];
103 + sprintf(buf, "%c", ESC);
107 + if (!control_char(c))
108 + sprintf(buf, "%c", c);
109 + else if (!control_char(c ^ 0100))
110 + sprintf(buf, "^%c", c ^ 0100);
112 + sprintf(buf, binfmt, c);
116 if ((c < 128 || !utf_mode) && !control_char(c))
117 SNPRINTF1(buf, sizeof(buf), "%c", (int) c);
118 @@ -561,6 +579,7 @@ public char * prchar(LWCHAR c)
121 SNPRINTF1(buf, sizeof(buf), binfmt, c);
128 [FILE:184:patches/patch-edit.c]
129 --- edit.c.orig 2023-05-03 18:43:01 UTC
133 #include <sys/wait.h>