1 |
commit: 97800e2351de3c3bdb694acbcb71965ec3686c98 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 27 10:44:51 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 27 10:45:44 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97800e23 |
7 |
|
8 |
sys-apps/gawk: Removed old. |
9 |
|
10 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
11 |
|
12 |
sys-apps/gawk/Manifest | 3 - |
13 |
sys-apps/gawk/files/filefuncs/Makefile | 56 --- |
14 |
sys-apps/gawk/files/filefuncs/filefuncs.c | 484 --------------------- |
15 |
.../files/gawk-4.1.3-bsd_configure_readline.patch | 63 --- |
16 |
sys-apps/gawk/gawk-4.0.2.ebuild | 73 ---- |
17 |
sys-apps/gawk/gawk-4.1.3.ebuild | 72 --- |
18 |
sys-apps/gawk/gawk-4.2.0.ebuild | 83 ---- |
19 |
sys-apps/gawk/gawk-4.2.1.ebuild | 83 ---- |
20 |
8 files changed, 917 deletions(-) |
21 |
|
22 |
diff --git a/sys-apps/gawk/Manifest b/sys-apps/gawk/Manifest |
23 |
index f59e171ea94..bd74f33aff2 100644 |
24 |
--- a/sys-apps/gawk/Manifest |
25 |
+++ b/sys-apps/gawk/Manifest |
26 |
@@ -1,5 +1,2 @@ |
27 |
-DIST gawk-4.0.2.tar.xz 1626808 BLAKE2B f66ebc3650c7288d46ed4548f07c83cbd591873a5d364965d6768e6455f64334cb03cb91e83a110d5edaa917c7fed714cf66154cea5c0ec22ef982429ad03265 SHA512 069f68b6792521d94d4003764006ad8fbe9a17c60a88212629204d9a5eb3f662903fff6d91dd3c1834597b76c18f9d3231c93a033f456c59c0571ac13eb77b27 |
28 |
-DIST gawk-4.1.3.tar.xz 2311268 BLAKE2B 956872ef3c8bdf27ccf9c3f7f158f161f42bb8607af7f966e843e24cb4e4e89380cd05a3169157cc822ea5ce8d849993b952795ecd0ecf14213f0bdd689d1b16 SHA512 8b9470a1bba397353f10e4e652e8589a637a49e8235fb39ca7681ae662fd27cd140c193d0634179c800f99e19b0e49aef55dfa6612f9695ba80760a36936a1c3 |
29 |
DIST gawk-4.1.4.tar.xz 2367832 BLAKE2B 67004e2867e4c4f43aac7142a52c83642d8bb3b0a5451293418bc15e575a8ed1d97c0a975e084bf46ffd1c27dc70e48de492cd2e007773622ef14886b9269ee1 SHA512 6a0e9cf086544212f54b54261dcd517b611aaf495ef99c4b7740d07e363bb00c5632f3d7fd5e12a954d5aa9793764162a57453e0e18884b29c6c54b5f444c097 |
30 |
-DIST gawk-4.2.0.tar.xz 2948108 BLAKE2B 6e46b70480184edd3a70bcea2b4e4448b4dfbac317be6e1a6d9225bc6c0b42abe49fe9380231cb3fc87efd449d2c5232ac7099b4c4472c3815a52200ef0013a3 SHA512 3076b2f42e43fff0ce63dcaa3fb749ce421473d0abc3e1e2d9dd375207d3e35c98d5bf91c3179f49156e8a4977424c16bb2d3d662846ad487153729dd4cfeb4c |
31 |
DIST gawk-4.2.1.tar.xz 2985412 BLAKE2B ea0635904ae8af8943d545b21affbfad64de5a688a615e22e1af2634583d0002094c0668c3260837184f965452ccf84141fff705bbf42d55b6d55c7516c24d8b SHA512 0e3006a795dc3ac91359a7d2590c0cccbfd39b18a1d491617d68505c55a2800355b1439050681b4fcacf65fb0d533151a046babe0fd774503037bab363ef2ae4 |
32 |
|
33 |
diff --git a/sys-apps/gawk/files/filefuncs/Makefile b/sys-apps/gawk/files/filefuncs/Makefile |
34 |
deleted file mode 100644 |
35 |
index 498793805c0..00000000000 |
36 |
--- a/sys-apps/gawk/files/filefuncs/Makefile |
37 |
+++ /dev/null |
38 |
@@ -1,56 +0,0 @@ |
39 |
-# Copyright 1999-2004 Gentoo Foundation |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
-# Author: Martin Schlemmer <azarah@g.o> |
42 |
- |
43 |
-CC ?= gcc |
44 |
-LD = $(CC) |
45 |
- |
46 |
-MAJORVER = 0 |
47 |
-MINORVER = 0.1 |
48 |
- |
49 |
-AWKINCDIR = /usr/include/awk |
50 |
-DESTDIR = |
51 |
- |
52 |
-TARGET = filefuncs |
53 |
-TARGET_LIB = $(TARGET).so.$(MAJORVER).$(MINORVER) |
54 |
- |
55 |
-LIBDIR = lib |
56 |
- |
57 |
-# Gentoo specific cruft, you like it dont ya idiot |
58 |
-ifdef D |
59 |
-DESTDIR = $(D) |
60 |
-endif |
61 |
-ifdef S |
62 |
-AWKINCDIR = $(S) |
63 |
-endif |
64 |
- |
65 |
-DOIT = yes |
66 |
-ifeq ($(USERLAND),Darwin) |
67 |
-DOIT = no |
68 |
-endif |
69 |
- |
70 |
-ifeq ($(DOIT),yes) |
71 |
- |
72 |
-all: $(TARGET_LIB) |
73 |
- |
74 |
-$(TARGET).o: $(TARGET).c |
75 |
- $(CC) $(CFLAGS) $(CPPFLAGS) -shared -Wall -DHAVE_CONFIG_H -c -O2 -fPIC -I$(AWKINCDIR) $^ |
76 |
- |
77 |
-$(TARGET_LIB): $(TARGET).o |
78 |
- $(LD) $(LDFLAGS) -o $@ -shared -Wl,-soname -Wl,$(TARGET).so.$(MAJORVER) $^ |
79 |
- |
80 |
-install: $(TARGET_LIB) |
81 |
- install -m 0755 -d $(DESTDIR)/$(LIBDIR)/rcscripts |
82 |
- install -m 0755 $(TARGET_LIB) $(DESTDIR)/$(LIBDIR)/rcscripts |
83 |
- ln -s $(TARGET_LIB) $(DESTDIR)/$(LIBDIR)/rcscripts/$(TARGET).so.$(MAJORVER) |
84 |
- ln -s $(TARGET_LIB) $(DESTDIR)/$(LIBDIR)/rcscripts/$(TARGET).so |
85 |
- |
86 |
-clean: |
87 |
- rm -f $(TARGET) |
88 |
- rm -f *.o *~ core |
89 |
- |
90 |
-else |
91 |
- |
92 |
-all install clean: |
93 |
- |
94 |
-endif |
95 |
|
96 |
diff --git a/sys-apps/gawk/files/filefuncs/filefuncs.c b/sys-apps/gawk/files/filefuncs/filefuncs.c |
97 |
deleted file mode 100644 |
98 |
index 04c9db7fe10..00000000000 |
99 |
--- a/sys-apps/gawk/files/filefuncs/filefuncs.c |
100 |
+++ /dev/null |
101 |
@@ -1,484 +0,0 @@ |
102 |
-/* |
103 |
- * filefuncs.c - Builtin functions that provide initial minimal iterface |
104 |
- * to the file system. |
105 |
- * |
106 |
- * Arnold Robbins, update for 3.1, Mon Nov 23 12:53:39 EST 1998 |
107 |
- */ |
108 |
- |
109 |
-/* |
110 |
- * Copyright (C) 2001 the Free Software Foundation, Inc. |
111 |
- * |
112 |
- * This file is part of GAWK, the GNU implementation of the |
113 |
- * AWK Programming Language. |
114 |
- * |
115 |
- * GAWK is free software; you can redistribute it and/or modify |
116 |
- * it under the terms of the GNU General Public License as published by |
117 |
- * the Free Software Foundation; either version 2 of the License, or |
118 |
- * (at your option) any later version. |
119 |
- * |
120 |
- * GAWK is distributed in the hope that it will be useful, |
121 |
- * but WITHOUT ANY WARRANTY; without even the implied warranty of |
122 |
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
123 |
- * GNU General Public License for more details. |
124 |
- * |
125 |
- * You should have received a copy of the GNU General Public License |
126 |
- * along with this program; if not, write to the Free Software |
127 |
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
128 |
- */ |
129 |
- |
130 |
-/* |
131 |
- * Copyright 1999-2004 Gentoo Foundation |
132 |
- * Distributed under the terms of the GNU General Public License v2 |
133 |
- * Author: Martin Schlemmer <azarah@g.o>, Nov 2002 |
134 |
- * |
135 |
- * Extended with: do_symlink() |
136 |
- * do_unlink() |
137 |
- * do_mkdir() |
138 |
- * do_rmdir() |
139 |
- * |
140 |
- * for use in the Gentoo rcscripts |
141 |
- * |
142 |
- */ |
143 |
- |
144 |
-#include "awk.h" |
145 |
- |
146 |
-#include <unistd.h> |
147 |
- |
148 |
-/* do_chdir --- provide dynamically loaded chdir() builtin for gawk */ |
149 |
- |
150 |
-static NODE * |
151 |
-do_chdir(tree) |
152 |
-NODE *tree; |
153 |
-{ |
154 |
- NODE *newdir; |
155 |
- int ret = -1; |
156 |
- |
157 |
- if (do_lint && tree->param_cnt > 1) |
158 |
- lintwarn("chdir: called with too many arguments"); |
159 |
- |
160 |
- newdir = get_argument(tree, 0); |
161 |
- if (newdir != NULL) { |
162 |
- (void) force_string(newdir); |
163 |
- ret = chdir(newdir->stptr); |
164 |
- if (ret < 0) |
165 |
- update_ERRNO(); |
166 |
- |
167 |
- free_temp(newdir); |
168 |
- } else if (do_lint) |
169 |
- lintwarn("chdir: called with no arguments"); |
170 |
- |
171 |
- |
172 |
- /* Set the return value */ |
173 |
- set_value(tmp_number((AWKNUM) ret)); |
174 |
- |
175 |
- /* Just to make the interpreter happy */ |
176 |
- return tmp_number((AWKNUM) 0); |
177 |
-} |
178 |
- |
179 |
-/* do_symlink --- provide dynamically loaded symlink() builtin for gawk */ |
180 |
- |
181 |
-static NODE * |
182 |
-do_symlink(tree) |
183 |
-NODE *tree; |
184 |
-{ |
185 |
- NODE *oldpath, *newpath; |
186 |
- int ret = -1; |
187 |
- |
188 |
- if (do_lint && tree->param_cnt > 2) |
189 |
- lintwarn("symlink: called with too many arguments"); |
190 |
- |
191 |
- oldpath = get_argument(tree, 0); |
192 |
- newpath = get_argument(tree, 1); |
193 |
- if ((oldpath != NULL) && (newpath)) { |
194 |
- (void) force_string(oldpath); |
195 |
- (void) force_string(newpath); |
196 |
- ret = symlink(oldpath->stptr, newpath->stptr); |
197 |
- if (ret < 0) |
198 |
- update_ERRNO(); |
199 |
- |
200 |
- free_temp(oldpath); |
201 |
- free_temp(newpath); |
202 |
- } else if (do_lint) |
203 |
- lintwarn("symlink: called with not enough arguments"); |
204 |
- |
205 |
- /* Set the return value */ |
206 |
- set_value(tmp_number((AWKNUM) ret)); |
207 |
- |
208 |
- /* Just to make the interpreter happy */ |
209 |
- return tmp_number((AWKNUM) 0); |
210 |
-} |
211 |
- |
212 |
-/* do_unlink --- provide dynamically loaded unlink() builtin for gawk */ |
213 |
- |
214 |
-static NODE * |
215 |
-do_unlink(tree) |
216 |
-NODE *tree; |
217 |
-{ |
218 |
- NODE *pathname; |
219 |
- int ret = -1; |
220 |
- |
221 |
- if (do_lint && tree->param_cnt > 1) |
222 |
- lintwarn("unlink: called with too many arguments"); |
223 |
- |
224 |
- pathname = get_argument(tree, 0); |
225 |
- if (pathname != NULL) { |
226 |
- (void) force_string(pathname); |
227 |
- ret = unlink(pathname->stptr); |
228 |
- if (ret < 0) |
229 |
- update_ERRNO(); |
230 |
- |
231 |
- free_temp(pathname); |
232 |
- } else if (do_lint) |
233 |
- lintwarn("unlink: called with no arguments"); |
234 |
- |
235 |
- /* Set the return value */ |
236 |
- set_value(tmp_number((AWKNUM) ret)); |
237 |
- |
238 |
- /* Just to make the interpreter happy */ |
239 |
- return tmp_number((AWKNUM) 0); |
240 |
-} |
241 |
- |
242 |
-/* do_mkdir --- provide dynamically loaded mkdir() builtin for gawk */ |
243 |
- |
244 |
-static NODE * |
245 |
-do_mkdir(tree) |
246 |
-NODE *tree; |
247 |
-{ |
248 |
- NODE *pathname, *mode; |
249 |
- int ret = -1; |
250 |
- |
251 |
- if (do_lint && tree->param_cnt > 2) |
252 |
- lintwarn("mkdir: called with too many arguments"); |
253 |
- |
254 |
- pathname = get_argument(tree, 0); |
255 |
- mode = get_argument(tree, 1); |
256 |
- if ((pathname != NULL) && (mode != NULL)) { |
257 |
- (void) force_string(pathname); |
258 |
- (void) force_number(mode); |
259 |
- ret = mkdir(pathname->stptr, mode->numbr); |
260 |
- if (ret < 0) |
261 |
- update_ERRNO(); |
262 |
- |
263 |
- free_temp(pathname); |
264 |
- free_temp(mode); |
265 |
- } else if (do_lint) |
266 |
- lintwarn("mkdir: called with not enough arguments"); |
267 |
- |
268 |
- /* Set the return value */ |
269 |
- set_value(tmp_number((AWKNUM) ret)); |
270 |
- |
271 |
- /* Just to make the interpreter happy */ |
272 |
- return tmp_number((AWKNUM) 0); |
273 |
-} |
274 |
- |
275 |
-/* do_rmdir --- provide dynamically loaded rmdir() builtin for gawk */ |
276 |
- |
277 |
-static NODE * |
278 |
-do_rmdir(tree) |
279 |
-NODE *tree; |
280 |
-{ |
281 |
- NODE *pathname; |
282 |
- int ret = -1; |
283 |
- |
284 |
- if (do_lint && tree->param_cnt > 1) |
285 |
- lintwarn("rmdir: called with too many arguments"); |
286 |
- |
287 |
- pathname = get_argument(tree, 0); |
288 |
- if (pathname != NULL) { |
289 |
- (void) force_string(pathname); |
290 |
- ret = rmdir(pathname->stptr); |
291 |
- if (ret < 0) |
292 |
- update_ERRNO(); |
293 |
- |
294 |
- free_temp(pathname); |
295 |
- } else if (do_lint) |
296 |
- lintwarn("rmdir: called with no arguments"); |
297 |
- |
298 |
- /* Set the return value */ |
299 |
- set_value(tmp_number((AWKNUM) ret)); |
300 |
- |
301 |
- /* Just to make the interpreter happy */ |
302 |
- return tmp_number((AWKNUM) 0); |
303 |
-} |
304 |
- |
305 |
-/* format_mode --- turn a stat mode field into something readable */ |
306 |
- |
307 |
-static char * |
308 |
-format_mode(fmode) |
309 |
-unsigned long fmode; |
310 |
-{ |
311 |
- static char outbuf[12]; |
312 |
- int i; |
313 |
- |
314 |
- strcpy(outbuf, "----------"); |
315 |
- /* first, get the file type */ |
316 |
- i = 0; |
317 |
- switch (fmode & S_IFMT) { |
318 |
-#ifdef S_IFSOCK |
319 |
- case S_IFSOCK: |
320 |
- outbuf[i] = 's'; |
321 |
- break; |
322 |
-#endif |
323 |
-#ifdef S_IFLNK |
324 |
- case S_IFLNK: |
325 |
- outbuf[i] = 'l'; |
326 |
- break; |
327 |
-#endif |
328 |
- case S_IFREG: |
329 |
- outbuf[i] = '-'; /* redundant */ |
330 |
- break; |
331 |
- case S_IFBLK: |
332 |
- outbuf[i] = 'b'; |
333 |
- break; |
334 |
- case S_IFDIR: |
335 |
- outbuf[i] = 'd'; |
336 |
- break; |
337 |
-#ifdef S_IFDOOR /* Solaris weirdness */ |
338 |
- case S_IFDOOR: |
339 |
- outbuf[i] = 'D'; |
340 |
- break; |
341 |
-#endif /* S_IFDOOR */ |
342 |
- case S_IFCHR: |
343 |
- outbuf[i] = 'c'; |
344 |
- break; |
345 |
-#ifdef S_IFIFO |
346 |
- case S_IFIFO: |
347 |
- outbuf[i] = 'p'; |
348 |
- break; |
349 |
-#endif |
350 |
- } |
351 |
- |
352 |
- i++; |
353 |
- if ((fmode & S_IRUSR) != 0) |
354 |
- outbuf[i] = 'r'; |
355 |
- i++; |
356 |
- if ((fmode & S_IWUSR) != 0) |
357 |
- outbuf[i] = 'w'; |
358 |
- i++; |
359 |
- if ((fmode & S_IXUSR) != 0) |
360 |
- outbuf[i] = 'x'; |
361 |
- i++; |
362 |
- |
363 |
- if ((fmode & S_IRGRP) != 0) |
364 |
- outbuf[i] = 'r'; |
365 |
- i++; |
366 |
- if ((fmode & S_IWGRP) != 0) |
367 |
- outbuf[i] = 'w'; |
368 |
- i++; |
369 |
- if ((fmode & S_IXGRP) != 0) |
370 |
- outbuf[i] = 'x'; |
371 |
- i++; |
372 |
- |
373 |
- if ((fmode & S_IROTH) != 0) |
374 |
- outbuf[i] = 'r'; |
375 |
- i++; |
376 |
- if ((fmode & S_IWOTH) != 0) |
377 |
- outbuf[i] = 'w'; |
378 |
- i++; |
379 |
- if ((fmode & S_IXOTH) != 0) |
380 |
- outbuf[i] = 'x'; |
381 |
- i++; |
382 |
- |
383 |
- outbuf[i] = '\0'; |
384 |
- |
385 |
- if ((fmode & S_ISUID) != 0) { |
386 |
- if (outbuf[3] == 'x') |
387 |
- outbuf[3] = 's'; |
388 |
- else |
389 |
- outbuf[3] = 'S'; |
390 |
- } |
391 |
- |
392 |
- /* setgid without execute == locking */ |
393 |
- if ((fmode & S_ISGID) != 0) { |
394 |
- if (outbuf[6] == 'x') |
395 |
- outbuf[6] = 's'; |
396 |
- else |
397 |
- outbuf[6] = 'l'; |
398 |
- } |
399 |
- |
400 |
- if ((fmode & S_ISVTX) != 0) { |
401 |
- if (outbuf[9] == 'x') |
402 |
- outbuf[9] = 't'; |
403 |
- else |
404 |
- outbuf[9] = 'T'; |
405 |
- } |
406 |
- |
407 |
- return outbuf; |
408 |
-} |
409 |
- |
410 |
-/* do_stat --- provide a stat() function for gawk */ |
411 |
- |
412 |
-static NODE * |
413 |
-do_stat(tree) |
414 |
-NODE *tree; |
415 |
-{ |
416 |
- NODE *file, *array; |
417 |
- struct stat sbuf; |
418 |
- int ret; |
419 |
- NODE **aptr; |
420 |
- char *pmode; /* printable mode */ |
421 |
- char *type = "unknown"; |
422 |
- |
423 |
- /* check arg count */ |
424 |
- if (tree->param_cnt != 2) |
425 |
- fatal( |
426 |
- "stat: called with incorrect number of arguments (%d), should be 2", |
427 |
- tree->param_cnt); |
428 |
- |
429 |
- /* directory is first arg, array to hold results is second */ |
430 |
- file = get_argument(tree, 0); |
431 |
- array = get_argument(tree, 1); |
432 |
- |
433 |
- /* empty out the array */ |
434 |
- assoc_clear(array); |
435 |
- |
436 |
- /* lstat the file, if error, set ERRNO and return */ |
437 |
- (void) force_string(file); |
438 |
- ret = lstat(file->stptr, & sbuf); |
439 |
- if (ret < 0) { |
440 |
- update_ERRNO(); |
441 |
- |
442 |
- set_value(tmp_number((AWKNUM) ret)); |
443 |
- |
444 |
- free_temp(file); |
445 |
- return tmp_number((AWKNUM) 0); |
446 |
- } |
447 |
- |
448 |
- /* fill in the array */ |
449 |
- aptr = assoc_lookup(array, tmp_string("name", 4), FALSE); |
450 |
- *aptr = dupnode(file); |
451 |
- |
452 |
- aptr = assoc_lookup(array, tmp_string("dev", 3), FALSE); |
453 |
- *aptr = make_number((AWKNUM) sbuf.st_dev); |
454 |
- |
455 |
- aptr = assoc_lookup(array, tmp_string("ino", 3), FALSE); |
456 |
- *aptr = make_number((AWKNUM) sbuf.st_ino); |
457 |
- |
458 |
- aptr = assoc_lookup(array, tmp_string("mode", 4), FALSE); |
459 |
- *aptr = make_number((AWKNUM) sbuf.st_mode); |
460 |
- |
461 |
- aptr = assoc_lookup(array, tmp_string("nlink", 5), FALSE); |
462 |
- *aptr = make_number((AWKNUM) sbuf.st_nlink); |
463 |
- |
464 |
- aptr = assoc_lookup(array, tmp_string("uid", 3), FALSE); |
465 |
- *aptr = make_number((AWKNUM) sbuf.st_uid); |
466 |
- |
467 |
- aptr = assoc_lookup(array, tmp_string("gid", 3), FALSE); |
468 |
- *aptr = make_number((AWKNUM) sbuf.st_gid); |
469 |
- |
470 |
- aptr = assoc_lookup(array, tmp_string("size", 4), FALSE); |
471 |
- *aptr = make_number((AWKNUM) sbuf.st_size); |
472 |
- |
473 |
- aptr = assoc_lookup(array, tmp_string("blocks", 6), FALSE); |
474 |
- *aptr = make_number((AWKNUM) sbuf.st_blocks); |
475 |
- |
476 |
- aptr = assoc_lookup(array, tmp_string("atime", 5), FALSE); |
477 |
- *aptr = make_number((AWKNUM) sbuf.st_atime); |
478 |
- |
479 |
- aptr = assoc_lookup(array, tmp_string("mtime", 5), FALSE); |
480 |
- *aptr = make_number((AWKNUM) sbuf.st_mtime); |
481 |
- |
482 |
- aptr = assoc_lookup(array, tmp_string("ctime", 5), FALSE); |
483 |
- *aptr = make_number((AWKNUM) sbuf.st_ctime); |
484 |
- |
485 |
- /* for block and character devices, add rdev, major and minor numbers */ |
486 |
- if (S_ISBLK(sbuf.st_mode) || S_ISCHR(sbuf.st_mode)) { |
487 |
- aptr = assoc_lookup(array, tmp_string("rdev", 4), FALSE); |
488 |
- *aptr = make_number((AWKNUM) sbuf.st_rdev); |
489 |
- |
490 |
- aptr = assoc_lookup(array, tmp_string("major", 5), FALSE); |
491 |
- *aptr = make_number((AWKNUM) major(sbuf.st_rdev)); |
492 |
- |
493 |
- aptr = assoc_lookup(array, tmp_string("minor", 5), FALSE); |
494 |
- *aptr = make_number((AWKNUM) minor(sbuf.st_rdev)); |
495 |
- } |
496 |
- |
497 |
-#ifdef HAVE_ST_BLKSIZE |
498 |
- aptr = assoc_lookup(array, tmp_string("blksize", 7), FALSE); |
499 |
- *aptr = make_number((AWKNUM) sbuf.st_blksize); |
500 |
-#endif /* HAVE_ST_BLKSIZE */ |
501 |
- |
502 |
- aptr = assoc_lookup(array, tmp_string("pmode", 5), FALSE); |
503 |
- pmode = format_mode(sbuf.st_mode); |
504 |
- *aptr = make_string(pmode, strlen(pmode)); |
505 |
- |
506 |
- /* for symbolic links, add a linkval field */ |
507 |
- if (S_ISLNK(sbuf.st_mode)) { |
508 |
- char buf[BUFSIZ*2]; |
509 |
- int linksize; |
510 |
- |
511 |
- linksize = readlink(file->stptr, buf, sizeof buf); |
512 |
- /* should make this smarter */ |
513 |
- if (linksize == sizeof(buf)) |
514 |
- fatal("size of symbolic link too big"); |
515 |
- buf[linksize] = '\0'; |
516 |
- |
517 |
- aptr = assoc_lookup(array, tmp_string("linkval", 7), FALSE); |
518 |
- *aptr = make_string(buf, linksize); |
519 |
- } |
520 |
- |
521 |
- /* add a type field */ |
522 |
- switch (sbuf.st_mode & S_IFMT) { |
523 |
-#ifdef S_IFSOCK |
524 |
- case S_IFSOCK: |
525 |
- type = "socket"; |
526 |
- break; |
527 |
-#endif |
528 |
-#ifdef S_IFLNK |
529 |
- case S_IFLNK: |
530 |
- type = "symlink"; |
531 |
- break; |
532 |
-#endif |
533 |
- case S_IFREG: |
534 |
- type = "file"; |
535 |
- break; |
536 |
- case S_IFBLK: |
537 |
- type = "blockdev"; |
538 |
- break; |
539 |
- case S_IFDIR: |
540 |
- type = "directory"; |
541 |
- break; |
542 |
-#ifdef S_IFDOOR |
543 |
- case S_IFDOOR: |
544 |
- type = "door"; |
545 |
- break; |
546 |
-#endif |
547 |
- case S_IFCHR: |
548 |
- type = "chardev"; |
549 |
- break; |
550 |
-#ifdef S_IFIFO |
551 |
- case S_IFIFO: |
552 |
- type = "fifo"; |
553 |
- break; |
554 |
-#endif |
555 |
- } |
556 |
- |
557 |
- aptr = assoc_lookup(array, tmp_string("type", 4), FALSE); |
558 |
- *aptr = make_string(type, strlen(type)); |
559 |
- |
560 |
- free_temp(file); |
561 |
- |
562 |
- /* Set the return value */ |
563 |
- set_value(tmp_number((AWKNUM) ret)); |
564 |
- |
565 |
- /* Just to make the interpreter happy */ |
566 |
- return tmp_number((AWKNUM) 0); |
567 |
-} |
568 |
- |
569 |
-/* dlload --- load new builtins in this library */ |
570 |
- |
571 |
-NODE * |
572 |
-dlload(tree, dl) |
573 |
-NODE *tree; |
574 |
-void *dl; |
575 |
-{ |
576 |
- make_builtin("chdir", do_chdir, 1); |
577 |
- make_builtin("symlink", do_symlink, 2); |
578 |
- make_builtin("unlink", do_unlink, 1); |
579 |
- make_builtin("mkdir", do_mkdir, 2); |
580 |
- make_builtin("rmdir", do_rmdir, 1); |
581 |
- make_builtin("stat", do_stat, 2); |
582 |
- |
583 |
- return tmp_number((AWKNUM) 0); |
584 |
-} |
585 |
- |
586 |
|
587 |
diff --git a/sys-apps/gawk/files/gawk-4.1.3-bsd_configure_readline.patch b/sys-apps/gawk/files/gawk-4.1.3-bsd_configure_readline.patch |
588 |
deleted file mode 100644 |
589 |
index 3bd267efd17..00000000000 |
590 |
--- a/sys-apps/gawk/files/gawk-4.1.3-bsd_configure_readline.patch |
591 |
+++ /dev/null |
592 |
@@ -1,63 +0,0 @@ |
593 |
-http://git.savannah.gnu.org/cgit/gawk.git/commit/?id=ac0ef52fe407b89c7968b927c7b2b513cc13963a |
594 |
- |
595 |
---- gawk-4.1.3/configure 2015-05-19 15:38:35.000000000 +0200 |
596 |
-+++ gawk-4.1.3/configure 2015-05-19 15:38:35.000000000 +0200 |
597 |
-@@ -10825,7 +10825,46 @@ |
598 |
- |
599 |
- if test $_found_readline = yes ; then |
600 |
- case $host_os in |
601 |
-- *bsd* ) _combo="$_combo -ltermcap" |
602 |
-+ *bsd* ) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 |
603 |
-+$as_echo_n "checking for tgetent in -ltermcap... " >&6; } |
604 |
-+if ${ac_cv_lib_termcap_tgetent+:} false; then : |
605 |
-+ $as_echo_n "(cached) " >&6 |
606 |
-+else |
607 |
-+ ac_check_lib_save_LIBS=$LIBS |
608 |
-+LIBS="-ltermcap $LIBS" |
609 |
-+cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
610 |
-+/* end confdefs.h. */ |
611 |
-+ |
612 |
-+/* Override any GCC internal prototype to avoid an error. |
613 |
-+ Use char because int might match the return type of a GCC |
614 |
-+ builtin and then its argument prototype would still apply. */ |
615 |
-+#ifdef __cplusplus |
616 |
-+extern "C" |
617 |
-+#endif |
618 |
-+char tgetent (); |
619 |
-+int |
620 |
-+main () |
621 |
-+{ |
622 |
-+return tgetent (); |
623 |
-+ ; |
624 |
-+ return 0; |
625 |
-+} |
626 |
-+_ACEOF |
627 |
-+if ac_fn_c_try_link "$LINENO"; then : |
628 |
-+ ac_cv_lib_termcap_tgetent=yes |
629 |
-+else |
630 |
-+ ac_cv_lib_termcap_tgetent=no |
631 |
-+fi |
632 |
-+rm -f core conftest.err conftest.$ac_objext \ |
633 |
-+ conftest$ac_exeext conftest.$ac_ext |
634 |
-+LIBS=$ac_check_lib_save_LIBS |
635 |
-+fi |
636 |
-+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 |
637 |
-+$as_echo "$ac_cv_lib_termcap_tgetent" >&6; } |
638 |
-+if test "x$ac_cv_lib_termcap_tgetent" = xyes; then : |
639 |
-+ _combo="$_combo -ltermcap" |
640 |
-+fi |
641 |
-+ |
642 |
- ;; |
643 |
- esac |
644 |
- |
645 |
---- gawk-4.1.3/m4/readline.m4 2015-04-05 12:19:19.000000000 +0200 |
646 |
-+++ gawk-4.1.3/m4/readline.m4 2015-04-05 12:19:19.000000000 +0200 |
647 |
-@@ -92,7 +92,7 @@ |
648 |
- |
649 |
- if test $_found_readline = yes ; then |
650 |
- case $host_os in |
651 |
-- *bsd* ) _combo="$_combo -ltermcap" |
652 |
-+ *bsd* ) AC_CHECK_LIB(termcap, tgetent, _combo="$_combo -ltermcap") |
653 |
- ;; |
654 |
- esac |
655 |
- AC_DEFINE(HAVE_LIBREADLINE,1, |
656 |
|
657 |
diff --git a/sys-apps/gawk/gawk-4.0.2.ebuild b/sys-apps/gawk/gawk-4.0.2.ebuild |
658 |
deleted file mode 100644 |
659 |
index 4108ca1c6ef..00000000000 |
660 |
--- a/sys-apps/gawk/gawk-4.0.2.ebuild |
661 |
+++ /dev/null |
662 |
@@ -1,73 +0,0 @@ |
663 |
-# Copyright 1999-2018 Gentoo Foundation |
664 |
-# Distributed under the terms of the GNU General Public License v2 |
665 |
- |
666 |
-EAPI="4" |
667 |
- |
668 |
-inherit eutils toolchain-funcs multilib |
669 |
- |
670 |
-DESCRIPTION="GNU awk pattern-matching language" |
671 |
-HOMEPAGE="https://www.gnu.org/software/gawk/gawk.html" |
672 |
-SRC_URI="mirror://gnu/gawk/${P}.tar.xz" |
673 |
- |
674 |
-LICENSE="GPL-2" |
675 |
-SLOT="0" |
676 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
677 |
-IUSE="nls readline" |
678 |
- |
679 |
-# older gawk's provided shared lib for baselayout-1 |
680 |
-RDEPEND="!<sys-apps/baselayout-2.0.1 |
681 |
- readline? ( sys-libs/readline )" |
682 |
-DEPEND="${RDEPEND} |
683 |
- nls? ( sys-devel/gettext )" |
684 |
- |
685 |
-src_prepare() { |
686 |
- # use symlinks rather than hardlinks, and disable version links |
687 |
- sed -i \ |
688 |
- -e '/^LN =/s:=.*:= $(LN_S):' \ |
689 |
- -e '/install-exec-hook:/s|$|\nfoo:|' \ |
690 |
- Makefile.in doc/Makefile.in |
691 |
- sed -i '/^pty1:$/s|$|\n_pty1:|' test/Makefile.in #413327 |
692 |
-} |
693 |
- |
694 |
-src_configure() { |
695 |
- export ac_cv_libsigsegv=no |
696 |
- econf \ |
697 |
- --libexec='$(libdir)/misc' \ |
698 |
- $(use_enable nls) \ |
699 |
- $(use_with readline) |
700 |
-} |
701 |
- |
702 |
-src_install() { |
703 |
- emake install DESTDIR="${D}" || die |
704 |
- |
705 |
- # Install headers |
706 |
- insinto /usr/include/awk |
707 |
- doins *.h || die |
708 |
- rm "${ED}"/usr/include/awk/config.h || die |
709 |
- |
710 |
- dodoc AUTHORS ChangeLog FUTURES LIMITATIONS NEWS PROBLEMS POSIX.STD README README_d/*.* |
711 |
- for x in */ChangeLog ; do |
712 |
- newdoc ${x} ${x##*/}.${x%%/*} |
713 |
- done |
714 |
-} |
715 |
- |
716 |
-pkg_postinst() { |
717 |
- # symlink creation here as the links do not belong to gawk, but to any awk |
718 |
- if has_version app-admin/eselect \ |
719 |
- && has_version app-eselect/eselect-awk ; then |
720 |
- eselect awk update ifunset |
721 |
- else |
722 |
- local l |
723 |
- for l in "${EROOT}"usr/share/man/man1/gawk.1* "${EROOT}"usr/bin/gawk; do |
724 |
- [[ -e ${l} && ! -e ${l/gawk/awk} ]] && ln -s "${l##*/}" "${l/gawk/awk}" |
725 |
- done |
726 |
- [[ ! -e ${EROOT}bin/awk ]] && ln -s "../usr/bin/gawk" "${EROOT}bin/awk" |
727 |
- fi |
728 |
-} |
729 |
- |
730 |
-pkg_postrm() { |
731 |
- if has_version app-admin/eselect \ |
732 |
- && has_version app-eselect/eselect-awk ; then |
733 |
- eselect awk update ifunset |
734 |
- fi |
735 |
-} |
736 |
|
737 |
diff --git a/sys-apps/gawk/gawk-4.1.3.ebuild b/sys-apps/gawk/gawk-4.1.3.ebuild |
738 |
deleted file mode 100644 |
739 |
index 26bb3ec3627..00000000000 |
740 |
--- a/sys-apps/gawk/gawk-4.1.3.ebuild |
741 |
+++ /dev/null |
742 |
@@ -1,72 +0,0 @@ |
743 |
-# Copyright 1999-2018 Gentoo Foundation |
744 |
-# Distributed under the terms of the GNU General Public License v2 |
745 |
- |
746 |
-EAPI="5" |
747 |
- |
748 |
-inherit eutils toolchain-funcs multilib |
749 |
- |
750 |
-DESCRIPTION="GNU awk pattern-matching language" |
751 |
-HOMEPAGE="https://www.gnu.org/software/gawk/gawk.html" |
752 |
-SRC_URI="mirror://gnu/gawk/${P}.tar.xz" |
753 |
- |
754 |
-LICENSE="GPL-2" |
755 |
-SLOT="0" |
756 |
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
757 |
-IUSE="mpfr nls readline" |
758 |
- |
759 |
-RDEPEND="mpfr? ( dev-libs/mpfr:0= ) |
760 |
- readline? ( sys-libs/readline:0= )" |
761 |
-DEPEND="${RDEPEND} |
762 |
- nls? ( sys-devel/gettext )" |
763 |
- |
764 |
-src_prepare() { |
765 |
- # use symlinks rather than hardlinks, and disable version links |
766 |
- sed -i \ |
767 |
- -e '/^LN =/s:=.*:= $(LN_S):' \ |
768 |
- -e '/install-exec-hook:/s|$|\nfoo:|' \ |
769 |
- Makefile.in doc/Makefile.in || die |
770 |
- sed -i '/^pty1:$/s|$|\n_pty1:|' test/Makefile.in #413327 |
771 |
- |
772 |
- EPATCH_OPTS="-Z" \ |
773 |
- epatch "${FILESDIR}/${P}-bsd_configure_readline.patch" #507468 |
774 |
-} |
775 |
- |
776 |
-src_configure() { |
777 |
- export ac_cv_libsigsegv=no |
778 |
- econf \ |
779 |
- --libexec='$(libdir)/misc' \ |
780 |
- $(use_with mpfr) \ |
781 |
- $(use_enable nls) \ |
782 |
- $(use_with readline) |
783 |
-} |
784 |
- |
785 |
-src_install() { |
786 |
- rm -rf README_d # automatic dodocs barfs |
787 |
- default |
788 |
- |
789 |
- # Install headers |
790 |
- insinto /usr/include/awk |
791 |
- doins *.h || die |
792 |
- rm "${ED}"/usr/include/awk/config.h || die |
793 |
-} |
794 |
- |
795 |
-pkg_postinst() { |
796 |
- # symlink creation here as the links do not belong to gawk, but to any awk |
797 |
- if has_version app-admin/eselect \ |
798 |
- && has_version app-eselect/eselect-awk ; then |
799 |
- eselect awk update ifunset |
800 |
- else |
801 |
- local l |
802 |
- for l in "${EROOT}"usr/share/man/man1/gawk.1* "${EROOT}"usr/bin/gawk; do |
803 |
- [[ -e ${l} && ! -e ${l/gawk/awk} ]] && ln -s "${l##*/}" "${l/gawk/awk}" |
804 |
- done |
805 |
- [[ ! -e ${EROOT}bin/awk ]] && ln -s "../usr/bin/gawk" "${EROOT}bin/awk" |
806 |
- fi |
807 |
-} |
808 |
- |
809 |
-pkg_postrm() { |
810 |
- if has_version app-admin/eselect \ |
811 |
- && has_version app-eselect/eselect-awk ; then |
812 |
- eselect awk update ifunset |
813 |
- fi |
814 |
-} |
815 |
|
816 |
diff --git a/sys-apps/gawk/gawk-4.2.0.ebuild b/sys-apps/gawk/gawk-4.2.0.ebuild |
817 |
deleted file mode 100644 |
818 |
index 920298905c4..00000000000 |
819 |
--- a/sys-apps/gawk/gawk-4.2.0.ebuild |
820 |
+++ /dev/null |
821 |
@@ -1,83 +0,0 @@ |
822 |
-# Copyright 1999-2018 Gentoo Foundation |
823 |
-# Distributed under the terms of the GNU General Public License v2 |
824 |
- |
825 |
-EAPI=6 |
826 |
- |
827 |
-inherit toolchain-funcs multilib |
828 |
- |
829 |
-DESCRIPTION="GNU awk pattern-matching language" |
830 |
-HOMEPAGE="https://www.gnu.org/software/gawk/gawk.html" |
831 |
-SRC_URI="mirror://gnu/gawk/${P}.tar.xz" |
832 |
- |
833 |
-LICENSE="GPL-2" |
834 |
-SLOT="0" |
835 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
836 |
-IUSE="mpfr nls readline" |
837 |
- |
838 |
-RDEPEND=" |
839 |
- dev-libs/gmp:0= |
840 |
- mpfr? ( dev-libs/mpfr:0= ) |
841 |
- readline? ( sys-libs/readline:0= ) |
842 |
-" |
843 |
-DEPEND="${RDEPEND} |
844 |
- nls? ( sys-devel/gettext )" |
845 |
- |
846 |
-src_prepare() { |
847 |
- default |
848 |
- |
849 |
- # use symlinks rather than hardlinks, and disable version links |
850 |
- sed -i \ |
851 |
- -e '/^LN =/s:=.*:= $(LN_S):' \ |
852 |
- -e '/install-exec-hook:/s|$|\nfoo:|' \ |
853 |
- Makefile.in doc/Makefile.in || die |
854 |
- sed -i '/^pty1:$/s|$|\n_pty1:|' test/Makefile.in #413327 |
855 |
- # fix standards conflict on Solaris |
856 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
857 |
- sed -i \ |
858 |
- -e '/\<_XOPEN_SOURCE\>/s/1$/600/' \ |
859 |
- -e '/\<_XOPEN_SOURCE_EXTENDED\>/s/1//' \ |
860 |
- extension/inplace.c || die |
861 |
- fi |
862 |
-} |
863 |
- |
864 |
-src_configure() { |
865 |
- export ac_cv_libsigsegv=no |
866 |
- local myeconfargs=( |
867 |
- --libexec='$(libdir)/misc' |
868 |
- $(use_with mpfr) |
869 |
- $(use_enable nls) |
870 |
- $(use_with readline) |
871 |
- ) |
872 |
- econf "${myeconfargs[@]}" |
873 |
-} |
874 |
- |
875 |
-src_install() { |
876 |
- rm -rf README_d # automatic dodocs barfs |
877 |
- default |
878 |
- |
879 |
- # Install headers |
880 |
- insinto /usr/include/awk |
881 |
- doins *.h || die |
882 |
- rm "${ED}"/usr/include/awk/config.h || die |
883 |
-} |
884 |
- |
885 |
-pkg_postinst() { |
886 |
- # symlink creation here as the links do not belong to gawk, but to any awk |
887 |
- if has_version app-admin/eselect \ |
888 |
- && has_version app-eselect/eselect-awk ; then |
889 |
- eselect awk update ifunset |
890 |
- else |
891 |
- local l |
892 |
- for l in "${EROOT%/}"/usr/share/man/man1/gawk.1* "${EROOT%/}"/usr/bin/gawk; do |
893 |
- [[ -e ${l} && ! -e ${l/gawk/awk} ]] && ln -s "${l##*/}" "${l/gawk/awk}" |
894 |
- done |
895 |
- [[ ! -e ${EROOT%/}/bin/awk ]] && ln -s "../usr/bin/gawk" "${EROOT%/}/bin/awk" |
896 |
- fi |
897 |
-} |
898 |
- |
899 |
-pkg_postrm() { |
900 |
- if has_version app-admin/eselect \ |
901 |
- && has_version app-eselect/eselect-awk ; then |
902 |
- eselect awk update ifunset |
903 |
- fi |
904 |
-} |
905 |
|
906 |
diff --git a/sys-apps/gawk/gawk-4.2.1.ebuild b/sys-apps/gawk/gawk-4.2.1.ebuild |
907 |
deleted file mode 100644 |
908 |
index 58bcb228179..00000000000 |
909 |
--- a/sys-apps/gawk/gawk-4.2.1.ebuild |
910 |
+++ /dev/null |
911 |
@@ -1,83 +0,0 @@ |
912 |
-# Copyright 1999-2018 Gentoo Foundation |
913 |
-# Distributed under the terms of the GNU General Public License v2 |
914 |
- |
915 |
-EAPI=6 |
916 |
- |
917 |
-inherit toolchain-funcs multilib |
918 |
- |
919 |
-DESCRIPTION="GNU awk pattern-matching language" |
920 |
-HOMEPAGE="https://www.gnu.org/software/gawk/gawk.html" |
921 |
-SRC_URI="mirror://gnu/gawk/${P}.tar.xz" |
922 |
- |
923 |
-LICENSE="GPL-2" |
924 |
-SLOT="0" |
925 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
926 |
-IUSE="mpfr nls readline" |
927 |
- |
928 |
-RDEPEND=" |
929 |
- dev-libs/gmp:0= |
930 |
- mpfr? ( dev-libs/mpfr:0= ) |
931 |
- readline? ( sys-libs/readline:0= ) |
932 |
-" |
933 |
-DEPEND="${RDEPEND} |
934 |
- nls? ( sys-devel/gettext )" |
935 |
- |
936 |
-src_prepare() { |
937 |
- default |
938 |
- |
939 |
- # use symlinks rather than hardlinks, and disable version links |
940 |
- sed -i \ |
941 |
- -e '/^LN =/s:=.*:= $(LN_S):' \ |
942 |
- -e '/install-exec-hook:/s|$|\nfoo:|' \ |
943 |
- Makefile.in doc/Makefile.in || die |
944 |
- sed -i '/^pty1:$/s|$|\n_pty1:|' test/Makefile.in #413327 |
945 |
- # fix standards conflict on Solaris |
946 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
947 |
- sed -i \ |
948 |
- -e '/\<_XOPEN_SOURCE\>/s/1$/600/' \ |
949 |
- -e '/\<_XOPEN_SOURCE_EXTENDED\>/s/1//' \ |
950 |
- extension/inplace.c || die |
951 |
- fi |
952 |
-} |
953 |
- |
954 |
-src_configure() { |
955 |
- export ac_cv_libsigsegv=no |
956 |
- local myeconfargs=( |
957 |
- --libexec='$(libdir)/misc' |
958 |
- $(use_with mpfr) |
959 |
- $(use_enable nls) |
960 |
- $(use_with readline) |
961 |
- ) |
962 |
- econf "${myeconfargs[@]}" |
963 |
-} |
964 |
- |
965 |
-src_install() { |
966 |
- rm -rf README_d # automatic dodocs barfs |
967 |
- default |
968 |
- |
969 |
- # Install headers |
970 |
- insinto /usr/include/awk |
971 |
- doins *.h |
972 |
- rm "${ED%/}"/usr/include/awk/config.h || die |
973 |
-} |
974 |
- |
975 |
-pkg_postinst() { |
976 |
- # symlink creation here as the links do not belong to gawk, but to any awk |
977 |
- if has_version app-admin/eselect \ |
978 |
- && has_version app-eselect/eselect-awk ; then |
979 |
- eselect awk update ifunset |
980 |
- else |
981 |
- local l |
982 |
- for l in "${EROOT}"/usr/share/man/man1/gawk.1* "${EROOT}"/usr/bin/gawk; do |
983 |
- [[ -e ${l} && ! -e ${l/gawk/awk} ]] && ln -s "${l##*/}" "${l/gawk/awk}" |
984 |
- done |
985 |
- [[ ! -e ${EROOT}/bin/awk ]] && ln -s "../usr/bin/gawk" "${EROOT}/bin/awk" |
986 |
- fi |
987 |
-} |
988 |
- |
989 |
-pkg_postrm() { |
990 |
- if has_version app-admin/eselect \ |
991 |
- && has_version app-eselect/eselect-awk ; then |
992 |
- eselect awk update ifunset |
993 |
- fi |
994 |
-} |