summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2014-06-08 19:49:07 +0000
committerPeter Volkov <pva@gentoo.org>2014-06-08 19:49:07 +0000
commit627db13869f50ca54dd38d05dbbd8798b01e1341 (patch)
tree1b877ecdfb48df5fd7e465504be86ba9708de70b /media-gfx/transfig
parentMove to maintainer needed as I am no longer taking care of it and noone from ... (diff)
downloadgentoo-2-627db13869f50ca54dd38d05dbbd8798b01e1341.tar.gz
gentoo-2-627db13869f50ca54dd38d05dbbd8798b01e1341.tar.bz2
gentoo-2-627db13869f50ca54dd38d05dbbd8798b01e1341.zip
Version bump, bug #487710, thank Martin Walch for report.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key F1989B07)
Diffstat (limited to 'media-gfx/transfig')
-rw-r--r--media-gfx/transfig/ChangeLog12
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch55
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch530
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5e-typos.patch25
-rw-r--r--media-gfx/transfig/metadata.xml3
-rw-r--r--media-gfx/transfig/transfig-3.2.5e.ebuild94
6 files changed, 716 insertions, 3 deletions
diff --git a/media-gfx/transfig/ChangeLog b/media-gfx/transfig/ChangeLog
index c8793056af39..fb5ecd6ff3fa 100644
--- a/media-gfx/transfig/ChangeLog
+++ b/media-gfx/transfig/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-gfx/transfig
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/transfig/ChangeLog,v 1.75 2013/04/30 02:14:16 ottxor Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/transfig/ChangeLog,v 1.76 2014/06/08 19:49:07 pva Exp $
+
+*transfig-3.2.5e (08 Jun 2014)
+
+ 08 Jun 2014; Peter Volkov <pva@gentoo.org> +transfig-3.2.5e.ebuild,
+ +files/transfig-3.2.5e-fprintf_format_warnings.patch,
+ +files/transfig-3.2.5e-man-hyphen.patch, +files/transfig-3.2.5e-typos.patch,
+ metadata.xml:
+ Version bump, bug #487710, thank Martin Walch for report.
30 Apr 2013; Christoph Junghans <ottxor@gentoo.org> transfig-3.2.5d-r1.ebuild:
added ~arm (tested by me)
diff --git a/media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch b/media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch
new file mode 100644
index 000000000000..6b3f8a7d870d
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-fprintf_format_warnings.patch
@@ -0,0 +1,55 @@
+Author: Roland Rosenfeld <roland@debian.org>
+Description: Add a format string to fprintf()/sprintf() call instead
+ of directly printing out Err_Mem. This is needed by harding options.
+
+--- a/fig2dev/trans_spline.c
++++ b/fig2dev/trans_spline.c
+@@ -648,7 +648,7 @@
+ F_control *cp;
+
+ if ((cp = (F_control *) malloc(CONTROL_SIZE)) == NULL)
+- fprintf(stderr,Err_mem);
++ fprintf(stderr, "%s", Err_mem);
+ return cp;
+ }
+
+@@ -659,7 +659,7 @@
+ F_line *l;
+
+ if ((l = (F_line *) malloc(LINOBJ_SIZE)) == NULL)
+- fprintf(stderr,Err_mem);
++ fprintf(stderr, "%s", Err_mem);
+ l->pic = NULL;
+ l->next = NULL;
+ l->for_arrow = NULL;
+--- a/fig2dev/dev/gencgm.c
++++ b/fig2dev/dev/gencgm.c
+@@ -139,7 +139,7 @@
+
+ if (from) {
+ figname = malloc(strlen(from)+1);
+- sprintf(figname, from);
++ sprintf(figname, "%s", from);
+ p = strrchr(figname, '/');
+ if (p)
+ figname = p+1; /* remove path from name for comment in file */
+--- a/fig2dev/dev/genmp.c
++++ b/fig2dev/dev/genmp.c
+@@ -1150,7 +1150,7 @@
+ }
+ } else {
+ /* special text in latex mode: just write the text. */
+- fprintf(tfp, t->cstring);
++ fprintf(tfp, "%s", t->cstring);
+ }
+ fprintf(tfp," etex;\n");
+
+@@ -1164,7 +1164,7 @@
+
+ fprintf(tfp," picture q;\n");
+ fprintf(tfp," q=thelabel.urt(\"");
+- fprintf(tfp, t->cstring);
++ fprintf(tfp, "%s", t->cstring);
+ fprintf(tfp, "\" infont ");
+ if (t->font<0) {
+ fprintf(tfp, "defaultfont");
diff --git a/media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch b/media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch
new file mode 100644
index 000000000000..bb79ec82c92c
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-man-hyphen.patch
@@ -0,0 +1,530 @@
+Author: Roland Rosenfeld <roland@debian.org>
+Description: Escape hyphen '-' in man pages
+
+--- a/doc/fig2dev.1
++++ b/doc/fig2dev.1
+@@ -63,9 +63,9 @@
+ Notes:
+ .br
+ .I dvips
+-and
++ and
+ .I xdvi
+-must be compiled with the tpic support (-DTPIC) for epic, eepic and tpic to work.
++must be compiled with the tpic support (\-DTPIC) for epic, eepic and tpic to work.
+ .br
+ You must have ghostscript and ps2pdf, which comes with the ghostscript distribution
+ to get the pdf output and the bitmap formats (png, jpeg, etc.), and the netpbm (pbmplus)
+@@ -81,16 +81,16 @@
+
+ .TP
+ .B "\-D +/-rangelist"
+-With +rangelist, keep only those depths in the list. With -rangelist, keep all
++With +rangelist, keep only those depths in the list. With \-rangelist, keep all
+ depths except those in the list. The rangelist may be a list of comma-separated
+-numbers or ranges separated by colon (:). For example, -D +10,40,55:70,80
++numbers or ranges separated by colon (:). For example, \-D +10,40,55:70,80
+ means keep only layers 10, 40, 55 \fBthrough\fR 70, and 80.
+
+ .TP
+-.B -K
+-The selection of the depths with the '-D +/-rangelist' option does normally not
++.B \-K
++The selection of the depths with the '\-D +/\-rangelist' option does normally not
+ affect the calcualtion of the bounding box. Thus the generated document might
+-have a much larger bounding box than necessary. If -K is given then the
++have a much larger bounding box than necessary. If \-K is given then the
+ bounding box is adjusted to include only those objects in the selected depths.
+
+ .TP
+@@ -107,10 +107,10 @@
+ .TP
+ .B "\-G minor[:major][:unit]"
+ Draws a grid on the page. Specify thin, or thin and thick line
+-spacing in one of several units. For example, "-G .25:1cm" draws a thin,
++spacing in one of several units. For example, "\-G .25:1cm" draws a thin,
+ gray line every .25 cm and a thicker gray line every 1 cm. Specifying
+-"-G 1in" draws a thin line every 1 inch.
+-Fractions may be used, e.g. "-G 1/16:1/2in" will draw a thin line every
++"\-G 1in" draws a thin line every 1 inch.
++Fractions may be used, e.g. "\-G 1/16:1/2in" will draw a thin line every
+ 1/16 inch (0.0625 inch) and a thick line every 1/2 inch.
+ .br
+ Allowable units are: i, in, inch, f, ft, feet, c, cm, mm, and m.
+@@ -126,7 +126,7 @@
+ Set the magnification at which the figure is rendered to
+ .I mag.
+ The default is 1.0.
+-This may not be used with the maxdimension option (-Z).
++This may not be used with the maxdimension option (\-Z).
+
+ .TP
+ .B "\-s size"
+@@ -141,7 +141,7 @@
+ .I maxdimension
+ inches or cm, depending on whether the figure was saved with
+ imperial or metric units.
+-This may not be used with the magnification option (-m).
++This may not be used with the magnification option (\-m).
+
+ .TP
+ .I other options
+@@ -157,7 +157,7 @@
+ something that they won't do with EPS files that have an ASCII preview.
+ .TP
+ .B "\-b dummyarg"
+-Generate binary output (dummy argument required after the "-b").
++Generate binary output (dummy argument required after the "\-b").
+
+ .TP
+ .B \-r
+@@ -335,7 +335,7 @@
+ file.
+ The table must have 21 entries - one for each of the area fill patterns.
+ Each entry consists of 5 numbers which specify the
+-1.) pattern number (-1 - 6),
++1.) pattern number (\-1 - 6),
+ 2.) pattern length (inches),
+ 3.) fill type (1 - 5),
+ 4.) fill spacing (inches) and
+@@ -390,7 +390,7 @@
+ .TP
+ .B \-F
+ Use correct font sizes (points, 1/72 inch) instead of the traditional size that xfig/fig2dev uses,
+-which is (1/80 inch). The corresponding xfig command-line option is -correct_font_size.
++which is (1/80 inch). The corresponding xfig command-line option is \-correct_font_size.
+
+ .TP
+ .B \-g color
+@@ -403,13 +403,13 @@
+ Convert all colors to grayscale.
+
+ .TP
+-.B -S smoothfactor
++.B \-S smoothfactor
+ This will smooth the output by passing
+ .I smoothfactor
+ to ghostscript in the
+-.I -dTextAlphaBits
++.I \-dTextAlphaBits
+ and
+-.I -dGraphicsAlphaBits
++.I \-dGraphicsAlphaBits
+ options to improve font rendering and graphic smoothing.
+ A value of 2 for
+ .I smoothfactor
+@@ -418,7 +418,7 @@
+ .SH GIF OPTIONS
+
+ .TP
+-.B -t color
++.B \-t color
+ Use
+ .I color
+ for the transparent color in the GIF file. This must be specified
+@@ -428,7 +428,7 @@
+
+ .SH JPEG OPTIONS
+ .TP
+-.B -q image_quality
++.B \-q image_quality
+ use the integer value
+ .I image_quality
+ for the JPEG "Quality" factor. Valid values are 0-100, with the default being 75.
+@@ -495,7 +495,7 @@
+ .I fig2dev
+ scales the figure by 1/8 before generating METAFONT code.
+ The magnification can be further changed with the
+-.B -m
++.B \-m
+ option or by giving magnification options to
+ .B mf.
+ .LP
+@@ -506,33 +506,33 @@
+ under the subdirectory: graphics/mfpic
+
+ .TP
+-.B -C code
++.B \-C code
+ specifies the starting METAFONT font code. The default is 32.
+ .TP
+-.B -n name
++.B \-n name
+ specifies the name to use in the output file.
+ .TP
+-.B -p pen_magnification
++.B \-p pen_magnification
+ specifies how much the line width should be magnified compared to the
+ original figure. The default is 1.
+ .TP
+-.B -t top
++.B \-t top
+ specifies the top of the whole coordinate system. The default is
+ .B ypos.
+ .TP
+-.B -x xmin
++.B \-x xmin
+ specifies the minimum x coordinate value of the figure (inches). The
+ default is 0.
+ .TP
+-.B -y ymin
++.B \-y ymin
+ specifies the minumum y coordinate value of the figure (inches). The
+ default is 0.
+ .TP
+-.B -X xmax
++.B \-X xmax
+ specifies the maximum x coordinate value of the figure (inches). The
+ default is 8.
+ .TP
+-.B -Y ymax
++.B \-Y ymax
+ specifies the maximum y coordinate value of the figure (inches). The
+ default is 8.
+
+@@ -546,7 +546,7 @@
+ Include file content as additional header.
+
+ .TP
+-.B -o
++.B \-o
+ Old mode (no latex).
+
+ .TP
+@@ -597,15 +597,15 @@
+ Set encoding for latex text translation (0 no translation, 1 ISO-8859-1, 2 ISO-8859-2)
+
+ .SH GBX OPTIONS (Gerber, RS-247-X)
+-Typically you will wish to set the y scale to -1. See
+-.B -g
++Typically you will wish to set the y scale to \-1. See
++.B \-g
+ for more information.
+ .TP
+-.B -d [mm|in]
++.B \-d [mm|in]
+ Output dimensions should be assumed to be millimeters (mm) or inches
+ (in). The default is millimeters.
+ .TP
+-.B -p [pos|neg]
++.B \-p [pos|neg]
+ Select the image polarity. For positive images lines drawn in the fig
+ file will generate lines of material. For negative images lines drawn
+ in the fig file will result in removed material. Consider etching a
+@@ -613,29 +613,29 @@
+ choosing 'neg' will result in these lines being etched through the
+ chrome, leaving transparent lines.
+ .TP
+-.B -g <x scale>x<y scale>+<x offset>+<y offset>
++.B \-g <x scale>x<y scale>+<x offset>+<y offset>
+ This controls the geometry of the output, scaling the dimensions as
+ shown and applying the given offset. Typically you will wish to set
+-the y scale to -1, mirroring about the x axis. This is because Gerber
++the y scale to \-1, mirroring about the x axis. This is because Gerber
+ assumes the origin to be bottom left, while xfig selects top left.
+ .TP
+-.B -f <n digits>.<n digits>
++.B \-f <n digits>.<n digits>
+ This controls the number of digits of precision before and after the
+-implied decimal point. With -f 5.3 the following number 12345678
+-corresponds to 12345.678. Whereas with -f 3.5 it corresponds to
++implied decimal point. With \-f 5.3 the following number 12345678
++corresponds to 12345.678. Whereas with \-f 3.5 it corresponds to
+ 123.45678. The default is for 3 places before the decimal point and 5
+ after. This corresponds, to a range of 0 to 1m in 10 micron
+ increments.
+ .TP
+-.B -i [on|off]
++.B \-i [on|off]
+ Controls the output of comments describing the type of objects being
+ output. The text appears as comments starting with ## on each line in
+ the output file. By default this is on.
+
+ .SH POSTSCRIPT, ENCAPSULATED POSTSCRIPT (EPS), and PDF OPTIONS
+ With PostScript, xfig can be used to create multiple page figures
+-Specify the -M option to produce a multi-page output.
+-For posters, add -O to overlap the pages slightly to get around the problem of
++Specify the \-M option to produce a multi-page output.
++For posters, add \-O to overlap the pages slightly to get around the problem of
+ the unprintable area in most printers, then cut and paste the pages together.
+ Due to memory limitations of most laser printers, the figure should not
+ have large imported images (bitmaps). Great for text with very big letters.
+@@ -658,7 +658,7 @@
+ .LP
+ The EPS driver has the following two special options:
+ .TP
+-.B -B 'Wx [Wy X0 Y0]'
++.B \-B 'Wx [Wy X0 Y0]'
+ This specifies that the bounding box of the EPS file should have the
+ width Wx and the height Wy.
+ Note that it doesn't scale the figure to this size, it merely sets the bounding box.
+@@ -667,13 +667,13 @@
+ screen (0,0) (upper-left).
+ Wx, Wy, X0 and Y0 are interpreted in centimeters or inches depending on the measure
+ given in the fig-file.
+-Remember to put either quotes (") or apostrophes (') to group the arguments to -B.
++Remember to put either quotes (") or apostrophes (') to group the arguments to \-B.
+ .TP
+-.B -R 'Wx [Wy X0 Y0]'
+-Same as the -B option except that X0 and Y0 is relative to the lower
++.B \-R 'Wx [Wy X0 Y0]'
++Same as the \-B option except that X0 and Y0 is relative to the lower
+ left corner of the
+ .B figure.
+-Remember to put either quotes (") or apostrophes (') to group the arguments to -R.
++Remember to put either quotes (") or apostrophes (') to group the arguments to \-R.
+ .LP
+ The PDF driver uses all the PostScript options.
+ .LP
+@@ -697,106 +697,106 @@
+ In addition, there are 16 patterns such as bricks, diagonal lines,
+ crosshatch, etc.
+ .TP
+-.B -A
++.B \-A
+ Add an ASCII (EPSI) preview.
+ .TP
+-.B -b borderwidth
++.B \-b borderwidth
+ Make blank border around figure of width
+ .I borderwidth.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+
+ .TP
+-.B -C dummy_arg
++.B \-C dummy_arg
+ Add a color *binary* TIFF preview for Microsoft products that need a binary preview.
+-See also -T (monochrome preview). A dummy argument must be supplied for historical reasons.
++See also \-T (monochrome preview). A dummy argument must be supplied for historical reasons.
+ .TP
+-.B -c
++.B \-c
+ option centers the figure on the page.
+ The centering may not be accurate if there are texts in the
+ .I fig_file
+ that extends too far to the right of other objects.
+ .TP
+-.B -e
++.B \-e
+ option puts the figure against the edge (not centered) of the page.
+-Not availble in EPS.
++Not available in EPS.
+
+ .TP
+-.B -F
++.B \-F
+ Use correct font sizes (points) instead of the traditional size that xfig/fig2dev uses,
+-which is 1/80 inch. The corresponding xfig command-line option is -correct_font_size.
++which is 1/80 inch. The corresponding xfig command-line option is \-correct_font_size.
+
+ .TP
+-.B -g color
++.B \-g color
+ Use
+ .I color
+ for the background.
+ .TP
+-.B -l dummy_arg
++.B \-l dummy_arg
+ Generate figure in landscape mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -M
++.B \-M
+ Generate multiple pages if figure exceeds paper size.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+ .B \-N
+ Convert all colors to grayscale.
+
+ .TP
+-.B -n name
++.B \-n name
+ Set the Title part of the PostScript output to
+ .I name.
+ This is useful when the input to
+ .I fig2dev
+ comes from standard input.
+ .TP
+-.B -O
++.B \-O
+ When used with \fB-M\fR,
+ overlaps the pages slightly to get around the problem of
+ the unprintable area in most printers.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -p dummy_arg
++.B \-p dummy_arg
+ Generate figure in portrait mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ This is the default for Fig files of version 2.1 or lower.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+
+ .TP
+-.B -T
++.B \-T
+ Add a monochrome *binary* TIFF preview for Microsoft products that need a binary preview.
+-See also -C (color preview).
++See also \-C (color preview).
+ .TP
+ .TP
+-.B -x offset
++.B \-x offset
+ shift the figure in the X direction by
+ .I offset
+ units (1/72 inch).
+ A negative value shifts the figure to the left and a positive value to the right.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -y offset
++.B \-y offset
+ shift the figure in the Y direction by
+ .I offset
+ units (1/72 inch).
+ A negative value shifts the figure up and a positive value down.
+ .br
+-Not availble in EPS.
++Not available in EPS.
+ .TP
+-.B -z papersize
++.B \-z papersize
+ Sets the papersize.
+-Not availble in EPS.
++Not available in EPS.
+ .br
+ Available paper sizes are:
+ .nf
+@@ -839,17 +839,17 @@
+ special text.
+
+ .TP
+-.B -F
++.B \-F
+ Use correct font sizes (points) instead of the traditional size that xfig/fig2dev uses,
+-which is 1/80 inch. The corresponding xfig command-line option is -correct_font_size.
++which is 1/80 inch. The corresponding xfig command-line option is \-correct_font_size.
+
+ .TP
+-.B -g color
++.B \-g color
+ Use
+ .I color
+ for the background.
+ .TP
+-.B -n name
++.B \-n name
+ sets the Title part of the PostScript output to
+ .I name.
+ This is useful when the input to
+@@ -876,7 +876,7 @@
+ LaTeX document. With this option on, you can set the font from your LaTeX
+ document (like "\fB\\sfshape \\input picture.eepic\fR").
+ .TP
+-.B -p file
++.B \-p file
+ specifies the name of the PostScript file to be overlaid.
+ If not set or its value is null then no PS file will be inserted.
+
+@@ -977,7 +977,7 @@
+ .TP
+ .B \-P
+ Shorthand for
+-.B -n 3
++.B \-n 3
+ .
+
+ .TP
+@@ -992,7 +992,7 @@
+ directory! Don't put your stuff here. The
+ .B includegraphics
+ commands in the output file refer to this directory. Even
+-if the -p option is not used,
++if the \-p option is not used,
+ .B includegrpahics
+ commands follow this convention with the default directory
+ .I "\./eps".
+@@ -1064,26 +1064,26 @@
+
+ .SH TK and PTK OPTIONS (tcl/tk and Perl/tk)
+ .TP
+-.B -l dummy_arg
++.B \-l dummy_arg
+ Generate figure in landscape mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ .TP
+-.B -p dummy_arg
++.B \-p dummy_arg
+ Generate figure in portrait mode. The dummy argument is ignored,
+ but must appear on the command line for reasons of compatibility.
+ This option will override the orientation specification in the
+ file (for file versions 3.0 and higher).
+ This is the default for Fig files of version 2.1 or lower.
+ .TP
+-.B -P
++.B \-P
+ Generate canvas of full page size instead of using the bounding box
+ of the figure's objects. The default is to use only the bounding box.
+ .TP
+-.B -z papersize
++.B \-z papersize
+ Sets the papersize. See the POSTSCRIPT OPTIONS for available paper sizes.
+-This is only used when the -P option (use full page) is used.
++This is only used when the \-P option (use full page) is used.
+
+ .SH "SEE ALSO"
+ [x]fig(1),
+--- a/doc/transfig.1
++++ b/doc/transfig.1
+@@ -3,11 +3,11 @@
+ transfig \- creates a makefile for portable LaTeX figures
+ .SH SYNOPSIS
+ .B transfig
+-[ -L \fIlanguage\fR ]
+-[ -M \fImakefile\fR ]
+-[ -T \fItexfile\fR ]
+-[ -I \fImacrofile\fR ]
+-[ -V ]
++[ \-L \fIlanguage\fR ]
++[ \-M \fImakefile\fR ]
++[ \-T \fItexfile\fR ]
++[ \-I \fImacrofile\fR ]
++[ \-V ]
+ [ \fIcontrol_specs\fR figfile ... ]
+ .SH DESCRIPTION
+ .I Transfig
+@@ -76,13 +76,13 @@
+ is the default.
+ .PP
+ The names of the makefile and TeX macro file can be set with the
+--M and -T options.
++\-M and \-T options.
+ The default names are "Makefile" and "transfig.tex", respectively.
+ If there is already an existing \fImakefile\fR in the directory, transfig
+ first renames it to \fImakefile~\fR. The same holds for any existing TeX macro file.
+-If the -I option is specified, then a command to read in \fImacrofile\fR is
++If the \-I option is specified, then a command to read in \fImacrofile\fR is
+ inserted into the TeX macro file.
+-If the -V option is specified, the program version number is printed only.
++If the \-V option is specified, the program version number is printed only.
+ .PP
+ Control specifiers are
+ .TP
diff --git a/media-gfx/transfig/files/transfig-3.2.5e-typos.patch b/media-gfx/transfig/files/transfig-3.2.5e-typos.patch
new file mode 100644
index 000000000000..0a0e5cd60b1e
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-typos.patch
@@ -0,0 +1,25 @@
+Author: Roland Rosenfeld <roland@debian.org>
+Description: Fix some spelling errors in the binaries
+
+--- a/fig2dev/dev/readgif.c
++++ b/fig2dev/dev/readgif.c
+@@ -151,7 +151,7 @@
+
+ if (c == '!') { /* Extension */
+ if (! ReadOK(file,&c,1))
+- fprintf(stderr,"GIF read error on extention function code\n");
++ fprintf(stderr,"GIF read error on extension function code\n");
+ (void) DoGIFextension(file, c);
+ continue;
+ }
+--- a/fig2dev/read.c
++++ b/fig2dev/read.c
+@@ -109,7 +109,7 @@
+ /* Format error; relevant error message is already delivered */
+ }
+ else
+- put_msg("File \"%s\" is not accessable; %s", file, strerror(err));
++ put_msg("File \"%s\" is not accessible; %s", file, strerror(err));
+ }
+
+ /**********************************************************
diff --git a/media-gfx/transfig/metadata.xml b/media-gfx/transfig/metadata.xml
index 91f4e72fb544..3eece155aa85 100644
--- a/media-gfx/transfig/metadata.xml
+++ b/media-gfx/transfig/metadata.xml
@@ -2,6 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
- <email>maintainer-needed@gentoo.org</email>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
</maintainer>
</pkgmetadata>
diff --git a/media-gfx/transfig/transfig-3.2.5e.ebuild b/media-gfx/transfig/transfig-3.2.5e.ebuild
new file mode 100644
index 000000000000..bca4ace7cd90
--- /dev/null
+++ b/media-gfx/transfig/transfig-3.2.5e.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/transfig/transfig-3.2.5e.ebuild,v 1.1 2014/06/08 19:49:07 pva Exp $
+
+EAPI="4"
+inherit toolchain-funcs eutils flag-o-matic multilib
+
+MY_P=${PN}.${PV}
+
+DESCRIPTION="A set of tools for creating TeX documents with graphics"
+HOMEPAGE="http://www.xfig.org/"
+SRC_URI="mirror://sourceforge/mcj/${MY_P}.tar.gz
+ mirror://gentoo/fig2mpdf-1.1.2.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="x11-libs/libXpm
+ virtual/jpeg
+ media-libs/libpng
+ x11-apps/rgb"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ app-text/rman"
+
+S=${WORKDIR}/${MY_P}
+
+sed_Imakefile() {
+ # see fig2dev/Imakefile for details
+ vars2subs="BINDIR=${EPREFIX}/usr/bin
+ MANDIR=${EPREFIX}/usr/share/man/man\$\(MANSUFFIX\)
+ XFIGLIBDIR=${EPREFIX}/usr/share/xfig
+ PNGINC=-I${EPREFIX}/usr/include/X11
+ XPMINC=-I${EPREFIX}/usr/include/X11
+ USEINLINE=-DUSE_INLINE
+ RGB=${EPREFIX}/usr/share/X11/rgb.txt
+ FIG2DEV_LIBDIR=${EPREFIX}/usr/share/fig2dev"
+
+ for variable in ${vars2subs} ; do
+ varname=${variable%%=*}
+ varval=${variable##*=}
+ sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@"
+ done
+}
+
+src_prepare() {
+ find . -type f -exec chmod a-x '{}' \;
+ find . -name Makefile -delete
+ epatch "${FILESDIR}"/${PN}-3.2.5d-fig2mpdf-r1.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5c-maxfontsize.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5-solaris.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5e-typos.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5e-man-hyphen.patch
+ epatch "${FILESDIR}"/${PN}-3.2.5e-fprintf_format_warnings.patch
+
+ sed -e 's:-L$(ZLIBDIR) -lz::' \
+ -e 's: -lX11::' \
+ -i fig2dev/Imakefile || die
+ sed_Imakefile fig2dev/Imakefile fig2dev/dev/Imakefile
+}
+
+src_compile() {
+ xmkmf || die "xmkmf failed"
+ emake Makefiles
+
+ emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
+ USRLIBDIR="${EPREFIX}/usr/$(get_libdir)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ ${transfig_conf} install install.man
+
+ dobin "${WORKDIR}/fig2mpdf/fig2mpdf"
+ doman "${WORKDIR}/fig2mpdf/fig2mpdf.1"
+
+ insinto /usr/share/fig2dev/
+ newins "${FILESDIR}/transfig-ru_RU.CP1251.ps" ru_RU.CP1251.ps
+ newins "${FILESDIR}/transfig-ru_RU.KOI8-R.ps" ru_RU.KOI8-R.ps
+ newins "${FILESDIR}/transfig-uk_UA.KOI8-U.ps" uk_UA.KOI8-U.ps
+
+ dohtml "${WORKDIR}/fig2mpdf/doc/"* || die
+
+ mv "${ED}"/usr/bin/fig2ps2tex{.sh,} || die #338295
+
+ dodoc README CHANGES LATEX.AND.XFIG NOTES
+}
+
+pkg_postinst() {
+ elog "Note, that defaults are changed and now if you don't want to ship"
+ elog "personal information into output files, use fig2dev with -a option."
+}