Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mpage/files/, app-text/mpage/
Date: Sun, 15 Oct 2017 12:36:34
Message-Id: 1508070963.66c934dd2f5753d0d3b1fe61764f0925a24a7060.mgorny@gentoo
1 commit: 66c934dd2f5753d0d3b1fe61764f0925a24a7060
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 15 12:31:25 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 15 12:36:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66c934dd
7
8 app-text/mpage: Move patches to a dist tarball
9
10 Closes: https://bugs.gentoo.org/620550
11
12 app-text/mpage/Manifest | 1 +
13 app-text/mpage/files/01_previous_changes.patch | 740 ---------------------
14 .../mpage/files/10_bts354935_fix_fontdefs.patch | 39 --
15 .../mpage/files/20_bts416573_manpage_fixes.patch | 628 -----------------
16 .../mpage/files/30_bts443280_libdir_manpage.patch | 22 -
17 app-text/mpage/mpage-2.5.6-r1.ebuild | 7 +-
18 6 files changed, 5 insertions(+), 1432 deletions(-)
19
20 diff --git a/app-text/mpage/Manifest b/app-text/mpage/Manifest
21 index fd4f30a93ba..b9fbff03c55 100644
22 --- a/app-text/mpage/Manifest
23 +++ b/app-text/mpage/Manifest
24 @@ -1 +1,2 @@
25 +DIST mpage-2.5.6-gentoo-patchset.tar.bz2 12853 SHA256 87757a0a0b385b053b4c5a29e907bbe6687e347d5fcf920bc168d3b2ddf46422 SHA512 2bfbe4689e02fb76af58a6db3415227df38e71b45fcc3d563a12f505fab8ea78de0415c9ac6d7c9b873f23a9f65e1c8f708f902965ab10e18b2a217b67cc5f0d WHIRLPOOL f921a780c0abe5f38a7a3773de6167c23e0359a50a5da458a0c826491b47c6990ee3866369b82a59b293ad292ba0306def05618985f376751f34924cacd93813
26 DIST mpage-2.5.6.tgz 86748 SHA256 4fe66dfc27f7c4bfbca60ef617f968aa2e6ee877e8921aa968c16a03aa4edc04 SHA512 79a51d0fa08848b22f758e8bc3f57680d33492d261a0061c6cce002c3cb5f129a78221d2af1749c79d4e46385136d9996294499531e60e8fc501f9fd61f8077d WHIRLPOOL 9d7abfd66ba0faf53a18f9dc59d1566d22364f9a7b0593a149cae1d2e781f4c104dfcd984da63081b9276811f9832829d8feab1ad41040070ca8c7378e96f7cf
27
28 diff --git a/app-text/mpage/files/01_previous_changes.patch b/app-text/mpage/files/01_previous_changes.patch
29 deleted file mode 100644
30 index 9b3682547e8..00000000000
31 --- a/app-text/mpage/files/01_previous_changes.patch
32 +++ /dev/null
33 @@ -1,740 +0,0 @@
34 -Index: mpage-2.5.6/file.c
35 -===================================================================
36 ---- mpage-2.5.6.orig/file.c 2008-08-11 23:14:20.500638502 +0200
37 -+++ mpage-2.5.6/file.c 2008-08-11 23:28:25.560795737 +0200
38 -@@ -363,7 +363,7 @@
39 - Debug(DB_STDIN, "%%iswanted: opt_first[i]: %d\n", opt_first[i]);
40 - Debug(DB_STDIN, "%%iswanted: opt_alt[i]: %d\n", opt_alt[i]);
41 - Debug(DB_STDIN, "%%iswanted: opt_last[i]: %d\n", opt_last[i]);
42 -- if ((sn >= opt_first[i] && (opt_alt[i] <= 1 || (sn - opt_first[i]) % opt_alt[i] == 0) ) &&
43 -+ if ((sn >= opt_first[i]) && ((sn - opt_first[i]) % opt_alt[i] == 0) &&
44 - (sn <= opt_last[i])) {
45 - Debug(DB_STDIN, "%%iswanted: wanted page %d\n", sn);
46 - ps_outpages++;
47 -Index: mpage-2.5.6/mpage.1.in
48 -===================================================================
49 ---- mpage-2.5.6.orig/mpage.1.in 2008-08-11 23:17:10.154306512 +0200
50 -+++ mpage-2.5.6/mpage.1.in 2008-08-11 23:27:23.605265090 +0200
51 -@@ -1,4 +1,4 @@
52 --.TH MPAGE Local 2008/01/14
53 -+.TH MPAGE 1 2008/01/14
54 -
55 - .SH NAME
56 - mpage \- print multiple pages per sheet on PostScript printer
57 -@@ -417,17 +417,33 @@
58 - .TP
59 - .B -t
60 - Toggle printing on both sides of the paper.
61 --This will toggle duplex mode of the printer.
62 -++This option has 3 states: nop, yes, no, which mean:
63 -+.BR NOP :
64 -+ dont do anything on PostScript, so printer default will be used;
65 -+.BR YES :
66 -+ force printer to do duplex;
67 -+.BR NO :
68 -+force printer not to do it.
69 -+If there is no -t, then the duplex is NOP. If you put some -t on
70 -+the command line, the state toggles as "yes,no,yes,no...".
71 -+So, if your printer is set to print, by default, in duplex mode,
72 -+you will use "-t -t" on command line to force it to print in non-duplex mode.
73 - Use this option only if your printer is capable of printing in duplex mode.
74 - .RI ( default
75 --off).
76 -+NOP).
77 -
78 - .TP
79 - .B -T
80 --Toggle tumble of every second pages when printing in duplex mode.
81 --Use this option only if your printer is capable of printing in duplex mode
82 --and together with
83 --.BR -t .
84 -+Toggle tumble of every second pages.
85 -+This option has 3 states: nop, yes, no (with behaviour similar to -t).
86 -+So, if your printer is set to print, by default, in duplex mode,
87 -+with tumble on,
88 -+you will use "-T -T" on command line to print in nontumble mode.
89 -+Use this option only if your printer is capable of printing in duplex mode.
90 -+With this version of mpage,
91 -+you may use this option even if you do not use -t.
92 -+.RI ( default
93 -+NOP.)
94 -
95 - .TP
96 - .B -u
97 -@@ -546,7 +562,7 @@
98 - environment variables.
99 -
100 - .SH FILES
101 --/usr/tmp/mpageXXXXXX
102 -+/tmp/mpageXXXXXX
103 - .br
104 - PREFIX/share/mpage
105 -
106 -Index: mpage-2.5.6/mpage.c
107 -===================================================================
108 ---- mpage-2.5.6.orig/mpage.c 2008-08-11 23:31:51.044505584 +0200
109 -+++ mpage-2.5.6/mpage.c 2008-08-11 23:39:12.205645922 +0200
110 -@@ -44,9 +44,21 @@
111 - struct sheet *thesheet;
112 - char outcommand[LINESIZE]; /* the command which is the output filter */
113 -
114 -+ char * paper;
115 -+
116 - current_locale = setlocale(LC_ALL,"");
117 -
118 --
119 -+#ifdef LIBPAPER
120 -+ paperinit();
121 -+ paper = systempapername();
122 -+ if (!paper)
123 -+ {
124 -+ fprintf(stderr,"systempapername() returned NULL! exiting\n");
125 -+ exit(1);
126 -+ }
127 -+ strncpy(opt_page,paper,31);
128 -+#endif
129 -+
130 - #ifdef __EMX__
131 - /*
132 - * wildcard expansion from emx package (used by OS/2)
133 -@@ -235,10 +247,10 @@
134 - fprintf(outfd, "/mp_stm usertime def\n");
135 - fprintf(outfd, "/mp_pgc statusdict begin pagecount end def\n");
136 - fprintf(outfd, "statusdict begin /jobname (%s) def end\n", name);
137 -- if (opt_duplex) {
138 -+ if (opt_duplex && opt_duplex != 4 ) {
139 - fprintf(outfd, "statusdict /setduplexmode known");
140 - fprintf(outfd, " { statusdict begin true setduplexmode end } if\n");
141 -- if (opt_tumble) {
142 -+ if (opt_tumble && opt_tumble != 4 ) {
143 - fprintf(outfd, "statusdict /settumble known ");
144 - fprintf(outfd, "{ statusdict begin true settumble end } if\n");
145 - }
146 -Index: mpage-2.5.6/mpage.h
147 -===================================================================
148 ---- mpage-2.5.6.orig/mpage.h 2008-08-11 23:39:40.279245746 +0200
149 -+++ mpage-2.5.6/mpage.h 2008-08-11 23:45:02.565611800 +0200
150 -@@ -31,6 +31,10 @@
151 - #include <limits.h>
152 - #include <string.h>
153 -
154 -+#ifdef LIBPAPER
155 -+#include <paper.h>
156 -+#endif
157 -+
158 - #define VERSION "2.5.6 Januari 2008"
159 -
160 - #define TRUE 1
161 -@@ -125,10 +129,11 @@
162 - /*
163 - * set default page size
164 - */
165 -+#ifndef LIBPAPER
166 - #if !defined(PAGE_DEF)
167 - # define PAGE_DEF "A4"
168 - #endif
169 --
170 -+#endif
171 - /*
172 - * define print spooler types
173 - */
174 -@@ -221,9 +226,6 @@
175 - extern int ps_height; /* number of points in the Y direction (11 inches) */
176 - extern char * media; /* name of output page media */
177 -
178 --
179 --extern struct page_desc paper[];
180 --
181 - /* array of sheets where pages are ordered for coli ??? */
182 - extern struct sheet coli[];
183 -
184 -@@ -280,7 +282,11 @@
185 - extern int opt_width; /* number of columns to fit on reduced page */
186 - extern int opt_mp_header; /* let mpage create a header */
187 - extern int opt_sheetheader; /* let mpage create sheetheaders */
188 -+#ifndef LIBPAPER
189 - extern char * opt_page; /* sheets size: a4 or us letter */
190 -+#else
191 -+extern char opt_page[]; /* sheets size: a4 or us letter */
192 -+#endif
193 - extern int opt_fold; /* fold long lines */
194 - extern int opt_outline; /* print a nice outline around pages */
195 - extern int opt_verbose; /* print a count of pages sent to printer */
196 -Index: mpage-2.5.6/page.c
197 -===================================================================
198 ---- mpage-2.5.6.orig/page.c 2008-08-11 23:48:28.317336922 +0200
199 -+++ mpage-2.5.6/page.c 2008-08-11 23:55:46.090284181 +0200
200 -@@ -21,6 +21,8 @@
201 - #include "mpage.h"
202 - #include "string.h"
203 -
204 -+extern struct page_desc paper[];
205 -+
206 - #define PAPERSIZE_FILE "/etc/papersize"
207 - void
208 - check_papersize()
209 -@@ -59,12 +61,24 @@
210 - void
211 - set_page()
212 - {
213 -+#ifndef LIBPAPER
214 - int i = select_pagetype(opt_page);
215 -
216 - media = paper[i].media;
217 - ps_width = paper[i].width;
218 - ps_height = paper[i].height;
219 --
220 -+#else
221 -+ struct paper * ps;
222 -+ ps=paperinfo(opt_page);
223 -+ if (!ps) {
224 -+ fprintf(stderr,"%s: unknown page format: %s\n",
225 -+ MPAGE, opt_page);
226 -+ exit(1);
227 -+ }
228 -+ media = papername(ps);
229 -+ ps_width = paperpswidth(ps);
230 -+ ps_height = paperpsheight(ps);
231 -+#endif
232 - return;
233 -
234 - } /* set_page */
235 -@@ -76,11 +90,21 @@
236 - {
237 - int i = 0;
238 -
239 -+#ifndef LIBPAPER
240 - while (paper[i].media && strcasecmp(pt, paper[i].media))
241 - i++;
242 - if (paper[i].media)
243 - opt_page = paper[i].media;
244 - else
245 -+#else
246 -+ struct paper * ps;
247 -+
248 -+ strncpy(opt_page,pt,31);
249 -+ opt_page[31]='\0';
250 -+
251 -+ ps=paperinfo(opt_page);
252 -+ if (!ps)
253 -+#endif
254 - fprintf(stderr, "%s: ignoring unknown paper type: %s\n",
255 - MPAGE, pt);
256 - return i;
257 -Index: mpage-2.5.6/FAQ
258 -===================================================================
259 ---- mpage-2.5.6.orig/FAQ 2008-08-11 23:54:21.317453255 +0200
260 -+++ mpage-2.5.6/FAQ 2008-08-11 23:55:38.833870662 +0200
261 -@@ -27,3 +27,14 @@
262 -
263 - This information is buried in the dvips manual somewhere, but is not easy
264 - to find!
265 -+
266 -+Using mpage with magicfilter
267 -+============================
268 -+Andreas Jellinghaus <aj@××××××.org> writes:
269 -+
270 -+I'm using mpage with lprng and magicfilter. My local magic filter setup
271 -+is /usr/sbin/ljet4l-filter, and this line passes all ASCII files to mpage :
272 -+default pipe /usr/bin/mpage -A -2
273 -+
274 -+I don't want to waste paper with ASCII texts. MPage also works for
275 -+postscript files.
276 -Index: mpage-2.5.6/README
277 -===================================================================
278 ---- mpage-2.5.6.orig/README 2008-08-11 23:56:29.352749569 +0200
279 -+++ mpage-2.5.6/README 2008-08-11 23:07:25.849008850 +0200
280 -@@ -1,28 +1,3 @@
281 --
282 --COPYRIGHT:
283 --
284 --Mpage and all the files distributed with mpage are covered by copyright:
285 --
286 -- Copyright (c) 1994-2004 Marcel J.E. Mol, The Netherlands
287 -- Copyright (c) 1988 Mark P. Hahn, Herndon, Virginia
288 --
289 -- Permission is granted to anyone to make or distribute verbatim
290 -- copies of this document as received, in any medium, provided
291 -- that this copyright notice is preserved, and that the
292 -- distributor grants the recipient permission for further
293 -- redistribution as permitted by this notice.
294 --
295 -- marcel@××××.nl
296 -- MESA Consulting B.V.
297 -- Nootdorp
298 -- The Netherlands
299 -- Phone: +31-15-3105252
300 -- Mobile:+31-6-54724868
301 -- Fax: +31-15-3105253
302 -- email: info@××××.nl http://www.mesa.nl ftp://ftp.mesa.nl
303 --
304 --
305 --=================================================================
306 - DESCRIPTION:
307 -
308 - Mpage is a program to reduce and print multiple pages of text per
309 -@@ -30,54 +5,21 @@
310 - It also has limited functionality to do the same directly with postscript
311 - files.
312 -
313 --The following are the files you should have for mpage.
314 --
315 -- README Notes and descriptions, this file
316 -- README.OS2 OS/2 port description
317 -- Copyright Copyright notice
318 -- CHANGES Change history
319 -- Makefile The Makefile
320 -- TODO Wish List for changes
321 -- FAQ Useful tips and hints
322 -- NEWS Global changes, User visible changes
323 -- Mpage.lsm LSM file for mpage
324 -- args.c Command line and options processing
325 -- encoding.h Definition of internal default character encoding
326 -- encoding.h.CP850 Popular for renaming to encoding.h
327 -- file.c Generic file handling
328 -- glob.c Global variable setup
329 -- mpage.h Definitions
330 -- mpage.c Main Control
331 -- page.c Page layout routines
332 -- post.c PostScript file processing
333 -- sample.c Prints sample page layout pages
334 -- text.c Text file processing
335 -- util.c Misc utility functions
336 -- mpage.1 Manual page
337 -+The following are some of the files you should receive in the Debian
338 -+package:
339 -
340 - All.chars Test file containing all ASCII characters
341 - Encodings Directory with character encoding library files
342 - Characters List of Postscript character encoding names
343 - Encoding.format Description on how to create character encoding
344 - library files
345 -- gencodes.c Util program to build All.chars file
346 -- Test Directory with test pages
347 --
348 -- OS2 Directory with simulated lpr for OS/2
349 - Contrib Directory with contributions by others
350 - Contrib/mfix Fix to mpage that makes it work with ArborText
351 -
352 --
353 --INSTRUCTIONS:
354 --
355 --All you should need to do is run make. Actually it is probably better
356 --to have a look at the Makefile and to check settings like for example PAGESIZE
357 --to set the default page size (e.g A4 or Letter ...).
358 --This will create the programs mpage and msample. Mpage is
359 --the program to print n-up pages. Msample prints a sample outline. I
360 --used it for debugging the placement of the layout. It is also handy
361 --for other layout purposes. It accepts all the arguments that mpage
362 --does, but does not print files.
363 -+Msample prints a sample outline. I used it for debugging the
364 -+placement of the layout. It is also handy for other layout purposes.
365 -+It accepts all the arguments that mpage does, but does not print
366 -+files.
367 -
368 - As a quick sample try:
369 -
370 -@@ -87,9 +29,16 @@
371 - or
372 - "groff -man mpage.1 | mpage -2"
373 -
374 -+USING ENCODINGS:
375 -
376 --The manual page, mpage.1, formats with UCB or ATT manual macros.
377 -+Example supplied by Vassilis Virvilis. To print Greek characters, use
378 -+the Greek fonts from http://www.csd.uch.gr/~lourakis/genscript/. Both
379 -+enscript and a2ps embed the fonts in the generated postscript
380 -+document. mpage utilizes the printer fonts. Therefore you will have to
381 -+actually install the font for ghostscript. To print the Greek
382 -+characters, use the following command:
383 -
384 -+ mpage -FCourier-ISOLatinGreek -CISO-8859.7 test.txt > test.ps
385 -
386 -
387 - USING MPAGE:
388 -Index: mpage-2.5.6/args.c
389 -===================================================================
390 ---- mpage-2.5.6.orig/args.c 2008-08-11 23:57:11.963177801 +0200
391 -+++ mpage-2.5.6/args.c 2008-08-11 23:07:25.817007026 +0200
392 -@@ -91,7 +91,11 @@
393 - UPDOWN : LEFTRIGHT;
394 - break;
395 - case 'A': /* A4 sized, european paper */
396 -+#ifndef LIBPAPER
397 - opt_page = "A4"; /* deprecated */
398 -+#else
399 -+ strcpy(opt_page,"a4");
400 -+#endif
401 - break;
402 - case 'b': /* base paper type */
403 - OPTARG();
404 -@@ -386,17 +390,25 @@
405 - case 'S':
406 - opt_square = 0;
407 - break;
408 -+// opt_duplex and opt_tumble have 3 possible values:
409 -+// 4 : do not do anything
410 -+// 0 : force printer to do it
411 -+// !0 : force printer not to do it
412 - case 't':
413 -- opt_duplex = 1 - opt_duplex;
414 -+ opt_duplex = ! opt_duplex;
415 - break;
416 - case 'T':
417 -- opt_tumble = 1 - opt_tumble;
418 -+ opt_tumble = ! opt_tumble;
419 - break;
420 - case 'u':
421 - check_utf8 = 1 - check_utf8;
422 - break;
423 - case 'U': /* Letter sized, US paper */
424 -+#ifndef LIBPAPER
425 - opt_page = "Letter"; /* deprecated */
426 -+#else
427 -+ strcpy(opt_page,"letter");
428 -+#endif
429 - break;
430 - case 'v': /* verbose (print page count) */
431 - opt_verbose = 1 - opt_verbose;
432 -Index: mpage-2.5.6/glob.c
433 -===================================================================
434 ---- mpage-2.5.6.orig/glob.c 2008-08-11 23:58:11.934595375 +0200
435 -+++ mpage-2.5.6/glob.c 2008-08-11 23:07:25.829007710 +0200
436 -@@ -327,7 +327,11 @@
437 - int opt_lines = 0; /* lines to fit on reduced page */
438 - int opt_killtrail = 1; /* Quit reading input on %%TRailer */
439 - int opt_width = 0; /* columns to fit on reduced page */
440 -+#ifndef LIBPAPER
441 - char * opt_page = PAGE_DEF; /* default paper size */
442 -+#else
443 -+char opt_page [32]; /* default paper size */
444 -+#endif
445 - /* boolean's: set default to 0 or 1 */
446 - int opt_pr = 0; /* if true use pr(1) to format output */
447 - int opt_mp_header = 0; /* let mpage create headers */
448 -@@ -342,8 +346,12 @@
449 - int opt_last[MAXJARG]; /* print as many as supplied per -j */
450 - int opt_alt[MAXJARG]; /* by default print all sheets, odd+even per -j*/
451 - int opt_file = 1; /* should each file appera on a new sheet */
452 --int opt_duplex = DEFAULT_DUPLEX; /* duplex mode flag */
453 --int opt_tumble = 0; /* tumble overy second pages */
454 -+// opt_duplex and opt_tumble have 3 possible values:
455 -+// 4 , aka NOP : dont do anything on PostScript,so printer default will be used
456 -+// 0 , aka yes : force printer to do it
457 -+// !0, aka no : force printer not to do it
458 -+int opt_duplex = 4; /* duplex mode flag */
459 -+int opt_tumble = 4; /* tumble overy second pages */
460 - int opt_textbox = 0; /* don't normally draw box around text */
461 - int opt_input = IN_AUTO; /* select input file format */
462 - int opt_encoding = DEFAULT_ENCODING; /* use default encoding or not */
463 -@@ -420,10 +428,15 @@
464 - -j Print specified sheets: first[-last][%%interval]\n\
465 - -j 1-10 does first 10 sheets, -j 1%%2 prints odd ones, -j 2%%2 even ones.\n\
466 - -J Set the start of the sheet page count\n\
467 -- -t Toggle printing both sides of the paper (Duplex mode, %s)\n\
468 -- -T Toggle tumble of every second pages when printing in duplex mode (off)\n",
469 -- fontname, opt_tabstop, PAGE_DEF, printprog, printarg,
470 -- opt_duplex ? "on" : "off"
471 -++ -t Toggle printing both sides of the paper (NOP,on,off,on...)\n\
472 -++ -T Toggle tumble of every second pages (NOP,on,off,on...)\n",
473 -+ fontname, opt_tabstop,
474 -+#ifndef LIBPAPER
475 -+ PAGE_DEF,
476 -+#else
477 -+ opt_page,
478 -+#endif
479 -+ PAGE_DEF, printprog, printarg
480 - );
481 - fprintf(stderr, "\n(c) 1993-2005 Marcel Mol, marcel@××××.nl (MESA Consulting)\n");
482 -
483 -Index: mpage-2.5.6/Contrib/psprint
484 -===================================================================
485 ---- mpage-2.5.6.orig/Contrib/psprint 2008-08-12 00:01:13.312931539 +0200
486 -+++ mpage-2.5.6/Contrib/psprint 2008-08-11 23:07:25.825007484 +0200
487 -@@ -1,10 +1,9 @@
488 --#!/bin/ksh -
489 -+#!/bin/sh -
490 -
491 - STDIN_TMP_FILE=/tmp/psprint.$$
492 -
493 - GS=/usr/local/bin/gs
494 - GSLIB=/usr/local/lib/ghostscript/3.53
495 --RM=/bin/rm
496 - #
497 - # define print command (SYSV or BSD ish)
498 - # PRINT="lp -or -s"
499 -@@ -20,7 +19,7 @@
500 - ${GSLIB}/quit.ps
501 - done
502 -
503 --${RM} -f "${STDIN_TMP_FILE}"
504 -+rm -f "${STDIN_TMP_FILE}"
505 -
506 - exit 0
507 -
508 -Index: mpage-2.5.6/Encodings/ISO-8859.7
509 -===================================================================
510 ---- /dev/null 1970-01-01 00:00:00.000000000 +0000
511 -+++ mpage-2.5.6/Encodings/ISO-8859.7 2008-08-11 23:07:25.853009079 +0200
512 -@@ -0,0 +1,231 @@
513 -+%%%% ISO-8859.7 character encoding (I think...)
514 -+27 255 % first and last encoding
515 -+027 /florin
516 -+028 /dagger
517 -+029 /daggerdbl
518 -+030 /perthousand
519 -+031 /trademark
520 -+032 /space
521 -+033 /exclam
522 -+034 /quotedbl
523 -+035 /numbersign
524 -+036 /dollar
525 -+037 /percent
526 -+038 /ampersand
527 -+039 /quoteright
528 -+040 /parenleft
529 -+041 /parenright
530 -+042 /asterisk
531 -+043 /plus
532 -+044 /comma
533 -+045 /hyphen
534 -+046 /period
535 -+047 /slash
536 -+048 /zero
537 -+049 /one
538 -+050 /two
539 -+051 /three
540 -+052 /four
541 -+053 /five
542 -+054 /six
543 -+055 /seven
544 -+056 /eight
545 -+057 /nine
546 -+058 /colon
547 -+059 /semicolon
548 -+060 /less
549 -+061 /equal
550 -+062 /greater
551 -+063 /question
552 -+064 /at
553 -+065 /A
554 -+066 /B
555 -+067 /C
556 -+068 /D
557 -+069 /E
558 -+070 /F
559 -+071 /G
560 -+072 /H
561 -+073 /I
562 -+074 /J
563 -+075 /K
564 -+076 /L
565 -+077 /M
566 -+078 /N
567 -+079 /O
568 -+080 /P
569 -+081 /Q
570 -+082 /R
571 -+083 /S
572 -+084 /T
573 -+085 /U
574 -+086 /V
575 -+087 /W
576 -+088 /X
577 -+089 /Y
578 -+090 /Z
579 -+091 /bracketleft
580 -+092 /backslash
581 -+093 /bracketright
582 -+094 /asciicircum
583 -+095 /underscore
584 -+096 /quoteleft
585 -+097 /a
586 -+098 /b
587 -+099 /c
588 -+100 /d
589 -+101 /e
590 -+102 /f
591 -+103 /g
592 -+104 /h
593 -+105 /i
594 -+106 /j
595 -+107 /k
596 -+108 /l
597 -+109 /m
598 -+110 /n
599 -+111 /o
600 -+112 /p
601 -+113 /q
602 -+114 /r
603 -+115 /s
604 -+116 /t
605 -+117 /u
606 -+118 /v
607 -+119 /w
608 -+120 /x
609 -+121 /y
610 -+122 /z
611 -+123 /braceleft
612 -+124 /bar
613 -+125 /braceright
614 -+126 /asciitilde
615 -+127 /.notdef
616 -+128 /.notdef
617 -+129 /.notdef
618 -+130 /.notdef
619 -+131 /.notdef
620 -+132 /.notdef
621 -+133 /.notdef
622 -+134 /.notdef
623 -+135 /.notdef
624 -+136 /.notdef
625 -+137 /.notdef
626 -+138 /.notdef
627 -+139 /.notdef
628 -+140 /.notdef
629 -+141 /.notdef
630 -+142 /.notdef
631 -+143 /.notdef
632 -+144 /.notdef
633 -+145 /.notdef
634 -+146 /.notdef
635 -+147 /.notdef
636 -+148 /.notdef
637 -+149 /.notdef
638 -+150 /.notdef
639 -+151 /.notdef
640 -+152 /.notdef
641 -+153 /.notdef
642 -+154 /.notdef
643 -+155 /.notdef
644 -+156 /.notdef
645 -+157 /.notdef
646 -+158 /.notdef
647 -+159 /.notdef
648 -+160 /space
649 -+161 /quoteleft
650 -+162 /quoteright
651 -+163 /sterling
652 -+164 /.notdef
653 -+165 /.notdef
654 -+166 /brokenbar
655 -+167 /section
656 -+168 /dieresis
657 -+169 /copyright
658 -+170 /.notdef
659 -+171 /guillemotleft
660 -+172 /logicalnot
661 -+173 /hyphen
662 -+174 /.notdef
663 -+175 /endash
664 -+176 /degree
665 -+177 /plusminus
666 -+178 /twosuperior
667 -+179 /threesuperior
668 -+180 /acute
669 -+181 /dieresisacute
670 -+182 /afii9936
671 -+183 /periodcentered
672 -+184 /afii9937
673 -+185 /afii9938
674 -+186 /afii9939
675 -+187 /guillemotright
676 -+188 /afii9940
677 -+189 /onehalf
678 -+190 /afii9941
679 -+191 /afii9942
680 -+192 /afii9977
681 -+193 /afii9793
682 -+194 /afii9794
683 -+195 /afii9796
684 -+196 /afii9797
685 -+197 /afii9798
686 -+198 /afii9801
687 -+199 /afii9802
688 -+200 /afii9803
689 -+201 /afii9804
690 -+202 /afii9805
691 -+203 /afii9806
692 -+204 /afii9807
693 -+205 /afii9808
694 -+206 /afii9809
695 -+207 /afii9810
696 -+208 /afii9811
697 -+209 /afii9813
698 -+210 /.notdef
699 -+211 /afii9814
700 -+212 /afii9816
701 -+213 /afii9817
702 -+214 /afii9818
703 -+215 /afii9819
704 -+216 /afii9820
705 -+217 /afii9821
706 -+218 /afii9943
707 -+219 /afii9944
708 -+220 /afii9968
709 -+221 /afii9969
710 -+222 /afii9970
711 -+223 /afii9971
712 -+224 /afii9978
713 -+225 /afii9825
714 -+226 /afii9826
715 -+227 /afii9828
716 -+228 /afii9829
717 -+229 /afii9830
718 -+230 /afii9833
719 -+231 /afii9834
720 -+232 /afii9835
721 -+233 /afii9836
722 -+234 /afii9837
723 -+235 /afii9838
724 -+236 /afii9839
725 -+237 /afii9840
726 -+238 /afii9841
727 -+239 /afii9842
728 -+240 /afii9843
729 -+241 /afii9845
730 -+242 /afii9847
731 -+243 /afii9846
732 -+244 /afii9848
733 -+245 /afii9849
734 -+246 /afii9850
735 -+247 /afii9851
736 -+248 /afii9852
737 -+249 /afii9853
738 -+250 /afii9975
739 -+251 /afii9976
740 -+252 /afii9972
741 -+253 /afii9973
742 -+254 /afii9974
743 -+255 /.notdef
744 -Index: mpage-2.5.6/Contrib/mfix/mfix.c
745 -===================================================================
746 ---- mpage-2.5.6.orig/Contrib/mfix/mfix.c 2008-08-12 00:02:40.797917022 +0200
747 -+++ mpage-2.5.6/Contrib/mfix/mfix.c 2008-08-11 23:07:25.829007710 +0200
748 -@@ -1,7 +1,7 @@
749 - #include <stdio.h>
750 -
751 --FILE *in=stdin,*out=stdout;
752 --char line[200]; line2[200];
753 -+FILE *in,*out;
754 -+char line[200], line2[200];
755 -
756 - int
757 - strcp(st1,st2)
758 -@@ -15,6 +15,8 @@
759 - main()
760 - {
761 - int i;
762 -+ in = stdin;
763 -+ out = stdout;
764 - for(i=0; i<10; i=1)
765 - {
766 - if (fgets(line,200,in)==NULL) { close(in); close(out); exit(1); }
767 -@@ -41,4 +43,4 @@
768 - fprintf(out,"%s",line);
769 - }
770 - }
771 --
772 -\ No newline at end of file
773 -+
774
775 diff --git a/app-text/mpage/files/10_bts354935_fix_fontdefs.patch b/app-text/mpage/files/10_bts354935_fix_fontdefs.patch
776 deleted file mode 100644
777 index 3749ec5984c..00000000000
778 --- a/app-text/mpage/files/10_bts354935_fix_fontdefs.patch
779 +++ /dev/null
780 @@ -1,39 +0,0 @@
781 -Index: mpage-2.5.6/mpage.c
782 -===================================================================
783 ---- mpage-2.5.6.orig/mpage.c 2008-08-12 00:26:43.344123046 +0200
784 -+++ mpage-2.5.6/mpage.c 2008-08-12 00:29:55.663082680 +0200
785 -@@ -345,25 +345,25 @@
786 - if (!strncmp (current_locale, "ja_JP", 5)){
787 - #ifdef KANJI
788 - #ifdef GOTHIC
789 -- fprintf(outfd, "/kanj /GothicBBB-Medium-H findfont %d scalefont def\n", fsize - 1);
790 -- fprintf(outfd, "/han /GothicBBB-Medium.Hankaku findfont %d scalefont def\n", fsize - 1);
791 -+ fprintf(outfd, "/kanj { /GothicBBB-Medium-H findfont %d scalefont } def\n", fsize - 1);
792 -+ fprintf(outfd, "/han { /GothicBBB-Medium.Hankaku findfont %d scalefont } def\n", fsize - 1);
793 - #else
794 -- fprintf(outfd, "/kanj /Ryumin-Light-H findfont %d scalefont def\n", fsize - 1);
795 -- fprintf(outfd, "/han /Ryumin-Light.Hankaku findfont %d scalefont def\n", fsize - 1);
796 -+ fprintf(outfd, "/kanj { /Ryumin-Light-H findfont %d scalefont } def\n", fsize - 1);
797 -+ fprintf(outfd, "/han { /Ryumin-Light.Hankaku findfont %d scalefont } def\n", fsize - 1);
798 - #endif
799 - #endif
800 - #ifdef GOTHIC
801 -- fprintf(outfd, "/unijis /GothicBBB-Medium-UniJIS-UTF8-H findfont %d scalefont def\n", fsize - 1);
802 -+ fprintf(outfd, "/unijis { /GothicBBB-Medium-UniJIS-UTF8-H findfont %d scalefont } def\n", fsize - 1);
803 - #else
804 -- fprintf(outfd, "/unijis /Ryumin-Light-UniJIS-UTF8-H findfont %d scalefont def\n", fsize - 1);
805 -+ fprintf(outfd, "/unijis { /Ryumin-Light-UniJIS-UTF8-H findfont %d scalefont } def\n", fsize - 1);
806 - #endif
807 - }
808 - else if (!strncmp (current_locale, "ko_KR", 5))
809 -- fprintf(outfd, "/uniks /Baekmuk-Batang-UniKS-UTF8-H findfont %d scalefont def\n", fsize - 1);
810 -+ fprintf(outfd, "/uniks { /Baekmuk-Batang-UniKS-UTF8-H findfont %d scalefont } def\n", fsize - 1);
811 - else if (!strncmp (current_locale, "zh_CN", 5))
812 -- fprintf(outfd, "/unigb /BousungEG-Light-GB-UniGB-UTF8-H findfont %d scalefont def\n", fsize - 1);
813 -+ fprintf(outfd, "/unigb { /BousungEG-Light-GB-UniGB-UTF8-H findfont %d scalefont } def\n", fsize - 1);
814 - else if (!strncmp (current_locale, "zh_TW", 5))
815 -- fprintf(outfd, "/unicns /ShanHeiSun-Light-UniCNS-UTF8-H findfont %d scalefont def\n", fsize - 1);
816 -+ fprintf(outfd, "/unicns { /ShanHeiSun-Light-UniCNS-UTF8-H findfont %d scalefont } def\n", fsize - 1);
817 - }
818 -
819 - # ifdef DEBUG
820
821 diff --git a/app-text/mpage/files/20_bts416573_manpage_fixes.patch b/app-text/mpage/files/20_bts416573_manpage_fixes.patch
822 deleted file mode 100644
823 index 3a4df84e4ee..00000000000
824 --- a/app-text/mpage/files/20_bts416573_manpage_fixes.patch
825 +++ /dev/null
826 @@ -1,628 +0,0 @@
827 -Index: mpage-2.5.6/mpage.1.in
828 -===================================================================
829 ---- mpage-2.5.6.orig/mpage.1.in 2008-08-12 19:12:42.274087056 +0200
830 -+++ mpage-2.5.6/mpage.1.in 2008-08-12 19:14:15.003371396 +0200
831 -@@ -54,7 +54,7 @@
832 -
833 -
834 - .SH DESCRIPTION
835 --.I mpage
836 -+.B mpage
837 - reads plain text files or PostScript documents and prints them on a
838 - PostScript printer with the text reduced in size so that several
839 - pages appear on one sheet of paper.
840 -@@ -63,14 +63,18 @@
841 -
842 - .PP
843 - The following options are recognized (note that arguments to options may be
844 --separated from the option by spaces, except for
845 -+separated from the option by spaces, except for
846 - .BR -B ,
847 - .BR -m ,
848 - .BR -M ,
849 - .B -p
850 - and
851 - .BR -P ):
852 --Also when mpage encounters -- as option it will stop parsing arguments
853 -+Also when
854 -+.B mpage
855 -+encounters
856 -+.B --
857 -+as option it will stop parsing arguments
858 - and the remaining arguments are interpreted as filenames.
859 -
860 - .TP
861 -@@ -84,7 +88,7 @@
862 - .TP
863 - .B -4
864 - Print 4 normal pages per sheet
865 --.IR (default) .
866 -+.RI ( default ).
867 -
868 - .TP
869 - .B -8
870 -@@ -95,25 +99,29 @@
871 - Toggle layout of the pages on the sheet so that successively numbered
872 - pages run down the sheet, as opposed to left to right.
873 - .RI ( default
874 --updown) .
875 -+updown).
876 -
877 - .TP
878 - .B -A
879 --This option is deprecated, see \fB-b\fP.
880 --Prepare output for A4 sized paper.
881 --For default see 'mpage -x'.
882 -+This option is deprecated, use
883 -+.B -bA4
884 -+instead.
885 -
886 - .TP
887 --.BI -b papertype
888 --Prepare output for selected paper type.
889 -+.BI -b papersize
890 -+Prepare output for the selected paper type.
891 - .I Papersize
892 --can be \fIA3\fP for European A3,
893 --\fIA4\fP for European A4,
894 --\fILetter\fP for US Letter or \fILegal\fP for Legal
895 --sized paper.
896 --For default see 'mpage -x'.
897 --To see the list of currently available types, just give the 'mpage -bl'
898 --or 'mpage -b?' command (Note: mpage exits after finding such option use.)
899 -+can be \fBA3\fP for European A3,
900 -+\fBA4\fP for European A4,
901 -+\fBLetter\fP for US Letter, or \fBLegal\fP for Legal
902 -+sized paper. For available types, see option \fB-bl\fP.
903 -+For the default, see 'mpage \-x'. This default is taken from the
904 -+system; see \fBpapersize\fP(5). If it isn't found, mpage exits
905 -+with an error.
906 -+
907 -+.TP
908 -+.BR -bl ,\ -b?
909 -+List the currently available paper types, then exit.
910 -
911 - .TP
912 - .BR -B [\fI<num>\fR[\fBlrtb\fR]*]
913 -@@ -121,19 +129,19 @@
914 - Specify text box margins and line thickness.
915 - The default is 0 columns (lines) for both left and right (top and bottom)
916 - margins and 0 line thickness.
917 --Specifying
918 --.B -B
919 --solely toggles printing of the box.
920 -+Specifying
921 -+.B -B
922 -+solely toggles printing of the box.
923 - .IR l ,
924 - .IR r ,
925 - .I t
926 - or
927 - .I b
928 --set the left, right, top or bottom margin respectively to
929 -+set the left, right, top or bottom margin respectively to
930 - .I <num>
931 - columns (lines).
932 --Not specifying any of the sides, will set the line thickness when
933 --.I <num>
934 -+Not specifying any of the sides, will set the line thickness when
935 -+.I <num>
936 - is given.
937 - For example
938 - .BI -B 1
939 -@@ -142,7 +150,7 @@
940 -
941 - .TP
942 - .B -c
943 --Toggle concatenation off pages from different files on single sheets
944 -+Toggle concatenation of pages from different files on single sheets
945 - .RI ( default
946 - off).
947 -
948 -@@ -166,27 +174,26 @@
949 -
950 - .TP
951 - .BI -D dateformat
952 --Set the date format as in
953 -+Set the date format as in
954 - .IR strftime (3)
955 - to be used in date/time representations (e.g. in headers).
956 --(Note: to be useful you probably need the \fB-H\fP option.)
957 -+(Note: to make this useful you probably need the \fB-H\fP option.)
958 -
959 - .TP
960 - .B -e
961 --Print 2 normal pages per sheet in duplex mode. Every first
962 --and fourth page or on one side and every second and third
963 -+Print 2 normal pages per sheet in duplex mode: every first
964 -+and fourth page on one side and every second and third
965 - on the other side. This is more or less a combination of
966 --the \fR-O\fP and \fR-E\fP option but then in one pass.
967 -+the \fR-O\fP and \fR-E\fP options but in one pass.
968 -
969 - .TP
970 - .B -E
971 --Print 2 normal pages per sheet. However, this option will print
972 --every second and third page of every set of four pages.
973 --This option will ignore
974 -+Print 2 normal pages per sheet, namely: print only the second and
975 -+third page of every set of four pages. See also \fB-O\fP. These
976 -+options override
977 - .B -a
978 - and
979 - .BR -l .
980 --See also the \fR-O\fP option.
981 - Using these options double sided prints can be created without
982 - a duplex printer.
983 -
984 -@@ -194,11 +201,11 @@
985 - .B -f
986 - Toggles folding lines longer than page width
987 - .RI ( default
988 --off) .
989 -+off).
990 -
991 - .TP
992 - .BI -F fontname
993 --Specify font.
994 -+Specify font.
995 - .RI ( default
996 - Courier). Check your printer for supported fonts. Note: this has
997 - almost nothing to do with the fonts used for your X-windows/KDE/Gnome
998 -@@ -206,13 +213,13 @@
999 -
1000 - .TP
1001 - .BI -h header
1002 --This is used only when the
1003 -+This is used only when the
1004 - .B -p
1005 - or
1006 - .B -H
1007 - switch is used and is passed as the "\fB-h\fI\ header\fR" option to
1008 --.BR pr ( 1 )
1009 --or as the header for
1010 -+.BR pr (1)
1011 -+or as the header for
1012 - .BR -H .
1013 -
1014 - .TP
1015 -@@ -220,26 +227,26 @@
1016 - Create header line for each logical page separated from page text by a
1017 - horizontal line. Unless
1018 - .B -h
1019 --is given, the header consist of last file modification time,
1020 -+is given, the header consists of last file modification time,
1021 - filename and page number, all in bold and slightly larger font.
1022 - This option only applies to non-postscript files.
1023 -
1024 - .TP
1025 - .BI -I indent
1026 --Indent text by
1027 -+Indent text by
1028 - .I indent
1029 - characters.
1030 -
1031 - .TP
1032 --.BI -j first\fR[\fI-last\fR][\fI%interval\fR]
1033 -+.BI -j first\fR[ - last\fR][ % interval\fR]
1034 - Print just the selected sheets, specified by a number, starting at 1.
1035 --Here
1036 -+Here
1037 - .I last
1038 - defaults to the end of data, \fIinterval\fP to 1.
1039 --Several \fB-j\fR options can be given (upto MAXJARGS, default 100)
1040 -+Several \fB-j\fR options can be given (up to MAXJARGS, default 100)
1041 - to create a complex selection of pages.
1042 --Thus \fB-j\fI1\-10\fR selects the first 10 sheets, while
1043 --\fB-j\fI 1%2\fR prints just the odd-numbered sheets and \fB-j\fI 2%2\fR
1044 -+Thus \fB-j1\-10\fR selects the first 10 sheets, while
1045 -+\fB-j\ 1%2\fR prints just the odd-numbered sheets and \fB-j\ 2%2\fR
1046 - prints just the even ones.
1047 - .sp
1048 - You can do double-sided printing, in two passes, as follows.
1049 -@@ -249,7 +256,7 @@
1050 - Print the odd-numbered sheets with
1051 - .IP
1052 - .ti +5
1053 --mpage ... -j 1%2 ...
1054 -+mpage ... \-j 1%2 ...
1055 - .IP
1056 - Note the number of pages it reports. (Only half this many will really
1057 - be printed). When printing finishes, if mpage reported an
1058 -@@ -262,7 +269,7 @@
1059 - Now print the even-numbered sheets in reverse order with
1060 - .IP
1061 - .ti +5
1062 --mpage ... -r -j 2%2 ...
1063 -+mpage ... \-r \-j 2%2 ...
1064 - .IP
1065 - hoping no one else reaches the printer before you do.
1066 -
1067 -@@ -274,70 +281,71 @@
1068 -
1069 - .TP
1070 - .B -k
1071 --When mpage finds a %%TRailer or %%PSTrailer in the postscript input file
1072 -+When mpage finds a %%Trailer or %%PSTrailer in the postscript input file
1073 - it normally assumes this is the end of the postscript file and stops reading
1074 - the input file. But when the PS file includes EPS files, %%Trailers might
1075 --be anywhere. Using this option ignores the %%TRailer and %%PSTRailer lines.
1076 -+be anywhere. Using this option ignores the %%Trailer and %%PSTrailer lines.
1077 -+
1078 - .TP
1079 - .B -l
1080 --Toggle printing landscape or portrait mode.
1081 --Landscape pages are 55 lines long by 132 characters wide by default.
1082 --Portrait pages are 66 lines long by 80 characters wide by default.
1083 -+Toggle printing landscape or portrait mode
1084 - .RI ( default
1085 --portrait.)
1086 -+portrait).
1087 -+Landscape pages are 55 lines long by 132 characters wide by default.
1088 -+Portrait pages are 66 lines long by 80 characters wide by default.
1089 -
1090 - .TP
1091 - .BI -L lines
1092 - Adjust the page reduction parameters so that
1093 - .I lines
1094 - lines will fit in the space of one page.
1095 --This overrides the default values normally supplied. (See
1096 -+This overrides the default values normally supplied. (See
1097 - .BR -l .)
1098 --If used in conjunction with
1099 -+If used in conjunction with
1100 - .B -p
1101 - then this value is passed to the
1102 - .BR pr (1)
1103 - as well.
1104 - As a side effect this changes the font size as well (as will the \fB-W\fR
1105 --option.) So while there is an option to change font family, there is no
1106 -+option.) So while there is an option to change font family, there is no
1107 - explicit option to change font size!
1108 -
1109 - .TP
1110 - .BR -m [\fI<num>\fR[\fBlrtb\fR]*]
1111 - Specify sheet margin. The default margin is 20 points.
1112 --Only specifying
1113 --.B -m
1114 --sets left margin to 40 points.
1115 -+Only specifying
1116 -+.B -m
1117 -+sets left margin to 40 points.
1118 - .IR l ,
1119 - .IR r ,
1120 - .I t
1121 - or
1122 - .I b
1123 --set left, right, top or bottom margin respectively to
1124 -+set left, right, top or bottom margin respectively to
1125 - .I <num>
1126 - points.
1127 --Not specifying any of the sides will set all sides when
1128 --.I <num>
1129 -+Not specifying any of the sides will set all sides when
1130 -+.I <num>
1131 - is given.
1132 - .I <num>
1133 - defaults to 40 points. For example
1134 - .BI -m 10
1135 - sets all margins to 10 points.
1136 - .BI -m l50tb
1137 --sets left margin to default 40 and top and bottom margin to 50 points.
1138 -+sets left margin to default 40 and top and bottom margins to 50 points.
1139 - .BI -m 50l25bt30r
1140 --set bottom and top margin to 25, left margin to 50 and
1141 -+sets bottom and top margin to 25, left margin to 50 and
1142 - right margin to 30 points.
1143 - Margins can have negative numbers.
1144 -
1145 - .TP
1146 - .BR -M [\fI<num>\fR[\fBlrtb\fR]*]
1147 --Specify logical page margins. For syntax, see
1148 -+Specify logical page margins. For syntax, see
1149 - .B -m
1150 - option.
1151 --Defaults are 4 for
1152 --.B -M
1153 --solely, and 8 for
1154 -+Defaults are 4 for
1155 -+.B -M
1156 -+solely, and 8 for
1157 - .IR <num> .
1158 - Margins can be negative.
1159 - This way large white borders
1160 -@@ -351,20 +359,18 @@
1161 -
1162 - .TP
1163 - .B -O
1164 --Print 2 normal pages per sheet.
1165 --However, this option will print every first and fourth page of every
1166 --set of four pages.
1167 --This option will ignore
1168 -+Print 2 normal pages per sheet, namely: print only the first and
1169 -+fourth page of every set of four pages. See also \fB-E\fP. These
1170 -+options override
1171 - .B -a
1172 - and
1173 - .BR -l .
1174 --See also the \fR-E\fP option.
1175 - Using these options double sided prints can be created without
1176 - a duplex printer.
1177 -
1178 - .TP
1179 - .BR -p [\fIprprog\fR]
1180 --Pipe input through
1181 -+Pipe input through
1182 - .I prprog
1183 - command (including specified options) before printing
1184 - (assumes the input is a text file).
1185 -@@ -373,14 +379,16 @@
1186 -
1187 - .TP
1188 - .BR -P [\fIprinter\fR]
1189 --Specify the printer to which the PostScript output will be sent
1190 --(e.g.lpr -P\fIprinter\fP). Using
1191 -+Specify the printer to which the PostScript output is sent
1192 -+(e.g. lpr \-P\fIprinter\fP). Using
1193 - .B -P
1194 --with no printer specified will send the PostScript to the default printer
1195 --queue (e.g. lpr). Using -P- will return output to stdout, useful in
1196 --combination with MPAGE environment variable. Without
1197 -+with no printer specified sends the PostScript to the default printer
1198 -+queue (e.g. lpr). Using \fB-P-\fP returns output to stdout, useful in
1199 -+combination with the
1200 -+.B MPAGE
1201 -+environment variable. Without
1202 - .B -P
1203 --output will be send to standard output.
1204 -+output is sent to standard output.
1205 -
1206 - .TP
1207 - .B -r
1208 -@@ -392,58 +400,65 @@
1209 - .B -R
1210 - Switch to left to right mode, starting first page on left bottom corner.
1211 - This might be useful for landscape postscript files.
1212 --(Note: using
1213 -+(Note: using
1214 - .B -l
1215 - after
1216 - .B -R
1217 - undoes
1218 - .BR -R ,
1219 --and switches to normal landscape mode.
1220 -+and switches to normal landscape mode.)
1221 -
1222 - .TP
1223 - .BI -s tabstop
1224 - Set tabstop width (\fIdefault\fP 8 characters).
1225 --Should by >= 2.
1226 -+Should be >= 2.
1227 -
1228 - .TP
1229 - .B -S
1230 - Accept non-square page reduction.
1231 - By default, pages are shrunk equally in X and Y, even if this wastes some
1232 - space on the sheet.
1233 --With \fB\-S\fP,
1234 --reduced pages are larger but slightly distorted. (only used when printing
1235 -+With \fB\-S\fP,
1236 -+reduced pages are larger but slightly distorted. (Only used when printing
1237 - postscript files.)
1238 -
1239 - .TP
1240 - .B -t
1241 - Toggle printing on both sides of the paper.
1242 --+This option has 3 states: nop, yes, no, which mean:
1243 --.BR NOP :
1244 -- dont do anything on PostScript, so printer default will be used;
1245 --.BR YES :
1246 -- force printer to do duplex;
1247 --.BR NO :
1248 -+This option has 3 states: nop, yes, no, which mean:
1249 -+.RS
1250 -+.TP
1251 -+.BR NOP :
1252 -+don't do anything in PostScript, use the printer default;
1253 -+.TP
1254 -+.BR YES :
1255 -+force printer to do duplex;
1256 -+.TP
1257 -+.BR NO :
1258 - force printer not to do it.
1259 --If there is no -t, then the duplex is NOP. If you put some -t on
1260 -+.HP 0
1261 -+If there is no \fB\-t\fP, then the duplex is NOP. If you put some \-t on
1262 - the command line, the state toggles as "yes,no,yes,no...".
1263 - So, if your printer is set to print, by default, in duplex mode,
1264 --you will use "-t -t" on command line to force it to print in non-duplex mode.
1265 --Use this option only if your printer is capable of printing in duplex mode.
1266 -+you will use "\-t \-t" on the command line to force it to print in
1267 -+non-duplex mode. Use this option only if your printer is capable of
1268 -+printing in duplex mode.
1269 - .RI ( default
1270 - NOP).
1271 -+.RE
1272 -
1273 - .TP
1274 - .B -T
1275 - Toggle tumble of every second pages.
1276 --This option has 3 states: nop, yes, no (with behaviour similar to -t).
1277 -+This option has 3 states: nop, yes, no (with behaviour similar to \-t).
1278 - So, if your printer is set to print, by default, in duplex mode,
1279 - with tumble on,
1280 --you will use "-T -T" on command line to print in nontumble mode.
1281 -+you will use "\-T \-T" on command line to print in nontumble mode.
1282 - Use this option only if your printer is capable of printing in duplex mode.
1283 - With this version of mpage,
1284 --you may use this option even if you do not use -t.
1285 -+you may use this option even if you do not use \-t.
1286 - .RI ( default
1287 --NOP.)
1288 -+NOP).
1289 -
1290 - .TP
1291 - .B -u
1292 -@@ -451,15 +466,15 @@
1293 -
1294 - .TP
1295 - .B -U
1296 --This option is deprecated, see \fB-b\fP.
1297 --Prepare output for US Letter sized paper.
1298 --For default see 'mpage -x'.
1299 -+This option is deprecated, use
1300 -+.B -bLetter
1301 -+instead.
1302 -
1303 - .TP
1304 - .B -v
1305 - Toggle printing a count of the number of sheets produced for printing
1306 - .RI ( default
1307 --off.)
1308 -+off).
1309 -
1310 - .TP
1311 - .B -V
1312 -@@ -467,27 +482,27 @@
1313 -
1314 - .TP
1315 - .BI -W width
1316 --Adjust the page reduction parameters so that a line with
1317 -+Adjust the page reduction parameters so that a line
1318 - .I width
1319 - characters long will fit in the space of one page.
1320 --This overrides the default values normally supplied. (See
1321 -+This overrides the default values normally supplied. (See
1322 - .BR -l .)
1323 - If used in conjunction with
1324 - .B -p
1325 --then this value is passed to the s
1326 -+then this value is passed to the
1327 - .BR pr (1)
1328 - program as well.
1329 - See also the \fB-L\fP\ option on font sizes.
1330 -
1331 - .TP
1332 - .B -x
1333 --Force usage display, which also shows current defaults.
1334 -+Print usage information (including current defaults), then exit.
1335 -
1336 - .TP
1337 --.B -X [header]
1338 -+.BR -X [\fIheader\fR]
1339 - Print header on the left and the page number on the right
1340 - of each physical page (sheet).
1341 --If no header is given, the default is the current filename (note
1342 -+If no header is given, the default is the current filename (note
1343 - influence of
1344 - .BR -c ),
1345 - the filename of the first file on the page is used.
1346 -@@ -495,12 +510,12 @@
1347 - .TP
1348 - .BI -z printcommand
1349 - Specify command to use to send output to.
1350 --Default is
1351 --.B lpr
1352 --(1) for BSD style spooler,
1353 --.B lp
1354 --(1) for SYSV style spooler.
1355 --You can specify command line options, but note
1356 -+Default is
1357 -+.BR lpr (1)
1358 -+for BSD style spooler,
1359 -+.BR lp (1)
1360 -+for SYSV style spooler.
1361 -+You can specify command line options, but note
1362 - .BR -Z .
1363 - For example \fB-zlp\fR for system V Unix.
1364 -
1365 -@@ -508,7 +523,7 @@
1366 - .BI -Z printprog_queuename_arg
1367 - Specify what option to use for the "\fB-z\fI\ printcommand\fR" to specify
1368 - a printqueue.
1369 --For example \fB-zlp -Z-d\fR for system V Unix.
1370 -+For example \fB\-zlp \-Z\-d\fR for system V Unix.
1371 - Default is
1372 - .B -P
1373 - for BSD style spooler,
1374 -@@ -518,10 +533,10 @@
1375 - .PP
1376 -
1377 - .SH ENVIRONMENT
1378 --.I mpage
1379 -+.B mpage
1380 - examines the
1381 - .B PRINTER
1382 --(or
1383 -+(or
1384 - .B LPDEST
1385 - for SYSV style spooler)
1386 - environment variable to override its default printer.
1387 -@@ -529,18 +544,20 @@
1388 - .PP
1389 - The
1390 - .B MPAGE_LIB
1391 --environment variable can be used to control where the character
1392 -+environment variable can be used to control where the character
1393 - encoding files (\fB-C\fR) can be found.
1394 -
1395 - .PP
1396 --.I mpage
1397 -+.B mpage
1398 - also examines the
1399 - .B MPAGE
1400 - environment variable for default option settings.
1401 - Any option or combination of options can be specified in the
1402 - .B MPAGE
1403 - environment variable.
1404 --For example, if MPAGE is set to the string:
1405 -+For example, if
1406 -+.B MPAGE
1407 -+is set to the string:
1408 - .IP
1409 - .B -2oPqms -L60
1410 - .PP
1411 -@@ -550,14 +567,14 @@
1412 - .B "qms"
1413 - (overriding the
1414 - .B PRINTER\fR/\fBLPDEST
1415 --environment variable, if it exists.)
1416 -+environment variable, if it exists).
1417 - In the environment variable, white space is used as an option delimiter,
1418 - and no quoting is recognized.
1419 -
1420 - .PP
1421 - Any command line options will override both the
1422 - .B PRINTER
1423 --and
1424 -+and
1425 - .B MPAGE
1426 - environment variables.
1427 -
1428 -@@ -571,7 +588,7 @@
1429 - Suffers under the burden of far too many switches.
1430 - (But
1431 - .B you
1432 --wanted the choices!)
1433 -+wanted the choices!)
1434 - .PP
1435 - NULL characters in a postscript input file will cause mpage to crash!
1436 - .PP
1437 -@@ -580,7 +597,7 @@
1438 - Mpage is year 2000 compliant, as long as the underlying operating system is!!!
1439 -
1440 - .SH VERSION
1441 --Version 2.5.6, Released Januari 2008.
1442 -+Version 2.5.6, Released January 2008.
1443 - .br
1444 - Location:
1445 - .IP
1446 -@@ -588,6 +605,6 @@
1447 - .br
1448 - ftp://ftp.mesa.nl/pub/mpage
1449 - .SH AUTHORS
1450 --Marcel Mol <marcel@××××.nl> (current maintainer).
1451 -+Marcel Mol <marcel@××××.nl> (current maintainer).
1452 - .PP
1453 --Mark P. Hahn (Original author)
1454 -+Mark P. Hahn (Original author)
1455
1456 diff --git a/app-text/mpage/files/30_bts443280_libdir_manpage.patch b/app-text/mpage/files/30_bts443280_libdir_manpage.patch
1457 deleted file mode 100644
1458 index 9e2e630500e..00000000000
1459 --- a/app-text/mpage/files/30_bts443280_libdir_manpage.patch
1460 +++ /dev/null
1461 @@ -1,22 +0,0 @@
1462 -Index: mpage-2.5.6/mpage.1.in
1463 -===================================================================
1464 ---- mpage-2.5.6.orig/mpage.1.in 2008-08-12 19:40:49.390230323 +0200
1465 -+++ mpage-2.5.6/mpage.1.in 2008-08-12 19:41:08.143299000 +0200
1466 -@@ -157,7 +157,7 @@
1467 - .TP
1468 - .BR -C [\fIencodingfile\fR]
1469 - Specify the character encoding file.
1470 --The file should be in the mpage library directory (\fIPREFIX/share/mpage\fR).
1471 -+The file should be in the mpage library directory (\fIPREFIX/lib/mpage\fR).
1472 - .I Mpage
1473 - has an internal default encoding based on Latin-1 or IBM codepage 850.
1474 - Depending on compile time option this encoding definition is on or not.
1475 -@@ -581,7 +581,7 @@
1476 - .SH FILES
1477 - /tmp/mpageXXXXXX
1478 - .br
1479 --PREFIX/share/mpage
1480 -+PREFIX/lib/mpage
1481 -
1482 - .SH BUGS
1483 - .PP
1484
1485 diff --git a/app-text/mpage/mpage-2.5.6-r1.ebuild b/app-text/mpage/mpage-2.5.6-r1.ebuild
1486 index 612cf81ab70..0b6a0146109 100644
1487 --- a/app-text/mpage/mpage-2.5.6-r1.ebuild
1488 +++ b/app-text/mpage/mpage-2.5.6-r1.ebuild
1489 @@ -1,4 +1,4 @@
1490 -# Copyright 1999-2012 Gentoo Foundation
1491 +# Copyright 1999-2017 Gentoo Foundation
1492 # Distributed under the terms of the GNU General Public License v2
1493
1494 EAPI=4
1495 @@ -6,7 +6,8 @@ inherit eutils toolchain-funcs
1496
1497 DESCRIPTION="Many to one page printing utility"
1498 HOMEPAGE="http://www.mesa.nl/"
1499 -SRC_URI="http://www.mesa.nl/pub/${PN}/${P}.tgz"
1500 +SRC_URI="http://www.mesa.nl/pub/${PN}/${P}.tgz
1501 + https://dev.gentoo.org/~mgorny/dist/${P}-gentoo-patchset.tar.bz2"
1502
1503 KEYWORDS="amd64 ppc x86"
1504 LICENSE="freedist"
1505 @@ -18,7 +19,7 @@ src_prepare() {
1506 -e '/^CFLAGS/s|=.*| += $(DEFS)|g' \
1507 -e 's|$(CFLAGS) -o|$(LDFLAGS) &|g' \
1508 || die "sed Makefile"
1509 - EPATCH_SOURCE="${FILESDIR}" epatch \
1510 + EPATCH_SOURCE="${WORKDIR}/${P}-gentoo-patchset" epatch \
1511 01_previous_changes.patch 10_bts354935_fix_fontdefs.patch \
1512 20_bts416573_manpage_fixes.patch 30_bts443280_libdir_manpage.patch
1513 }