1 |
commit: 08cf4ad59a10db6550e2b3042fd8d106060f884a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 29 20:43:45 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 29 20:47:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08cf4ad5 |
7 |
|
8 |
dev-libs/libedit: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-libs/libedit/Manifest | 1 - |
13 |
.../libedit/files/libedit-20100424.3.0-bsd.patch | 13 -- |
14 |
.../libedit-20110709.3.0-weak-reference.patch | 20 -- |
15 |
.../libedit-20120311-3.0-el_fn_sh_complete.patch | 258 --------------------- |
16 |
.../libedit/files/libedit-ncursesprivate.patch | 13 -- |
17 |
dev-libs/libedit/libedit-20130712.3.1.ebuild | 49 ---- |
18 |
6 files changed, 354 deletions(-) |
19 |
|
20 |
diff --git a/dev-libs/libedit/Manifest b/dev-libs/libedit/Manifest |
21 |
index c0003276adf..e875e257b35 100644 |
22 |
--- a/dev-libs/libedit/Manifest |
23 |
+++ b/dev-libs/libedit/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
-DIST libedit-20130712-3.1.tar.gz 483857 BLAKE2B 9120e9ac2f0d20841fea7d3a41fbfe2c1e79392d3b6dcfcd44517ee61d662427ea6cda312d2ec47ac92d61b9292684b8bbd8f92de0832909fadfb1b0cbbb4f81 SHA512 9fb3173a65ea2cd2ffa9af0666aa3e227b7d6be26f3e84f30ea3449b0c80fc5e91b618e939f7047bf885b96689ede93733f7eba614d4fdd1a4baff3f130b432e |
26 |
DIST libedit-20170329-3.1.tar.gz 508504 BLAKE2B 83857f2e56c1f3857e981556c4d5bb90580293a1b9b038bd08beaa2b3954ccee0b30ccdd716cca95d1811841ab8ada010084ec5cd9ab8407e996c713d0991cd8 SHA512 597ed2282240be6dc3c4a7bb8b4ade31fe16ebfeb2229e3aec58643a65882653cc91deb300343d1b1cc588959dbf95698122c4005e47dfb947efa3e6b134bb82 |
27 |
DIST libedit-20190324-3.1.tar.gz 521999 BLAKE2B c48161626a5cf3140f75ec1df1d9652d961e568a0464a34f9e679f51e1e991a14c9d04a05f0de3815c4a38a9f17789a18e89ebd026450fa1053ef6420c045141 SHA512 240098989e3c5c8c5e28a61036655ad5a57f1c484e1cce2eaf3da157ff238dfb9cd81c766f82efbefa0935b7b5c07328087788cbac007b11dfb558cfaccaedf3 |
28 |
|
29 |
diff --git a/dev-libs/libedit/files/libedit-20100424.3.0-bsd.patch b/dev-libs/libedit/files/libedit-20100424.3.0-bsd.patch |
30 |
deleted file mode 100644 |
31 |
index e230a76d709..00000000000 |
32 |
--- a/dev-libs/libedit/files/libedit-20100424.3.0-bsd.patch |
33 |
+++ /dev/null |
34 |
@@ -1,13 +0,0 @@ |
35 |
-diff --git a/src/chartype.h b/src/chartype.h |
36 |
-index c35825c..be5aac0 100644 |
37 |
---- a/src/chartype.h |
38 |
-+++ b/src/chartype.h |
39 |
-@@ -44,7 +44,7 @@ |
40 |
- * supports non-BMP code points without requiring UTF-16, but nothing |
41 |
- * seems to actually advertise this properly, despite Unicode 3.1 having |
42 |
- * been around since 2001... */ |
43 |
--#if !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__)) |
44 |
-+#if !defined(__NetBSD__) && !defined(__sun) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__DragonFly__) && !defined(__FreeBSD__) |
45 |
- #ifndef __STDC_ISO_10646__ |
46 |
- /* In many places it is assumed that the first 127 code points are ASCII |
47 |
- * compatible, so ensure wchar_t indeed does ISO 10646 and not some other |
48 |
|
49 |
diff --git a/dev-libs/libedit/files/libedit-20110709.3.0-weak-reference.patch b/dev-libs/libedit/files/libedit-20110709.3.0-weak-reference.patch |
50 |
deleted file mode 100644 |
51 |
index a4399593d63..00000000000 |
52 |
--- a/dev-libs/libedit/files/libedit-20110709.3.0-weak-reference.patch |
53 |
+++ /dev/null |
54 |
@@ -1,20 +0,0 @@ |
55 |
---- libedit-20110709-3.0/src/vi.c.old 2011-07-11 18:21:16.000000000 +0000 |
56 |
-+++ libedit-20110709-3.0/src/vi.c 2011-07-11 18:24:29.000000000 +0000 |
57 |
-@@ -918,7 +918,7 @@ |
58 |
- * NB: posix implies that we should enter insert mode, however |
59 |
- * this is against historical precedent... |
60 |
- */ |
61 |
--#ifdef __weak_reference |
62 |
-+#if defined(__weak_reference) && defined(__NetBSD__) |
63 |
- __weakref_visible char *my_get_alias_text(const char *) |
64 |
- __weak_reference(get_alias_text); |
65 |
- #endif |
66 |
-@@ -926,7 +926,7 @@ |
67 |
- /*ARGSUSED*/ |
68 |
- vi_alias(EditLine *el, Int c) |
69 |
- { |
70 |
--#ifdef __weak_reference |
71 |
-+#if defined(__weak_reference) && defined(__NetBSD__) |
72 |
- char alias_name[3]; |
73 |
- char *alias_text; |
74 |
- |
75 |
|
76 |
diff --git a/dev-libs/libedit/files/libedit-20120311-3.0-el_fn_sh_complete.patch b/dev-libs/libedit/files/libedit-20120311-3.0-el_fn_sh_complete.patch |
77 |
deleted file mode 100644 |
78 |
index b0b157a24fd..00000000000 |
79 |
--- a/dev-libs/libedit/files/libedit-20120311-3.0-el_fn_sh_complete.patch |
80 |
+++ /dev/null |
81 |
@@ -1,258 +0,0 @@ |
82 |
-Port the el_fn_sh_complete from FreeBSD. |
83 |
-This function is required by FreeBSD-9.0's sh. |
84 |
-So that we can drop the bundled version in FreeBSD-9.0 |
85 |
- |
86 |
-diff -uNr libedit-20120311-3.0/src/filecomplete.c libedit-20120311-3.0.freebsd/src/filecomplete.c |
87 |
---- libedit-20120311-3.0/src/filecomplete.c 2012-03-11 09:54:58.000000000 +0000 |
88 |
-+++ libedit-20120311-3.0.freebsd/src/filecomplete.c 2012-04-23 12:14:25.000000000 +0000 |
89 |
-@@ -56,6 +56,9 @@ |
90 |
- |
91 |
- static const Char break_chars[] = { ' ', '\t', '\n', '"', '\\', '\'', '`', '@', |
92 |
- '$', '>', '<', '=', ';', '|', '&', '{', '(', '\0' }; |
93 |
-+/* Tilde is deliberately omitted here, we treat it specially. */ |
94 |
-+static const Char extra_quote_chars[] = { ')', '}', '*', '?', '[', '$', '\0' }; |
95 |
-+ |
96 |
- |
97 |
- |
98 |
- /********************************/ |
99 |
-@@ -411,10 +414,14 @@ |
100 |
- char **(*attempted_completion_function)(const char *, int, int), |
101 |
- const Char *word_break, const Char *special_prefixes, |
102 |
- const char *(*app_func)(const char *), size_t query_items, |
103 |
-- int *completion_type, int *over, int *point, int *end) |
104 |
-+ int *completion_type, int *over, int *point, int *end, |
105 |
-+ const char *(*find_word_start_func)(const char *, const char *), |
106 |
-+ char *(*dequoting_func)(const char *), |
107 |
-+ char *(*quoting_func)(const char *)) |
108 |
- { |
109 |
- const TYPE(LineInfo) *li; |
110 |
- Char *temp; |
111 |
-+ char *dequoted_temp; |
112 |
- char **matches; |
113 |
- const Char *ctemp; |
114 |
- size_t len; |
115 |
-@@ -435,17 +442,28 @@ |
116 |
- |
117 |
- /* We now look backwards for the start of a filename/variable word */ |
118 |
- li = FUN(el,line)(el); |
119 |
-+ if (find_word_start_func) |
120 |
-+ ctemp = ct_decode_string(find_word_start_func(ct_encode_string(li->buffer,&el->el_scratch), ct_encode_string(li->cursor,&el->el_scratch)),&el->el_scratch); |
121 |
-+ else { |
122 |
- ctemp = li->cursor; |
123 |
- while (ctemp > li->buffer |
124 |
- && !Strchr(word_break, ctemp[-1]) |
125 |
- && (!special_prefixes || !Strchr(special_prefixes, ctemp[-1]) ) ) |
126 |
- ctemp--; |
127 |
-+ } |
128 |
- |
129 |
- len = (size_t)(li->cursor - ctemp); |
130 |
- temp = el_malloc((len + 1) * sizeof(*temp)); |
131 |
- (void)Strncpy(temp, ctemp, len); |
132 |
- temp[len] = '\0'; |
133 |
- |
134 |
-+ if (dequoting_func) { |
135 |
-+ dequoted_temp = dequoting_func(ct_encode_string(temp,&el->el_scratch)); |
136 |
-+ if (dequoted_temp == NULL) |
137 |
-+ return retval; |
138 |
-+ } else |
139 |
-+ dequoted_temp = NULL; |
140 |
-+ |
141 |
- /* these can be used by function called in completion_matches() */ |
142 |
- /* or (*attempted_completion_function)() */ |
143 |
- if (point != 0) |
144 |
-@@ -456,14 +474,14 @@ |
145 |
- if (attempted_completion_function) { |
146 |
- int cur_off = (int)(li->cursor - li->buffer); |
147 |
- matches = (*attempted_completion_function)( |
148 |
-- ct_encode_string(temp, &el->el_scratch), |
149 |
-+ dequoted_temp? dequoted_temp : ct_encode_string(temp, &el->el_scratch), |
150 |
- cur_off - (int)len, cur_off); |
151 |
- } else |
152 |
- matches = 0; |
153 |
- if (!attempted_completion_function || |
154 |
- (over != NULL && !*over && !matches)) |
155 |
- matches = completion_matches( |
156 |
-- ct_encode_string(temp, &el->el_scratch), complet_func); |
157 |
-+ dequoted_temp? dequoted_temp : ct_encode_string(temp, &el->el_scratch), complet_func); |
158 |
- |
159 |
- if (over != NULL) |
160 |
- *over = 0; |
161 |
-@@ -478,9 +496,19 @@ |
162 |
- * possible matches if there is possible completion. |
163 |
- */ |
164 |
- if (matches[0][0] != '\0') { |
165 |
-+ char *quoted_match; |
166 |
-+ if (quoting_func) { |
167 |
-+ quoted_match = quoting_func(matches[0]); |
168 |
-+ if (quoted_match == NULL) |
169 |
-+ goto free_matches; |
170 |
-+ } else |
171 |
-+ quoted_match = NULL; |
172 |
-+ |
173 |
- el_deletestr(el, (int) len); |
174 |
- FUN(el,insertstr)(el, |
175 |
-- ct_decode_string(matches[0], &el->el_scratch)); |
176 |
-+ ct_decode_string(quoted_match? quoted_match : matches[0], &el->el_scratch)); |
177 |
-+ |
178 |
-+ free(quoted_match); |
179 |
- } |
180 |
- |
181 |
- if (what_to_do == '?') |
182 |
-@@ -553,12 +581,14 @@ |
183 |
- retval = CC_NORM; |
184 |
- } |
185 |
- |
186 |
-+free_matches: |
187 |
- /* free elements of array and the array itself */ |
188 |
- for (i = 0; matches[i]; i++) |
189 |
- el_free(matches[i]); |
190 |
- el_free(matches); |
191 |
- matches = NULL; |
192 |
- } |
193 |
-+ el_free(dequoted_temp); |
194 |
- el_free(temp); |
195 |
- return retval; |
196 |
- } |
197 |
-@@ -572,5 +602,102 @@ |
198 |
- { |
199 |
- return (unsigned char)fn_complete(el, NULL, NULL, |
200 |
- break_chars, NULL, NULL, (size_t)100, |
201 |
-- NULL, NULL, NULL, NULL); |
202 |
-+ NULL, NULL, NULL, NULL, |
203 |
-+ NULL, NULL, NULL); |
204 |
-+} |
205 |
-+ |
206 |
-+static const char * |
207 |
-+sh_find_word_start(const char *buffer, const char *cursor) |
208 |
-+{ |
209 |
-+ const char *word_start = buffer; |
210 |
-+ |
211 |
-+ while (buffer < cursor) { |
212 |
-+ if (*buffer == '\\') |
213 |
-+ buffer++; |
214 |
-+ else if (Strchr(break_chars, *buffer)) |
215 |
-+ word_start = buffer + 1; |
216 |
-+ |
217 |
-+ buffer++; |
218 |
-+ } |
219 |
-+ |
220 |
-+ return word_start; |
221 |
-+} |
222 |
-+ |
223 |
-+ |
224 |
-+static char * |
225 |
-+sh_quote(const char *str) |
226 |
-+{ |
227 |
-+ const char *src; |
228 |
-+ int extra_len = 0; |
229 |
-+ char *quoted_str, *dst; |
230 |
-+ |
231 |
-+ if (*str == '-' || *str == '+') |
232 |
-+ extra_len += 2; |
233 |
-+ for (src = str; *src != '\0'; src++) |
234 |
-+ if (Strchr(break_chars, *src) || |
235 |
-+ Strchr(extra_quote_chars, *src)) |
236 |
-+ extra_len++; |
237 |
-+ |
238 |
-+ quoted_str = malloc(sizeof(*quoted_str) * |
239 |
-+ (strlen(str) + extra_len + 1)); |
240 |
-+ if (quoted_str == NULL) |
241 |
-+ return NULL; |
242 |
-+ |
243 |
-+ dst = quoted_str; |
244 |
-+ if (*str == '-' || *str == '+') |
245 |
-+ *dst++ = '.', *dst++ = '/'; |
246 |
-+ for (src = str; *src != '\0'; src++) { |
247 |
-+ if (Strchr(break_chars, *src) || |
248 |
-+ Strchr(extra_quote_chars, *src)) |
249 |
-+ *dst++ = '\\'; |
250 |
-+ *dst++ = *src; |
251 |
-+ } |
252 |
-+ *dst = '\0'; |
253 |
-+ |
254 |
-+ return quoted_str; |
255 |
-+} |
256 |
-+ |
257 |
-+ |
258 |
-+static char * |
259 |
-+sh_dequote(const char *str) |
260 |
-+{ |
261 |
-+ char *dequoted_str, *dst; |
262 |
-+ |
263 |
-+ /* save extra space to replace \~ with ./~ */ |
264 |
-+ dequoted_str = malloc(sizeof(*dequoted_str) * (strlen(str) + 1 + 1)); |
265 |
-+ if (dequoted_str == NULL) |
266 |
-+ return NULL; |
267 |
-+ |
268 |
-+ dst = dequoted_str; |
269 |
-+ |
270 |
-+ /* dequote \~ at start as ./~ */ |
271 |
-+ if (*str == '\\' && str[1] == '~') { |
272 |
-+ str++; |
273 |
-+ *dst++ = '.'; |
274 |
-+ *dst++ = '/'; |
275 |
-+ } |
276 |
-+ |
277 |
-+ while (*str) { |
278 |
-+ if (*str == '\\') |
279 |
-+ str++; |
280 |
-+ if (*str) |
281 |
-+ *dst++ = *str++; |
282 |
-+ } |
283 |
-+ *dst = '\0'; |
284 |
-+ |
285 |
-+ return dequoted_str; |
286 |
-+} |
287 |
-+ |
288 |
-+ |
289 |
-+/* |
290 |
-+ * completion function using sh quoting rules; for key binding |
291 |
-+ */ |
292 |
-+/* ARGSUSED */ |
293 |
-+unsigned char |
294 |
-+_el_fn_sh_complete(EditLine *el, int ch __attribute__((__unused__))) |
295 |
-+{ |
296 |
-+ return (unsigned char)fn_complete(el, NULL, NULL, |
297 |
-+ break_chars, NULL, NULL, 100, |
298 |
-+ NULL, NULL, NULL, NULL, |
299 |
-+ sh_find_word_start, sh_dequote, sh_quote); |
300 |
- } |
301 |
-diff -uNr libedit-20120311-3.0/src/filecomplete.h libedit-20120311-3.0.freebsd/src/filecomplete.h |
302 |
---- libedit-20120311-3.0/src/filecomplete.h 2010-04-22 19:13:17.000000000 +0000 |
303 |
-+++ libedit-20120311-3.0.freebsd/src/filecomplete.h 2012-04-23 12:04:12.000000000 +0000 |
304 |
-@@ -35,7 +35,10 @@ |
305 |
- char *(*)(const char *, int), |
306 |
- char **(*)(const char *, int, int), |
307 |
- const Char *, const Char *, const char *(*)(const char *), size_t, |
308 |
-- int *, int *, int *, int *); |
309 |
-+ int *, int *, int *, int *, |
310 |
-+ const char *(*)(const char *, const char *), |
311 |
-+ char *(*)(const char *), |
312 |
-+ char *(*)(const char *)); |
313 |
- |
314 |
- void fn_display_match_list(EditLine *, char **, size_t, size_t); |
315 |
- char *fn_tilde_expand(const char *); |
316 |
-Binary files libedit-20120311-3.0/src/filecomplete.o and libedit-20120311-3.0.freebsd/src/filecomplete.o differ |
317 |
-diff -uNr libedit-20120311-3.0/src/histedit.h libedit-20120311-3.0.freebsd/src/histedit.h |
318 |
---- libedit-20120311-3.0/src/histedit.h 2011-08-02 06:52:08.000000000 +0000 |
319 |
-+++ libedit-20120311-3.0.freebsd/src/histedit.h 2012-04-23 11:44:33.000000000 +0000 |
320 |
-@@ -113,6 +113,7 @@ |
321 |
- int el_set(EditLine *, int, ...); |
322 |
- int el_get(EditLine *, int, ...); |
323 |
- unsigned char _el_fn_complete(EditLine *, int); |
324 |
-+unsigned char _el_fn_sh_complete(EditLine *, int); |
325 |
- |
326 |
- /* |
327 |
- * el_set/el_get parameters |
328 |
-diff -ur libedit-20120311-3.0/src/readline.c libedit-20120311-3.0.freebsd/src/readline.c |
329 |
---- libedit-20120311-3.0/src/readline.c 2012-03-11 09:54:58.000000000 +0000 |
330 |
-+++ libedit-20120311-3.0.freebsd/src/readline.c 2012-04-23 12:20:11.000000000 +0000 |
331 |
-@@ -1773,7 +1773,7 @@ |
332 |
- _rl_completion_append_character_function, |
333 |
- (size_t)rl_completion_query_items, |
334 |
- &rl_completion_type, &rl_attempted_completion_over, |
335 |
-- &rl_point, &rl_end); |
336 |
-+ &rl_point, &rl_end, NULL, NULL, NULL); |
337 |
- |
338 |
- |
339 |
- } |
340 |
|
341 |
diff --git a/dev-libs/libedit/files/libedit-ncursesprivate.patch b/dev-libs/libedit/files/libedit-ncursesprivate.patch |
342 |
deleted file mode 100644 |
343 |
index 0af9b1b882a..00000000000 |
344 |
--- a/dev-libs/libedit/files/libedit-ncursesprivate.patch |
345 |
+++ /dev/null |
346 |
@@ -1,13 +0,0 @@ |
347 |
-Index: libedit-20110709-3.0/libedit.pc.in |
348 |
-=================================================================== |
349 |
---- libedit-20110709-3.0.orig/libedit.pc.in |
350 |
-+++ libedit-20110709-3.0/libedit.pc.in |
351 |
-@@ -7,6 +7,7 @@ Name: libedit |
352 |
- Description: command line editor library provides generic line editing, history, and tokenization functions. |
353 |
- Version: @VERSION@ |
354 |
- Requires: |
355 |
--Libs: -L${libdir} -ledit @LIBS@ |
356 |
-+Libs: -L${libdir} -ledit |
357 |
-+Libs.private: @LIBS@ |
358 |
- Cflags: -I${includedir} -I${includedir}/editline |
359 |
- |
360 |
|
361 |
diff --git a/dev-libs/libedit/libedit-20130712.3.1.ebuild b/dev-libs/libedit/libedit-20130712.3.1.ebuild |
362 |
deleted file mode 100644 |
363 |
index 1427ce62fb0..00000000000 |
364 |
--- a/dev-libs/libedit/libedit-20130712.3.1.ebuild |
365 |
+++ /dev/null |
366 |
@@ -1,49 +0,0 @@ |
367 |
-# Copyright 1999-2018 Gentoo Foundation |
368 |
-# Distributed under the terms of the GNU General Public License v2 |
369 |
- |
370 |
-EAPI=5 |
371 |
- |
372 |
-inherit eutils toolchain-funcs versionator base multilib-minimal usr-ldscript |
373 |
- |
374 |
-MY_PV=$(get_major_version)-$(get_after_major_version) |
375 |
-MY_P=${PN}-${MY_PV} |
376 |
- |
377 |
-DESCRIPTION="BSD replacement for libreadline" |
378 |
-HOMEPAGE="https://thrysoee.dk/editline/" |
379 |
-SRC_URI="https://thrysoee.dk/editline/${MY_P}.tar.gz" |
380 |
- |
381 |
-LICENSE="BSD-2" |
382 |
-SLOT="0" |
383 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
384 |
-IUSE="static-libs" |
385 |
- |
386 |
-DEPEND=">=sys-libs/ncurses-5.9-r3[static-libs?,${MULTILIB_USEDEP}] |
387 |
- !<=sys-freebsd/freebsd-lib-6.2_rc1" |
388 |
- |
389 |
-RDEPEND=${DEPEND} |
390 |
- |
391 |
-S="${WORKDIR}/${MY_P}" |
392 |
- |
393 |
-PATCHES=( |
394 |
- "${FILESDIR}/${PN}-ncursesprivate.patch" |
395 |
- "${FILESDIR}/${PN}-20100424.3.0-bsd.patch" |
396 |
- "${FILESDIR}/${PN}-20110709.3.0-weak-reference.patch" |
397 |
- "${FILESDIR}/${PN}-20120311-3.0-el_fn_sh_complete.patch" |
398 |
- ) |
399 |
- |
400 |
-multilib_src_configure() { |
401 |
- ECONF_SOURCE="${S}" econf \ |
402 |
- $(use_enable static-libs static) \ |
403 |
- --enable-widec \ |
404 |
- --enable-fast-install |
405 |
-} |
406 |
- |
407 |
-multilib_src_install() { |
408 |
- emake DESTDIR="${D}" install |
409 |
- gen_usr_ldscript -a edit |
410 |
-} |
411 |
- |
412 |
-multilib_src_install_all() { |
413 |
- einstalldocs |
414 |
- prune_libtool_files --all |
415 |
-} |