Ravenports generated: 21 Feb 2024 17:31
[ravenports.git] / bucket_0B / less
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               less
4 VERSION=                633
5 KEYWORDS=               sysutils
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/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            http://www.greenwoodsoftware.com/less/
14 DISTFILE[1]=            less-633.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[standard]=        single
17 SPKGS[color]=           single
18
19 OPTIONS_AVAILABLE=      COLOR
20 OPTIONS_STANDARD=       none
21 VOPTS[color]=           COLOR=ON
22
23 USES=                   cpe gmake ncurses:build
24
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
30 LICENSE_SCHEME=         dual
31
32 CPE_VENDOR=             gnu
33 FPC_EQUIVALENT=         sysutils/less
34
35 MUST_CONFIGURE=         yes
36 CONFIGURE_ARGS=         --prefix={{PREFIX}}
37
38 VAR_OPSYS[sunos]=       CONFIGURE_ENV=LIBS="-lrt -lsocket"
39
40 [COLOR].DESCRIPTION=                    Color support via escape sequences
41 [COLOR].CPPFLAGS_ON=                    -DCOLOR_LESS
42
43 pre-configure:
44         ${REINPLACE_CMD} -e 's|-lcurses|-lncurses -ltinfo|' ${WRKSRC}/configure
45         ${HEAD} -n 18 ${WRKSRC}/README > ${WRKDIR}/TERMS
46
47 post-extract:
48         # support static linking
49         ${RM} ${LOCALBASE}/lib/lib*.so
50
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.
58
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.
63
64 Less has been used by thousands of people around the world since
65 its release in 1985.
66
67
68 [FILE:94:distinfo]
69 2f201d64b828b88af36dfe6cfdba3e0819ece2e446ebe6224813209aaefed04f       375733 less-633.tar.gz
70
71
72 [FILE:86:manifests/plist.single]
73 bin/
74  less
75  lessecho
76  lesskey
77 share/man/man1/
78  less.1.gz
79  lessecho.1.gz
80  lesskey.1.gz
81
82
83 [FILE:938:patches/patch-charset.c]
84 --- charset.c.orig      2023-05-03 18:43:01 UTC
85 +++ charset.c
86 @@ -525,6 +525,10 @@ public int binary_char(LWCHAR c)
87   */
88  public int control_char(LWCHAR c)
89  {
90 +#ifdef COLOR_LESS
91 +       if (c == ESC)
92 +               return 0;
93 +#endif
94         c &= 0377;
95         return (chardef[c] & IS_CONTROL_CHAR);
96  }
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];
100  
101 +#ifdef COLOR_LESS
102 +       if(c == ESC)
103 +               sprintf(buf, "%c", ESC);
104 +       else
105 +       {
106 +               c &= 0377;
107 +               if (!control_char(c))
108 +                       sprintf(buf, "%c", c);
109 +               else if (!control_char(c ^ 0100))
110 +                       sprintf(buf, "^%c", c ^ 0100);
111 +               else
112 +                       sprintf(buf, binfmt, c);
113 +       }
114 +#else
115         c &= 0377;
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)
119  #endif
120         else
121                 SNPRINTF1(buf, sizeof(buf), binfmt, c);
122 +#endif
123         return (buf);
124  }
125  
126
127
128 [FILE:184:patches/patch-edit.c]
129 --- edit.c.orig 2023-05-03 18:43:01 UTC
130 +++ edit.c
131 @@ -16,9 +16,7 @@
132  #if HAVE_SYS_WAIT_H
133  #include <sys/wait.h>
134  #endif
135 -#if OS2
136  #include <signal.h>
137 -#endif
138  
139  public int fd0 = 0;
140  
141