1 |
commit: 57acea52b1a0a1f85bfcfd6eef693466b647ab34 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Feb 11 11:22:56 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 24 22:16:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57acea52 |
7 |
|
8 |
app-editors/fte: remove unused patches. |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
app-editors/fte/files/fte-cpp14.patch | 17 ---- |
14 |
app-editors/fte/files/fte-gcc34 | 38 -------- |
15 |
app-editors/fte/files/fte-interix.patch | 38 -------- |
16 |
app-editors/fte/files/fte-new_keyword.patch | 14 --- |
17 |
app-editors/fte/files/fte-slang.patch | 131 ---------------------------- |
18 |
5 files changed, 238 deletions(-) |
19 |
|
20 |
diff --git a/app-editors/fte/files/fte-cpp14.patch b/app-editors/fte/files/fte-cpp14.patch |
21 |
deleted file mode 100644 |
22 |
index bea83b6a5cc..00000000000 |
23 |
--- a/app-editors/fte/files/fte-cpp14.patch |
24 |
+++ /dev/null |
25 |
@@ -1,17 +0,0 @@ |
26 |
-Fix C++14 compilation errors. Add casting int literals to char in config |
27 |
-generator to avoid narrowing conversions. |
28 |
-Gentoo bug: https://bugs.gentoo.org/show_bug.cgi?id=595048 |
29 |
- |
30 |
---- a/src/mkdefcfg.pl |
31 |
-+++ b/src/mkdefcfg.pl |
32 |
-@@ -24,8 +24,8 @@ |
33 |
- |
34 |
- @c = split(//, $buf); |
35 |
- for ($i = 0; $i < $len; $i++) { |
36 |
-- $out .= sprintf("0x%02X", ord($c[$i])); |
37 |
-- if ($n++ % 10) { |
38 |
-+ $out .= sprintf("(char)0x%02X", ord($c[$i])); |
39 |
-+ if ($n++ % 5) { |
40 |
- $out .= ", "; |
41 |
- } else { |
42 |
- $out .= ",\n"; |
43 |
|
44 |
diff --git a/app-editors/fte/files/fte-gcc34 b/app-editors/fte/files/fte-gcc34 |
45 |
deleted file mode 100644 |
46 |
index 51940e65065..00000000000 |
47 |
--- a/app-editors/fte/files/fte-gcc34 |
48 |
+++ /dev/null |
49 |
@@ -1,38 +0,0 @@ |
50 |
---- fte/src/con_slang.cpp 2003-02-16 19:23:58.000000000 +0100 |
51 |
-+++ fte-gcc34/src/con_slang.cpp 2005-01-12 16:57:38.050369064 +0100 |
52 |
-@@ -246,7 +246,7 @@ |
53 |
- SLsmg_write_nchars(slang_dchs, sizeof(slang_dchs)); |
54 |
- |
55 |
- SLsmg_gotorc(0, 0); |
56 |
-- SLsmg_read_raw(linebuf, sizeof(slang_dchs)); |
57 |
-+ SLsmg_read_raw((SLsmg_Char_Type*)linebuf, sizeof(slang_dchs)); |
58 |
- for (i = 0; i < sizeof(slang_dchs); i++) |
59 |
- raw_dchs[i] = (linebuf[i]) & 0xff; |
60 |
- |
61 |
-@@ -368,7 +368,7 @@ |
62 |
- ConQueryCursorPos(&CurX, &CurY); |
63 |
- while (H > 0) { |
64 |
- SLsmg_gotorc(Y++, X); |
65 |
-- SLsmg_write_raw(box, W); |
66 |
-+ SLsmg_write_raw((SLsmg_Char_Type*)box, W); |
67 |
- box += W; |
68 |
- H--; |
69 |
- } |
70 |
-@@ -386,7 +386,7 @@ |
71 |
- ConQueryCursorPos(&CurX, &CurY); |
72 |
- while (H > 0) { |
73 |
- SLsmg_gotorc(Y++, X); |
74 |
-- SLsmg_read_raw(Cell, W); |
75 |
-+ SLsmg_read_raw((SLsmg_Char_Type*)Cell, W); |
76 |
- for (i = 0; i < W; i++) |
77 |
- if (Cell[i] & 0x8000) { |
78 |
- ch = Cell[i] & 0xff; |
79 |
-@@ -409,7 +409,7 @@ |
80 |
- ConQueryCursorPos(&CurX, &CurY); |
81 |
- while (H > 0) { |
82 |
- SLsmg_gotorc(Y++, X); |
83 |
-- SLsmg_read_raw(box, W); |
84 |
-+ SLsmg_read_raw((SLsmg_Char_Type*)box, W); |
85 |
- box += W; |
86 |
- H--; |
87 |
- } |
88 |
|
89 |
diff --git a/app-editors/fte/files/fte-interix.patch b/app-editors/fte/files/fte-interix.patch |
90 |
deleted file mode 100644 |
91 |
index 1df0a49f488..00000000000 |
92 |
--- a/app-editors/fte/files/fte-interix.patch |
93 |
+++ /dev/null |
94 |
@@ -1,38 +0,0 @@ |
95 |
-https://sourceforge.net/tracker/?func=detail&aid=3554646&group_id=943&atid=100943 |
96 |
- |
97 |
-diff -ru fte.orig/src/g_unix_pipe.cpp fte/src/g_unix_pipe.cpp |
98 |
---- fte.orig/src/g_unix_pipe.cpp 2008-04-03 13:33:49 +0200 |
99 |
-+++ fte/src/g_unix_pipe.cpp 2008-04-03 13:34:20 +0200 |
100 |
-@@ -4,6 +4,10 @@ |
101 |
- #include <signal.h> |
102 |
- #include <sys/wait.h> |
103 |
- |
104 |
-+#ifdef __INTERIX |
105 |
-+# include <sys/time.h> |
106 |
-+#endif |
107 |
-+ |
108 |
- #include "sysdep.h" |
109 |
- #include "c_config.h" |
110 |
- #include "console.h" |
111 |
-diff -ru fte.orig/src/sysdep.h fte/src/sysdep.h |
112 |
---- fte.orig/src/sysdep.h 2008-04-03 13:33:58 +0200 |
113 |
-+++ fte/src/sysdep.h 2008-04-03 13:30:43 +0200 |
114 |
-@@ -15,7 +15,7 @@ |
115 |
- #include <stdlib.h> |
116 |
- #include <stdarg.h> |
117 |
- #include <string.h> |
118 |
--#if defined(AIX) || defined(SCO) || defined(NCR) |
119 |
-+#if defined(AIX) || defined(SCO) || defined(NCR) || defined(__INTERIX) |
120 |
- #include <strings.h> |
121 |
- #endif |
122 |
- #include <stdio.h> |
123 |
-@@ -38,7 +38,8 @@ |
124 |
- !defined(IRIX) && \ |
125 |
- !defined(SCO) && \ |
126 |
- !defined(SUNOS) && \ |
127 |
-- !defined(NCR) |
128 |
-+ !defined(NCR) && \ |
129 |
-+ !defined(__INTERIX) |
130 |
- # error Target not supported. |
131 |
- #endif |
132 |
- |
133 |
|
134 |
diff --git a/app-editors/fte/files/fte-new_keyword.patch b/app-editors/fte/files/fte-new_keyword.patch |
135 |
deleted file mode 100644 |
136 |
index c7b2a2b6455..00000000000 |
137 |
--- a/app-editors/fte/files/fte-new_keyword.patch |
138 |
+++ /dev/null |
139 |
@@ -1,14 +0,0 @@ |
140 |
---- src/con_linux.cpp.orig 2005-01-30 22:46:54.170485296 +0300 |
141 |
-+++ src/con_linux.cpp 2005-01-30 22:46:28.859333176 +0300 |
142 |
-@@ -50,7 +50,11 @@ |
143 |
- #include <linux/major.h> |
144 |
- #include <linux/kdev_t.h> |
145 |
- #include <linux/kd.h> |
146 |
-+extern "C" { |
147 |
-+#define new xnew |
148 |
- #include <linux/keyboard.h> |
149 |
-+#undef new |
150 |
-+} |
151 |
- #ifdef USE_GPM |
152 |
- extern "C" { |
153 |
- #include <gpm.h> |
154 |
|
155 |
diff --git a/app-editors/fte/files/fte-slang.patch b/app-editors/fte/files/fte-slang.patch |
156 |
deleted file mode 100644 |
157 |
index 50470bd6b7e..00000000000 |
158 |
--- a/app-editors/fte/files/fte-slang.patch |
159 |
+++ /dev/null |
160 |
@@ -1,131 +0,0 @@ |
161 |
-diff -Nru /tmp/wgHyQebD7F/fte-0.50.0/src/con_slang.cpp /tmp/PQJo4szkUb/fte-0.50.0/src/con_slang.cpp |
162 |
---- a/fte-0.50.0/src/con_slang.cpp 2005-12-28 16:53:24.000000000 +0100 |
163 |
-+++ b/fte-0.50.0/src/con_slang.cpp 2006-06-05 06:02:37.000000000 +0200 |
164 |
-@@ -99,12 +99,14 @@ |
165 |
- '+' |
166 |
- }; |
167 |
- |
168 |
--static char raw_dchs[sizeof(slang_dchs)]; |
169 |
-+static SLsmg_Char_Type raw_dchs[sizeof(slang_dchs)]; |
170 |
- |
171 |
--static unsigned char ftesl_get_dch(char raw) |
172 |
-+static unsigned char ftesl_get_dch(SLsmg_Char_Type raw) |
173 |
- { |
174 |
- for (int i = 0; i < (int) sizeof(slang_dchs); i++) |
175 |
-- if (raw_dchs[i] == raw) |
176 |
-+ if (raw_dchs[i].nchars == raw.nchars |
177 |
-+ && !memcmp(raw_dchs[i].wchars, raw.wchars, |
178 |
-+ raw.nchars * sizeof(*raw.wchars))) |
179 |
- return DCH_SLANG_C1 + i; |
180 |
- return DCH_SLANG_EOL; |
181 |
- } |
182 |
-@@ -215,7 +217,6 @@ |
183 |
- int ConInit(int /*XSize */ , int /*YSize */ ) |
184 |
- { |
185 |
- unsigned i; |
186 |
-- unsigned short linebuf[sizeof(slang_dchs)]; |
187 |
- |
188 |
- SLtt_get_terminfo(); |
189 |
- |
190 |
-@@ -246,9 +247,7 @@ |
191 |
- SLsmg_write_nchars(slang_dchs, sizeof(slang_dchs)); |
192 |
- |
193 |
- SLsmg_gotorc(0, 0); |
194 |
-- SLsmg_read_raw((SLsmg_Char_Type*)linebuf, sizeof(slang_dchs)); |
195 |
-- for (i = 0; i < sizeof(slang_dchs); i++) |
196 |
-- raw_dchs[i] = (linebuf[i]) & 0xff; |
197 |
-+ SLsmg_read_raw(raw_dchs, sizeof(slang_dchs)); |
198 |
- |
199 |
- SLsmg_set_char_set(0); |
200 |
- |
201 |
-@@ -361,14 +360,14 @@ |
202 |
- return 0; |
203 |
- } |
204 |
- |
205 |
--static int ConPutBoxRaw(int X, int Y, int W, int H, unsigned short *box) |
206 |
-+static int ConPutBoxRaw(int X, int Y, int W, int H, SLsmg_Char_Type *box) |
207 |
- { |
208 |
- int CurX, CurY; |
209 |
- |
210 |
- ConQueryCursorPos(&CurX, &CurY); |
211 |
- while (H > 0) { |
212 |
- SLsmg_gotorc(Y++, X); |
213 |
-- SLsmg_write_raw((SLsmg_Char_Type*)box, W); |
214 |
-+ SLsmg_write_raw(box, W); |
215 |
- box += W; |
216 |
- H--; |
217 |
- } |
218 |
-@@ -381,35 +380,51 @@ |
219 |
- int ConGetBox(int X, int Y, int W, int H, PCell Cell) |
220 |
- { |
221 |
- int CurX, CurY, i; |
222 |
-- char ch; |
223 |
-+ SLsmg_Char_Type *linebuf; |
224 |
-+ |
225 |
-+ linebuf = new SLsmg_Char_Type [W]; |
226 |
- |
227 |
- ConQueryCursorPos(&CurX, &CurY); |
228 |
- while (H > 0) { |
229 |
- SLsmg_gotorc(Y++, X); |
230 |
-- SLsmg_read_raw((SLsmg_Char_Type*)Cell, W); |
231 |
-- for (i = 0; i < W; i++) |
232 |
-- if (Cell[i] & 0x8000) { |
233 |
-- ch = Cell[i] & 0xff; |
234 |
-- Cell[i] &= 0x7f00; |
235 |
-- Cell[i] |= ftesl_get_dch(ch); |
236 |
-- } |
237 |
-+ SLsmg_read_raw(linebuf, W); |
238 |
-+ for (i = 0; i < W; i++) { |
239 |
-+ if (linebuf[i].color & SLSMG_ACS_MASK) |
240 |
-+ Cell[i] = ftesl_get_dch(linebuf[i]); |
241 |
-+ else |
242 |
-+ /* |
243 |
-+ * FIXME: Handle UTF-8 -- way beyond a quick-and-dirty |
244 |
-+ * fix. --MV |
245 |
-+ */ |
246 |
-+ Cell[i] = SLSMG_EXTRACT_CHAR(linebuf[i]); |
247 |
-+ /* |
248 |
-+ * FIXME: This preserves only 7 out of 15 bits of color. |
249 |
-+ * Fortunately, we're dealing with color handles rather than |
250 |
-+ * colors themselves -- S-Lang jumps through an extra hoop to |
251 |
-+ * map these to color data. As long as we use less than 127 |
252 |
-+ * different colors, things should be OK. I think. --MV |
253 |
-+ */ |
254 |
-+ Cell[i] |= (linebuf[i].color & 0x7f) << 8; |
255 |
-+ } |
256 |
- Cell += W; |
257 |
- H--; |
258 |
- } |
259 |
- ConSetCursorPos(CurX, CurY); |
260 |
- |
261 |
-+ delete [] (linebuf); |
262 |
-+ |
263 |
- return 0; |
264 |
- |
265 |
- } |
266 |
- |
267 |
--static int ConGetBoxRaw(int X, int Y, int W, int H, unsigned short *box) |
268 |
-+static int ConGetBoxRaw(int X, int Y, int W, int H, SLsmg_Char_Type *box) |
269 |
- { |
270 |
- int CurX, CurY; |
271 |
- |
272 |
- ConQueryCursorPos(&CurX, &CurY); |
273 |
- while (H > 0) { |
274 |
- SLsmg_gotorc(Y++, X); |
275 |
-- SLsmg_read_raw((SLsmg_Char_Type*)box, W); |
276 |
-+ SLsmg_read_raw(box, W); |
277 |
- box += W; |
278 |
- H--; |
279 |
- } |
280 |
-@@ -451,9 +466,9 @@ |
281 |
- |
282 |
- int ConScroll(int Way, int X, int Y, int W, int H, TAttr Fill, int Count) |
283 |
- { |
284 |
-- unsigned short *box; |
285 |
-+ SLsmg_Char_Type *box; |
286 |
- |
287 |
-- box = new unsigned short [W * H]; |
288 |
-+ box = new SLsmg_Char_Type [W * H]; |
289 |
- |
290 |
- TCell fill = (((unsigned) Fill) << 8) | ' '; |
291 |
- |