summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-08-27 09:45:02 +0000
committerPeter Volkov <pva@gentoo.org>2008-08-27 09:45:02 +0000
commita33015e7b408a5f3f24b2ae70f813c2226cb263e (patch)
tree4ab489ee642320759992466bd8ede8e09d195957 /media-gfx/transfig
parentInitial commit, closes bug #144982 (diff)
downloadgentoo-2-a33015e7b408a5f3f24b2ae70f813c2226cb263e.tar.gz
gentoo-2-a33015e7b408a5f3f24b2ae70f813c2226cb263e.tar.bz2
gentoo-2-a33015e7b408a5f3f24b2ae70f813c2226cb263e.zip
Fix export of arrows into PNG, bug #235348, thank renean AT gmx.de for report. Backported misc debian patches, see patches itself for descriptions.
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7 i686)
Diffstat (limited to 'media-gfx/transfig')
-rw-r--r--media-gfx/transfig/ChangeLog16
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5-SetFigFont-params.patch72
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5-arrows-and-QA.patch68
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5-displaywho.patch72
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5-fig2ps2tex_bashisms.patch28
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5-imagemap.patch31
-rw-r--r--media-gfx/transfig/files/transfig-3.2.5-locale.patch38
-rw-r--r--media-gfx/transfig/files/transfig-ru_RU.CP1251.ps298
-rw-r--r--media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps298
-rw-r--r--media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps298
-rw-r--r--media-gfx/transfig/transfig-3.2.5-r2.ebuild83
11 files changed, 1301 insertions, 1 deletions
diff --git a/media-gfx/transfig/ChangeLog b/media-gfx/transfig/ChangeLog
index 0170f97a68c5..ba884f6c9245 100644
--- a/media-gfx/transfig/ChangeLog
+++ b/media-gfx/transfig/ChangeLog
@@ -1,6 +1,20 @@
# ChangeLog for media-gfx/transfig
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/transfig/ChangeLog,v 1.43 2008/05/11 12:04:31 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/transfig/ChangeLog,v 1.44 2008/08/27 09:45:01 pva Exp $
+
+*transfig-3.2.5-r2 (27 Aug 2008)
+
+ 27 Aug 2008; Peter Volkov <pva@gentoo.org>
+ +files/transfig-3.2.5-SetFigFont-params.patch,
+ +files/transfig-3.2.5-arrows-and-QA.patch,
+ +files/transfig-3.2.5-displaywho.patch,
+ +files/transfig-3.2.5-fig2ps2tex_bashisms.patch,
+ +files/transfig-3.2.5-imagemap.patch, +files/transfig-3.2.5-locale.patch,
+ +files/transfig-ru_RU.CP1251.ps, +files/transfig-ru_RU.KOI8-R.ps,
+ +files/transfig-uk_UA.KOI8-U.ps, +transfig-3.2.5-r2.ebuild:
+ Fix export of arrows into PNG, bug #235348, thank renean AT gmx.de for
+ report. Backported misc debian patches, see patches itself for
+ descriptions.
*transfig-3.2.5-r1 (11 May 2008)
diff --git a/media-gfx/transfig/files/transfig-3.2.5-SetFigFont-params.patch b/media-gfx/transfig/files/transfig-3.2.5-SetFigFont-params.patch
new file mode 100644
index 000000000000..a698de769be9
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5-SetFigFont-params.patch
@@ -0,0 +1,72 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 11_SetFigFont-params.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Rename TeX macro \SetFigFont to \SetFigFontNFSS if NFSS ist defined.
+## DP: this should work around problems of users using PSTEX files generated
+## DP: by old and by new fig2dev in the same document.
+
+@DPATCH@
+diff -urNad transfig~/fig2dev/dev/genepic.c transfig/fig2dev/dev/genepic.c
+--- transfig~/fig2dev/dev/genepic.c
++++ transfig/fig2dev/dev/genepic.c
+@@ -1227,10 +1227,10 @@
+
+ #ifdef NFSS
+ if ( FontSizeOnly )
+- fprintf(tfp, "{\\SetFigFont{%d}{%.1f}",
++ fprintf(tfp, "{\\SetFigFontNFSS{%d}{%.1f}",
+ texsize, baselineskip );
+ else
+- fprintf(tfp, "{\\SetFigFont{%d}{%.1f}{%s}{%s}{%s}",
++ fprintf(tfp, "{\\SetFigFontNFSS{%d}{%.1f}{%s}{%s}{%s}",
+ texsize, baselineskip,
+ TEXFAMILY(text->font),TEXSERIES(text->font),
+ TEXSHAPE(text->font));
+diff -urNad transfig~/fig2dev/dev/genmp.c transfig/fig2dev/dev/genmp.c
+--- transfig~/fig2dev/dev/genmp.c
++++ transfig/fig2dev/dev/genmp.c
+@@ -1273,7 +1273,7 @@
+ /* not default font: set the font and font size. */
+ if (! isdefaultfont (t->flags, t->font)) {
+ #ifdef NFSS
+- fprintf(tfp," \\SetFigFont{%d}{%.1f}{%s}{%s}{%s}%%\n",
++ fprintf(tfp," \\SetFigFontNFSS{%d}{%.1f}{%s}{%s}{%s}%%\n",
+ texsize, baselineskip,
+ TEXFAMILY(t->font),TEXSERIES(t->font),TEXSHAPE(t->font));
+ #else
+diff -urNad transfig~/fig2dev/dev/genpictex.c transfig/fig2dev/dev/genpictex.c
+--- transfig~/fig2dev/dev/genpictex.c
++++ transfig/fig2dev/dev/genpictex.c
+@@ -637,7 +637,7 @@
+ baselineskip = (texsize * 1.2);
+
+ #ifdef NFSS
+- fprintf(tfp, "\\put{\\SetFigFont{%d}{%.1f}{%s}{%s}{%s}",
++ fprintf(tfp, "\\put{\\SetFigFontNFSS{%d}{%.1f}{%s}{%s}{%s}",
+ texsize, baselineskip,
+ TEXFAMILY(t->font),TEXSERIES(t->font),TEXSHAPE(t->font));
+ #else
+diff -urNad transfig~/fig2dev/dev/setfigfont.c transfig/fig2dev/dev/setfigfont.c
+--- transfig~/fig2dev/dev/setfigfont.c
++++ transfig/fig2dev/dev/setfigfont.c
+@@ -36,15 +36,15 @@
+
+ if ( FontSizeOnly )
+ fprintf(tfp, "%%\n\
+-\\begingroup\\makeatletter\\ifx\\SetFigFont\\undefined%%\n\
+-\\gdef\\SetFigFont#1#2{%%\n\
++\\begingroup\\makeatletter\\ifx\\SetFigFontNFSS\\undefined%%\n\
++\\gdef\\SetFigFontNFSS#1#2{%%\n\
+ \\fontsize{#1}{#2pt}%%\n\
+ \\selectfont}%%\n\
+ \\fi\\endgroup%%\n");
+ else
+ fprintf(tfp, "%%\n\
+-\\begingroup\\makeatletter\\ifx\\SetFigFont\\undefined%%\n\
+-\\gdef\\SetFigFont#1#2#3#4#5{%%\n\
++\\begingroup\\makeatletter\\ifx\\SetFigFontNFSS\\undefined%%\n\
++\\gdef\\SetFigFontNFSS#1#2#3#4#5{%%\n\
+ \\reset@font\\fontsize{#1}{#2pt}%%\n\
+ \\fontfamily{#3}\\fontseries{#4}\\fontshape{#5}%%\n\
+ \\selectfont}%%\n\
diff --git a/media-gfx/transfig/files/transfig-3.2.5-arrows-and-QA.patch b/media-gfx/transfig/files/transfig-3.2.5-arrows-and-QA.patch
new file mode 100644
index 000000000000..6716a7c9c871
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5-arrows-and-QA.patch
@@ -0,0 +1,68 @@
+Source: Patch by renean AT gmx.de, bug #235348.
+Upstream: Dead - so no new releases, but they suggested this patch
+Reason: When using different arrow shapes, only the basic ones can be exported to any
+graphics format. The diamond shaped ones e.g. cannot be exported.
+
+I wrote to the developer and got answer, that this is a problem of fig2dev in
+transfig.
+
+In the source directory in transfig/fig2dev/bound.c remove the
+ #ifdef NEWARROWTYPES and the
+ #endif /* NEWARROWTYPES */
+
+I tried it and it works perfectly using the latest version of xfig in portage.
+Also removed the QA warnings which were due to missing header inclusions.
+
+diff -Naur transfig.3.2.5/fig2dev/bound.c transfig.3.2.5-patched/fig2dev/bound.c
+--- transfig.3.2.5/fig2dev/bound.c 2005-11-24 00:49:31.000000000 +0100
++++ transfig.3.2.5-patched/fig2dev/bound.c 2008-08-23 13:33:15.000000000 +0200
+@@ -72,7 +72,6 @@
+ { 5, 1, 0, True, True, False, 1.5, {{-0.75,0.5},{0,0},{-0.75,-0.5},{-1.0,0},{-0.75,0.5}}},
+ /* type 3b filled convex spearhead */
+ { 5, 1, 0, True, True, False, 1.5, {{-0.75,0.5},{0,0},{-0.75,-0.5},{-1.0,0},{-0.75,0.5}}},
+-#ifdef NEWARROWTYPES
+ /* type 4a diamond */
+ { 5, 1, 0, True, True, False, 1.15, {{-0.5,0.5},{0,0},{-0.5,-0.5},{-1.0,0},{-0.5,0.5}}},
+ /* type 4b filled diamond */
+@@ -120,7 +119,6 @@
+ { 4, 0, 0, True, True, False, -1.0, {{0,0.5},{-1.0,0.5},{-1.0,-0.5},{0,-0.5}}},
+ /* type 14b backward two-prong fork */
+ { 4, 1, 0, True, True, False, 0.0, {{-1.0,0.5,},{0,0.5},{0,-0.5},{-1.0,-0.5}}},
+-#endif /* NEWARROWTYPES */
+ };
+
+ void
+diff -Naur transfig.3.2.5/transfig/sys.c transfig.3.2.5-patched/transfig/sys.c
+--- transfig.3.2.5/transfig/sys.c 2005-10-27 20:23:42.000000000 +0200
++++ transfig.3.2.5-patched/transfig/sys.c 2008-08-23 13:38:15.614628350 +0200
+@@ -15,6 +15,8 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "transfig.h"
+
+ #define MAXSYS 10000
+diff -Naur transfig.3.2.5/transfig/transfig.c transfig.3.2.5-patched/transfig/transfig.c
+--- transfig.3.2.5/transfig/transfig.c 2003-04-15 20:31:10.000000000 +0200
++++ transfig.3.2.5-patched/transfig/transfig.c 2008-08-23 13:37:18.706627399 +0200
+@@ -25,6 +25,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "patchlevel.h"
+ #include "transfig.h"
+
+diff -Naur transfig.3.2.5/transfig/txfile.c transfig.3.2.5-patched/transfig/txfile.c
+--- transfig.3.2.5/transfig/txfile.c 2003-10-31 19:26:27.000000000 +0100
++++ transfig.3.2.5-patched/transfig/txfile.c 2008-08-23 13:37:33.530628914 +0200
+@@ -15,6 +15,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "transfig.h"
+
+ /*
diff --git a/media-gfx/transfig/files/transfig-3.2.5-displaywho.patch b/media-gfx/transfig/files/transfig-3.2.5-displaywho.patch
new file mode 100644
index 000000000000..e5f304200935
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5-displaywho.patch
@@ -0,0 +1,72 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_displaywho.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Remove comment "For: <user>@<host> (<Realname>)" from PS files
+## DP: (generated in genps.c and genpictex.c), because we won't ship personal
+## DP: information in output files (Closes: #316382).
+
+@DPATCH@
+--- transfig~/fig2dev/dev/genpictex.c
++++ transfig/fig2dev/dev/genpictex.c
+@@ -125,7 +125,9 @@
+ {
+ char host[256];
+ time_t when;
++#ifdef DISPLAYWHO
+ struct passwd *who;
++#endif
+
+ texfontsizes[0] = texfontsizes[1] =
+ TEXFONTSIZE(font_size != 0.0? font_size : DEFAULT_FONT_SIZE);
+@@ -139,12 +141,16 @@
+ fprintf(tfp, "%%%%Created by: %s Version %s Patchlevel %s\n",
+ prog, VERSION, PATCHLEVEL);
+ fprintf(tfp, "%%%%CreationDate: %s", ctime(&when));
++#ifdef DISPLAYWHO
+ who = getpwuid(getuid());
++#endif
+ if (gethostname(host, sizeof(host)) == -1)
+ (void)strcpy(host, "unknown-host!?!?");
++#ifdef DISPLAYWHO
+ if (who)
+ fprintf(tfp, "%%%%User: %s@%s (%s)\n",
+ who->pw_name, host, who->pw_gecos);
++#endif
+
+ /* print any whole-figure comments prefixed with "% " */
+ if (objects->comments) {
+--- transfig~/fig2dev/dev/genps.c
++++ transfig/fig2dev/dev/genps.c
+@@ -449,7 +449,9 @@
+ F_compound *objects;
+ {
+ char host[256];
++#ifdef DISPLAYWHO
+ struct passwd *who;
++#endif
+ time_t when;
+ int itmp, jtmp;
+ int i;
+@@ -618,7 +620,9 @@
+ else
+ fprintf(tfp, "%%!PS-Adobe-2.0\n"); /* PostScript magic strings */
+
++#ifdef DISPLAYWHO
+ who = getpwuid(getuid());
++#endif
+ if (gethostname(host, sizeof(host)) == -1)
+ (void)strcpy(host, "unknown-host!?!?");
+ (void) time(&when);
+@@ -627,9 +631,11 @@
+ fprintf(tfp, "%%%%Creator: %s Version %s Patchlevel %s\n",
+ prog, VERSION, PATCHLEVEL);
+ fprintf(tfp, "%%%%CreationDate: %s", ctime(&when));
++#ifdef DISPLAYWHO
+ if (who)
+ fprintf(tfp, "%%%%For: %s@%s (%s)\n",
+ who->pw_name, host, who->pw_gecos);
++#endif DISPLAYWHO
+
+ /* calc initial clipping area to size of the bounding box (this is needed
+ for later clipping by arrowheads */
diff --git a/media-gfx/transfig/files/transfig-3.2.5-fig2ps2tex_bashisms.patch b/media-gfx/transfig/files/transfig-3.2.5-fig2ps2tex_bashisms.patch
new file mode 100644
index 000000000000..8e26ee4b50b9
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5-fig2ps2tex_bashisms.patch
@@ -0,0 +1,28 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 18_fig2ps2tex_bashisms.dpatch by Chris Lamb <chris@chris-lamb.co.uk>
+
+## DP: Fix Bashisms in fig2ps2tex /bin/sh script
+
+@DPATCH@
+diff -urNad transfig-3.2.5-rel.orig/fig2dev/fig2ps2tex.sh.script transfig-3.2.5-rel/fig2dev/fig2ps2tex.sh.script
+--- transfig-3.2.5-rel.orig/fig2dev/fig2ps2tex.sh.script 2008-05-24 16:04:20.000000000 +0100
++++ transfig-3.2.5-rel/fig2dev/fig2ps2tex.sh.script 2008-05-24 16:27:35.000000000 +0100
+@@ -14,11 +14,11 @@
+ xsp=`echo "scale=3; ( $bbox4 - $bbox2 ) / 72" | bc`
+ ysp=`echo "scale=3; ( $bbox5 - $bbox3 ) / 72" | bc`
+
+-echo "\makebox[${xsp}in][l]{"
+-echo " \vbox to ${ysp}in{"
+-echo " \vfill"
+-echo " \special{psfile=$1}"
+-echo " }"
+-echo " \vspace{-\baselineskip}"
+-echo "}"
++printf "\makebox[${xsp}in][l]{\n"
++printf " \\\vbox to ${ysp}in{\n"
++printf " \\\vfill\n"
++printf " \special{psfile=$1}\n"
++printf " }\n"
++printf " \\\vspace{-\\\baselineskip}\n"
++printf "}\n"
+
diff --git a/media-gfx/transfig/files/transfig-3.2.5-imagemap.patch b/media-gfx/transfig/files/transfig-3.2.5-imagemap.patch
new file mode 100644
index 000000000000..f1fed0d91b87
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5-imagemap.patch
@@ -0,0 +1,31 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 12_PNG_imagemap.dpatch by Eugen Dedu <Eugen.Dedu@pu-pm.univ-fcomte.fr>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Use PNG instead of GIF in HTML image maps.
+
+@DPATCH@
+diff -urNad transfig~/doc/fig2dev.1 transfig/doc/fig2dev.1
+--- transfig~/doc/fig2dev.1
++++ transfig/doc/fig2dev.1
+@@ -473,7 +473,7 @@
+ that have href="some_html_reference" in their comments.
+ Any Fig object except compound objects may used for this.
+ Usually, besides generating the map file, you would also
+-generate a GIF file, which is the image to which the map refers.
++generate a PNG file, which is the image to which the map refers.
+ .sp
+ For example, you may have an xfig drawing with an
+ imported image that has the comment
+diff -urNad transfig~/fig2dev/dev/genmap.c transfig/fig2dev/dev/genmap.c
+--- transfig~/fig2dev/dev/genmap.c
++++ transfig/fig2dev/dev/genmap.c
+@@ -172,7 +172,7 @@
+ fprintf(tfp, "<P>You can copy the following lines into your HTML document.\n");
+ fprintf(tfp, "You may need to edit the name of the image file in the first line.</P>\n");
+ fprintf(tfp, "\n");
+- fprintf(tfp, "<IMG SRC=\"%s.gif\" USEMAP=\"#%s\">\n", basename, basename);
++ fprintf(tfp, "<IMG SRC=\"%s.png\" USEMAP=\"#%s\">\n", basename, basename);
+ fprintf(tfp, "<MAP NAME=\"%s\">\n", basename);
+
+ ref = is_link(objects->comments);
diff --git a/media-gfx/transfig/files/transfig-3.2.5-locale.patch b/media-gfx/transfig/files/transfig-3.2.5-locale.patch
new file mode 100644
index 000000000000..12dc63b2cc72
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5-locale.patch
@@ -0,0 +1,38 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_locale.dpatch by Roland Rosenfeld <roland@debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: fix locale settings.
+
+Set LC_CTYPE otherwise we will have strange effects with LC_NUMERIC creating
+"," as the decimal separator, which is wrong for postscript code.
+
+@DPATCH@
+--- transfig~/fig2dev/dev/genps.c
++++ transfig/fig2dev/dev/genps.c
+@@ -42,6 +42,7 @@
+ #include "bound.h"
+ #include "psencode.h"
+ #include "psfonts.h"
++#include <locale.h>
+
+ /* for the xpm package */
+ #ifdef USE_XPM
+--- transfig~/fig2dev/fig2dev.c
++++ transfig/fig2dev/fig2dev.c
+@@ -24,6 +24,7 @@
+ #include <sys/types.h>
+ #endif
+ #include <sys/file.h>
++#include <locale.h>
+ #include "fig2dev.h"
+ #include "alloc.h"
+ #include "object.h"
+@@ -378,6 +379,7 @@
+ F_compound objects;
+ int status;
+
++ setlocale(LC_CTYPE, "");
+ #ifdef HAVE_SETMODE
+ setmode(1,O_BINARY); /* stdout is binary */
+ #endif
diff --git a/media-gfx/transfig/files/transfig-ru_RU.CP1251.ps b/media-gfx/transfig/files/transfig-ru_RU.CP1251.ps
new file mode 100644
index 000000000000..f8c142a642b2
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-ru_RU.CP1251.ps
@@ -0,0 +1,298 @@
+%% Begining of ru_RU.CP1251.ps
+%%
+%% Author: Yura Zotov <yz@altlinux.ru>
+%% based on cs_CZ.ps made by Radim Gelner <radim.gelner@suse.cz>
+%%
+%%BeginResource: encoding ISOLatin2Encoding
+
+/isol2vec [
+10#0 /.notdef
+10#1 /.notdef
+10#2 /.notdef
+10#3 /.notdef
+10#4 /.notdef
+10#5 /.notdef
+10#6 /.notdef
+10#7 /.notdef
+10#8 /.notdef
+10#9 /.notdef
+10#10 /.notdef
+10#11 /.notdef
+10#12 /.notdef
+10#13 /.notdef
+10#14 /.notdef
+10#15 /.notdef
+10#16 /.notdef
+10#17 /.notdef
+10#18 /.notdef
+10#19 /.notdef
+10#20 /.notdef
+10#21 /.notdef
+10#22 /.notdef
+10#23 /.notdef
+10#24 /.notdef
+10#25 /.notdef
+10#26 /.notdef
+10#27 /.notdef
+10#28 /.notdef
+10#29 /.notdef
+10#30 /.notdef
+10#31 /.notdef
+10#32 /space
+10#33 /exclam
+10#34 /quotedbl
+10#35 /numbersign
+10#36 /dollar
+10#37 /percent
+10#38 /ampersand
+10#39 /quoteright
+10#40 /parenleft
+10#41 /parenright
+10#42 /asterisk
+10#43 /plus
+10#44 /comma
+10#45 /hyphen
+10#46 /period
+10#47 /slash
+10#48 /zero
+10#49 /one
+10#50 /two
+10#51 /three
+10#52 /four
+10#53 /five
+10#54 /six
+10#55 /seven
+10#56 /eight
+10#57 /nine
+10#58 /colon
+10#59 /semicolon
+10#60 /less
+10#61 /equal
+10#62 /greater
+10#63 /question
+10#64 /at
+10#65 /A
+10#66 /B
+10#67 /C
+10#68 /D
+10#69 /E
+10#70 /F
+10#71 /G
+10#72 /H
+10#73 /I
+10#74 /J
+10#75 /K
+10#76 /L
+10#77 /M
+10#78 /N
+10#79 /O
+10#80 /P
+10#81 /Q
+10#82 /R
+10#83 /S
+10#84 /T
+10#85 /U
+10#86 /V
+10#87 /W
+10#88 /X
+10#89 /Y
+10#90 /Z
+10#91 /bracketleft
+10#92 /backslash
+10#93 /bracketright
+10#94 /asciicircum
+10#95 /underscore
+10#96 /quoteleft
+10#97 /a
+10#98 /b
+10#99 /c
+10#100 /d
+10#101 /e
+10#102 /f
+10#103 /g
+10#104 /h
+10#105 /i
+10#106 /j
+10#107 /k
+10#108 /l
+10#109 /m
+10#110 /n
+10#111 /o
+10#112 /p
+10#113 /q
+10#114 /r
+10#115 /s
+10#116 /t
+10#117 /u
+10#118 /v
+10#119 /w
+10#120 /x
+10#121 /y
+10#122 /z
+10#123 /braceleft
+10#124 /bar
+10#125 /braceright
+10#126 /asciitilde
+10#127 /.notdef
+10#128 /afii10051
+10#129 /afii10052
+10#130 /quotesinglbase
+10#131 /afii10100
+10#132 /quotedblbase
+10#133 /ellipsis
+10#134 /dagger
+10#135 /daggerdbl
+10#136 /Euro
+10#137 /perthousand
+10#138 /afii10058
+10#139 /guilsinglleft
+10#140 /afii10059
+10#141 /afii10061
+10#142 /afii10060
+10#143 /afii10145
+10#144 /afii10099
+10#145 /quoteleft
+10#146 /quoteright
+10#147 /quotedblleft
+10#148 /quotedblright
+10#149 /bullet
+10#150 /endash
+10#151 /emdash
+10#152 /tilde
+10#153 /trademark
+10#154 /afii10106
+10#155 /guilsinglright
+10#156 /afii10107
+10#157 /afii10109
+10#158 /afii10108
+10#159 /afii10193
+10#160 /.notdef
+10#161 /afii10062
+10#162 /afii10110
+10#163 /afii10057
+10#164 /currency
+10#165 /afii10050
+10#166 /brokenbar
+10#167 /section
+10#168 /afii10023
+10#169 /copyright
+10#170 /afii10053
+10#171 /guillemotleft
+10#172 /logicalnot
+10#173 /hyphen
+10#174 /registered
+10#175 /afii10056
+10#176 /degree
+10#177 /plusminus
+10#178 /afii10055
+10#179 /afii10103
+10#180 /afii10098
+10#181 /mu
+10#182 /paragraph
+10#183 /periodcentered
+10#184 /afii10071
+10#185 /afii61352
+10#186 /afii10101
+10#187 /guillemotright
+10#188 /afii10105
+10#189 /afii10054
+10#190 /afii10102
+10#191 /afii10104
+10#192 /afii10017
+10#193 /afii10018
+10#194 /afii10019
+10#195 /afii10020
+10#196 /afii10021
+10#197 /afii10022
+10#198 /afii10024
+10#199 /afii10025
+10#200 /afii10026
+10#201 /afii10027
+10#202 /afii10028
+10#203 /afii10029
+10#204 /afii10030
+10#205 /afii10031
+10#206 /afii10032
+10#207 /afii10033
+10#208 /afii10034
+10#209 /afii10035
+10#210 /afii10036
+10#211 /afii10037
+10#212 /afii10038
+10#213 /afii10039
+10#214 /afii10040
+10#215 /afii10041
+10#216 /afii10042
+10#217 /afii10043
+10#218 /afii10044
+10#219 /afii10045
+10#220 /afii10046
+10#221 /afii10047
+10#222 /afii10048
+10#223 /afii10049
+10#224 /afii10065
+10#225 /afii10066
+10#226 /afii10067
+10#227 /afii10068
+10#228 /afii10069
+10#229 /afii10070
+10#230 /afii10072
+10#231 /afii10073
+10#232 /afii10074
+10#233 /afii10075
+10#234 /afii10076
+10#235 /afii10077
+10#236 /afii10078
+10#237 /afii10079
+10#238 /afii10080
+10#239 /afii10081
+10#240 /afii10082
+10#241 /afii10083
+10#242 /afii10084
+10#243 /afii10085
+10#244 /afii10086
+10#245 /afii10087
+10#246 /afii10088
+10#247 /afii10089
+10#248 /afii10090
+10#249 /afii10091
+10#250 /afii10092
+10#251 /afii10093
+10#252 /afii10094
+10#253 /afii10095
+10#254 /afii10096
+10#255 /afii10097] def
+%%EndResource
+/Times-Roman /Times-Roman-iso isol2vec ReEncode
+/Times-Italic /Times-Italic-iso isol2vec ReEncode
+/Times-Bold /Times-Bold-iso isol2vec ReEncode
+/Times-BoldItalic /Times-BoldItalic-iso isol2vec ReEncode
+/AvantGarde-Book /AvantGarde-Book-iso isol2vec ReEncode
+/AvantGarde-BookOblique /AvantGarde-BookOblique-iso isol2vec ReEncode
+/AvantGarde-Demi /AvantGarde-Demi-iso isol2vec ReEncode
+/AvantGarde-DemiOblique /AvantGarde-DemiOblique-iso isol2vec ReEncode
+/Bookman-Light /Bookman-Light-iso isol2vec ReEncode
+/Bookman-LightItalic /Bookman-LightItalic-iso isol2vec ReEncode
+/Bookman-Demi /Bookman-Demi-iso isol2vec ReEncode
+/Bookman-DemiItalic /Bookman-DemiItalic-iso isol2vec ReEncode
+/Courier /Courier-iso isol2vec ReEncode
+/Courier-Oblique /Courier-Oblique-iso isol2vec ReEncode
+/Courier-Bold /Courier-Bold-iso isol2vec ReEncode
+/Courier-BoldOblique /Courier-BoldOblique-iso isol2vec ReEncode
+/Helvetica /Helvetica-iso isol2vec ReEncode
+/Helvetica-Oblique /Helvetica-Oblique-iso isol2vec ReEncode
+/Helvetica-Bold /Helvetica-Bold-iso isol2vec ReEncode
+/Helvetica-BoldOblique /Helvetica-BoldOblique-iso isol2vec ReEncode
+/Helvetica-Narrow /Helvetica-Narrow-iso isol2vec ReEncode
+/Helvetica-Narrow-Oblique /Helvetica-Narrow-Oblique-iso isol2vec ReEncode
+/Helvetica-Narrow-Bold /Helvetica-Narrow-Bold-iso isol2vec ReEncode
+/Helvetica-Narrow-BoldOblique /Helvetica-Narrow-BoldOblique-iso isol2vec ReEncode
+/NewCenturySchlbk-Roman /NewCenturySchlbk-Roman-iso isol2vec ReEncode
+/NewCenturySchlbk-Italic /NewCenturySchlbk-Italic-iso isol2vec ReEncode
+/NewCenturySchlbk-Bold /NewCenturySchlbk-Bold-iso isol2vec ReEncode
+/NewCenturySchlbk-BoldItalic /NewCenturySchlbk-BoldItalic-iso isol2vec ReEncode
+/Palatino-Roman /Palatino-Roman-iso isol2vec ReEncode
+/Palatino-Italic /Palatino-Italic-iso isol2vec ReEncode
+/Palatino-Bold /Palatino-Bold-iso isol2vec ReEncode
+/Palatino-BoldItalic /Palatino-BoldItalic-iso isol2vec ReEncode
+%% End of ru_RU.CP1251.ps
diff --git a/media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps b/media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps
new file mode 100644
index 000000000000..1bda0b26a602
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-ru_RU.KOI8-R.ps
@@ -0,0 +1,298 @@
+%% Begining of ru_RU.KOI8-R.ps
+%%
+%% Author: Yura Zotov <yz@altlinux.ru>
+%% based on cs_CZ.ps made by Radim Gelner <radim.gelner@suse.cz>
+%%
+%%BeginResource: encoding ISOLatin2Encoding
+
+/isol2vec [
+10#0 /.notdef
+10#1 /.notdef
+10#2 /.notdef
+10#3 /.notdef
+10#4 /.notdef
+10#5 /.notdef
+10#6 /.notdef
+10#7 /.notdef
+10#8 /.notdef
+10#9 /.notdef
+10#10 /.notdef
+10#11 /.notdef
+10#12 /.notdef
+10#13 /.notdef
+10#14 /.notdef
+10#15 /.notdef
+10#16 /.notdef
+10#17 /.notdef
+10#18 /.notdef
+10#19 /.notdef
+10#20 /.notdef
+10#21 /.notdef
+10#22 /.notdef
+10#23 /.notdef
+10#24 /.notdef
+10#25 /.notdef
+10#26 /.notdef
+10#27 /.notdef
+10#28 /.notdef
+10#29 /.notdef
+10#30 /.notdef
+10#31 /.notdef
+10#32 /space
+10#33 /exclam
+10#34 /quotedbl
+10#35 /numbersign
+10#36 /dollar
+10#37 /percent
+10#38 /ampersand
+10#39 /quotesingle
+10#40 /parenleft
+10#41 /parenright
+10#42 /asterisk
+10#43 /plus
+10#44 /comma
+10#45 /hyphen
+10#46 /period
+10#47 /slash
+10#48 /zero
+10#49 /one
+10#50 /two
+10#51 /three
+10#52 /four
+10#53 /five
+10#54 /six
+10#55 /seven
+10#56 /eight
+10#57 /nine
+10#58 /colon
+10#59 /semicolon
+10#60 /less
+10#61 /equal
+10#62 /greater
+10#63 /question
+10#64 /at
+10#65 /A
+10#66 /B
+10#67 /C
+10#68 /D
+10#69 /E
+10#70 /F
+10#71 /G
+10#72 /H
+10#73 /I
+10#74 /J
+10#75 /K
+10#76 /L
+10#77 /M
+10#78 /N
+10#79 /O
+10#80 /P
+10#81 /Q
+10#82 /R
+10#83 /S
+10#84 /T
+10#85 /U
+10#86 /V
+10#87 /W
+10#88 /X
+10#89 /Y
+10#90 /Z
+10#91 /bracketleft
+10#92 /backslash
+10#93 /bracketright
+10#94 /asciicircum
+10#95 /underscore
+10#96 /grave
+10#97 /a
+10#98 /b
+10#99 /c
+10#100 /d
+10#101 /e
+10#102 /f
+10#103 /g
+10#104 /h
+10#105 /i
+10#106 /j
+10#107 /k
+10#108 /l
+10#109 /m
+10#110 /n
+10#111 /o
+10#112 /p
+10#113 /q
+10#114 /r
+10#115 /s
+10#116 /t
+10#117 /u
+10#118 /v
+10#119 /w
+10#120 /x
+10#121 /y
+10#122 /z
+10#123 /braceleft
+10#124 /bar
+10#125 /braceright
+10#126 /asciitilde
+10#127 /.notdef
+10#128 /SF100000
+10#129 /SF110000
+10#130 /SF010000
+10#131 /SF030000
+10#132 /SF020000
+10#133 /SF040000
+10#134 /SF080000
+10#135 /SF090000
+10#136 /SF060000
+10#137 /SF070000
+10#138 /SF050000
+10#139 /upblock
+10#140 /dnblock
+10#141 /block
+10#142 /lfblock
+10#143 /rtblock
+10#144 /ltshade
+10#145 /shade
+10#146 /dkshade
+10#147 /integraltp
+10#148 /filledbox
+10#149 /uni2219
+10#150 /radical
+10#151 /approxequal
+10#152 /lessequal
+10#153 /greaterequal
+10#154 /uni00A0
+10#155 /integralbt
+10#156 /degree
+10#157 /twosuperior
+10#158 /periodcentered
+10#159 /divide
+10#160 /SF430000
+10#161 /SF240000
+10#162 /SF510000
+10#163 /afii10071
+10#164 /SF520000
+10#165 /SF390000
+10#166 /SF220000
+10#167 /SF210000
+10#168 /SF250000
+10#169 /SF500000
+10#170 /SF490000
+10#171 /SF380000
+10#172 /SF280000
+10#173 /SF270000
+10#174 /SF260000
+10#175 /SF360000
+10#176 /SF370000
+10#177 /SF420000
+10#178 /SF190000
+10#179 /afii10023
+10#180 /SF200000
+10#181 /SF230000
+10#182 /SF470000
+10#183 /SF480000
+10#184 /SF410000
+10#185 /SF450000
+10#186 /SF460000
+10#187 /SF400000
+10#188 /SF540000
+10#189 /SF530000
+10#190 /SF440000
+10#191 /copyright
+10#192 /afii10096
+10#193 /afii10065
+10#194 /afii10066
+10#195 /afii10088
+10#196 /afii10069
+10#197 /afii10070
+10#198 /afii10086
+10#199 /afii10068
+10#200 /afii10087
+10#201 /afii10074
+10#202 /afii10075
+10#203 /afii10076
+10#204 /afii10077
+10#205 /afii10078
+10#206 /afii10079
+10#207 /afii10080
+10#208 /afii10081
+10#209 /afii10097
+10#210 /afii10082
+10#211 /afii10083
+10#212 /afii10084
+10#213 /afii10085
+10#214 /afii10072
+10#215 /afii10067
+10#216 /afii10094
+10#217 /afii10093
+10#218 /afii10073
+10#219 /afii10090
+10#220 /afii10095
+10#221 /afii10091
+10#222 /afii10089
+10#223 /afii10092
+10#224 /afii10048
+10#225 /afii10017
+10#226 /afii10018
+10#227 /afii10040
+10#228 /afii10021
+10#229 /afii10022
+10#230 /afii10038
+10#231 /afii10020
+10#232 /afii10039
+10#233 /afii10026
+10#234 /afii10027
+10#235 /afii10028
+10#236 /afii10029
+10#237 /afii10030
+10#238 /afii10031
+10#239 /afii10032
+10#240 /afii10033
+10#241 /afii10049
+10#242 /afii10034
+10#243 /afii10035
+10#244 /afii10036
+10#245 /afii10037
+10#246 /afii10024
+10#247 /afii10019
+10#248 /afii10046
+10#249 /afii10045
+10#250 /afii10025
+10#251 /afii10042
+10#252 /afii10047
+10#253 /afii10043
+10#254 /afii10041
+10#255 /afii10044] def
+%%EndResource
+/Times-Roman /Times-Roman-iso isol2vec ReEncode
+/Times-Italic /Times-Italic-iso isol2vec ReEncode
+/Times-Bold /Times-Bold-iso isol2vec ReEncode
+/Times-BoldItalic /Times-BoldItalic-iso isol2vec ReEncode
+/AvantGarde-Book /AvantGarde-Book-iso isol2vec ReEncode
+/AvantGarde-BookOblique /AvantGarde-BookOblique-iso isol2vec ReEncode
+/AvantGarde-Demi /AvantGarde-Demi-iso isol2vec ReEncode
+/AvantGarde-DemiOblique /AvantGarde-DemiOblique-iso isol2vec ReEncode
+/Bookman-Light /Bookman-Light-iso isol2vec ReEncode
+/Bookman-LightItalic /Bookman-LightItalic-iso isol2vec ReEncode
+/Bookman-Demi /Bookman-Demi-iso isol2vec ReEncode
+/Bookman-DemiItalic /Bookman-DemiItalic-iso isol2vec ReEncode
+/Courier /Courier-iso isol2vec ReEncode
+/Courier-Oblique /Courier-Oblique-iso isol2vec ReEncode
+/Courier-Bold /Courier-Bold-iso isol2vec ReEncode
+/Courier-BoldOblique /Courier-BoldOblique-iso isol2vec ReEncode
+/Helvetica /Helvetica-iso isol2vec ReEncode
+/Helvetica-Oblique /Helvetica-Oblique-iso isol2vec ReEncode
+/Helvetica-Bold /Helvetica-Bold-iso isol2vec ReEncode
+/Helvetica-BoldOblique /Helvetica-BoldOblique-iso isol2vec ReEncode
+/Helvetica-Narrow /Helvetica-Narrow-iso isol2vec ReEncode
+/Helvetica-Narrow-Oblique /Helvetica-Narrow-Oblique-iso isol2vec ReEncode
+/Helvetica-Narrow-Bold /Helvetica-Narrow-Bold-iso isol2vec ReEncode
+/Helvetica-Narrow-BoldOblique /Helvetica-Narrow-BoldOblique-iso isol2vec ReEncode
+/NewCenturySchlbk-Roman /NewCenturySchlbk-Roman-iso isol2vec ReEncode
+/NewCenturySchlbk-Italic /NewCenturySchlbk-Italic-iso isol2vec ReEncode
+/NewCenturySchlbk-Bold /NewCenturySchlbk-Bold-iso isol2vec ReEncode
+/NewCenturySchlbk-BoldItalic /NewCenturySchlbk-BoldItalic-iso isol2vec ReEncode
+/Palatino-Roman /Palatino-Roman-iso isol2vec ReEncode
+/Palatino-Italic /Palatino-Italic-iso isol2vec ReEncode
+/Palatino-Bold /Palatino-Bold-iso isol2vec ReEncode
+/Palatino-BoldItalic /Palatino-BoldItalic-iso isol2vec ReEncode
+%% End of ru_RU.KOI8-R.ps
diff --git a/media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps b/media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps
new file mode 100644
index 000000000000..8803c72e4697
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-uk_UA.KOI8-U.ps
@@ -0,0 +1,298 @@
+%% Begining of uk_UA.KOI8-U.ps
+%%
+%% Author: Yura Zotov <yz@altlinux.ru>
+%% based on cs_CZ.ps made by Radim Gelner <radim.gelner@suse.cz>
+%%
+%%BeginResource: encoding ISOLatin2Encoding
+
+/isol2vec [
+10#0 /.notdef
+10#1 /.notdef
+10#2 /.notdef
+10#3 /.notdef
+10#4 /.notdef
+10#5 /.notdef
+10#6 /.notdef
+10#7 /.notdef
+10#8 /.notdef
+10#9 /.notdef
+10#10 /.notdef
+10#11 /.notdef
+10#12 /.notdef
+10#13 /.notdef
+10#14 /.notdef
+10#15 /.notdef
+10#16 /.notdef
+10#17 /.notdef
+10#18 /.notdef
+10#19 /.notdef
+10#20 /.notdef
+10#21 /.notdef
+10#22 /.notdef
+10#23 /.notdef
+10#24 /.notdef
+10#25 /.notdef
+10#26 /.notdef
+10#27 /.notdef
+10#28 /.notdef
+10#29 /.notdef
+10#30 /.notdef
+10#31 /.notdef
+10#32 /space
+10#33 /exclam
+10#34 /quotedbl
+10#35 /numbersign
+10#36 /dollar
+10#37 /percent
+10#38 /ampersand
+10#39 /quotesingle
+10#40 /parenleft
+10#41 /parenright
+10#42 /asterisk
+10#43 /plus
+10#44 /comma
+10#45 /hyphen
+10#46 /period
+10#47 /slash
+10#48 /zero
+10#49 /one
+10#50 /two
+10#51 /three
+10#52 /four
+10#53 /five
+10#54 /six
+10#55 /seven
+10#56 /eight
+10#57 /nine
+10#58 /colon
+10#59 /semicolon
+10#60 /less
+10#61 /equal
+10#62 /greater
+10#63 /question
+10#64 /at
+10#65 /A
+10#66 /B
+10#67 /C
+10#68 /D
+10#69 /E
+10#70 /F
+10#71 /G
+10#72 /H
+10#73 /I
+10#74 /J
+10#75 /K
+10#76 /L
+10#77 /M
+10#78 /N
+10#79 /O
+10#80 /P
+10#81 /Q
+10#82 /R
+10#83 /S
+10#84 /T
+10#85 /U
+10#86 /V
+10#87 /W
+10#88 /X
+10#89 /Y
+10#90 /Z
+10#91 /bracketleft
+10#92 /backslash
+10#93 /bracketright
+10#94 /asciicircum
+10#95 /underscore
+10#96 /grave
+10#97 /a
+10#98 /b
+10#99 /c
+10#100 /d
+10#101 /e
+10#102 /f
+10#103 /g
+10#104 /h
+10#105 /i
+10#106 /j
+10#107 /k
+10#108 /l
+10#109 /m
+10#110 /n
+10#111 /o
+10#112 /p
+10#113 /q
+10#114 /r
+10#115 /s
+10#116 /t
+10#117 /u
+10#118 /v
+10#119 /w
+10#120 /x
+10#121 /y
+10#122 /z
+10#123 /braceleft
+10#124 /bar
+10#125 /braceright
+10#126 /asciitilde
+10#127 /.notdef
+10#128 /SF100000
+10#129 /SF110000
+10#130 /SF010000
+10#131 /SF030000
+10#132 /SF020000
+10#133 /SF040000
+10#134 /SF080000
+10#135 /SF090000
+10#136 /SF060000
+10#137 /SF070000
+10#138 /SF050000
+10#139 /upblock
+10#140 /dnblock
+10#141 /block
+10#142 /lfblock
+10#143 /rtblock
+10#144 /ltshade
+10#145 /shade
+10#146 /dkshade
+10#147 /integraltp
+10#148 /filledbox
+10#149 /uni2219
+10#150 /radical
+10#151 /approxequal
+10#152 /lessequal
+10#153 /greaterequal
+10#154 /uni00A0
+10#155 /integralbt
+10#156 /degree
+10#157 /twosuperior
+10#158 /periodcentered
+10#159 /divide
+10#160 /SF430000
+10#161 /SF240000
+10#162 /SF510000
+10#163 /afii10071
+10#164 /afii10101
+10#165 /SF390000
+10#166 /afii10103
+10#167 /afii10104
+10#168 /SF250000
+10#169 /SF500000
+10#170 /SF490000
+10#171 /SF380000
+10#172 /SF280000
+10#173 /afii10098
+10#174 /SF260000
+10#175 /SF360000
+10#176 /SF370000
+10#177 /SF420000
+10#178 /SF190000
+10#179 /afii10023
+10#180 /afii10053
+10#181 /SF230000
+10#182 /afii10055
+10#183 /afii10056
+10#184 /SF410000
+10#185 /SF450000
+10#186 /SF460000
+10#187 /SF400000
+10#188 /SF540000
+10#189 /afii10050
+10#190 /SF440000
+10#191 /copyright
+10#192 /afii10096
+10#193 /afii10065
+10#194 /afii10066
+10#195 /afii10088
+10#196 /afii10069
+10#197 /afii10070
+10#198 /afii10086
+10#199 /afii10068
+10#200 /afii10087
+10#201 /afii10074
+10#202 /afii10075
+10#203 /afii10076
+10#204 /afii10077
+10#205 /afii10078
+10#206 /afii10079
+10#207 /afii10080
+10#208 /afii10081
+10#209 /afii10097
+10#210 /afii10082
+10#211 /afii10083
+10#212 /afii10084
+10#213 /afii10085
+10#214 /afii10072
+10#215 /afii10067
+10#216 /afii10094
+10#217 /afii10093
+10#218 /afii10073
+10#219 /afii10090
+10#220 /afii10095
+10#221 /afii10091
+10#222 /afii10089
+10#223 /afii10092
+10#224 /afii10048
+10#225 /afii10017
+10#226 /afii10018
+10#227 /afii10040
+10#228 /afii10021
+10#229 /afii10022
+10#230 /afii10038
+10#231 /afii10020
+10#232 /afii10039
+10#233 /afii10026
+10#234 /afii10027
+10#235 /afii10028
+10#236 /afii10029
+10#237 /afii10030
+10#238 /afii10031
+10#239 /afii10032
+10#240 /afii10033
+10#241 /afii10049
+10#242 /afii10034
+10#243 /afii10035
+10#244 /afii10036
+10#245 /afii10037
+10#246 /afii10024
+10#247 /afii10019
+10#248 /afii10046
+10#249 /afii10045
+10#250 /afii10025
+10#251 /afii10042
+10#252 /afii10047
+10#253 /afii10043
+10#254 /afii10041
+10#255 /afii10044] def
+%%EndResource
+/Times-Roman /Times-Roman-iso isol2vec ReEncode
+/Times-Italic /Times-Italic-iso isol2vec ReEncode
+/Times-Bold /Times-Bold-iso isol2vec ReEncode
+/Times-BoldItalic /Times-BoldItalic-iso isol2vec ReEncode
+/AvantGarde-Book /AvantGarde-Book-iso isol2vec ReEncode
+/AvantGarde-BookOblique /AvantGarde-BookOblique-iso isol2vec ReEncode
+/AvantGarde-Demi /AvantGarde-Demi-iso isol2vec ReEncode
+/AvantGarde-DemiOblique /AvantGarde-DemiOblique-iso isol2vec ReEncode
+/Bookman-Light /Bookman-Light-iso isol2vec ReEncode
+/Bookman-LightItalic /Bookman-LightItalic-iso isol2vec ReEncode
+/Bookman-Demi /Bookman-Demi-iso isol2vec ReEncode
+/Bookman-DemiItalic /Bookman-DemiItalic-iso isol2vec ReEncode
+/Courier /Courier-iso isol2vec ReEncode
+/Courier-Oblique /Courier-Oblique-iso isol2vec ReEncode
+/Courier-Bold /Courier-Bold-iso isol2vec ReEncode
+/Courier-BoldOblique /Courier-BoldOblique-iso isol2vec ReEncode
+/Helvetica /Helvetica-iso isol2vec ReEncode
+/Helvetica-Oblique /Helvetica-Oblique-iso isol2vec ReEncode
+/Helvetica-Bold /Helvetica-Bold-iso isol2vec ReEncode
+/Helvetica-BoldOblique /Helvetica-BoldOblique-iso isol2vec ReEncode
+/Helvetica-Narrow /Helvetica-Narrow-iso isol2vec ReEncode
+/Helvetica-Narrow-Oblique /Helvetica-Narrow-Oblique-iso isol2vec ReEncode
+/Helvetica-Narrow-Bold /Helvetica-Narrow-Bold-iso isol2vec ReEncode
+/Helvetica-Narrow-BoldOblique /Helvetica-Narrow-BoldOblique-iso isol2vec ReEncode
+/NewCenturySchlbk-Roman /NewCenturySchlbk-Roman-iso isol2vec ReEncode
+/NewCenturySchlbk-Italic /NewCenturySchlbk-Italic-iso isol2vec ReEncode
+/NewCenturySchlbk-Bold /NewCenturySchlbk-Bold-iso isol2vec ReEncode
+/NewCenturySchlbk-BoldItalic /NewCenturySchlbk-BoldItalic-iso isol2vec ReEncode
+/Palatino-Roman /Palatino-Roman-iso isol2vec ReEncode
+/Palatino-Italic /Palatino-Italic-iso isol2vec ReEncode
+/Palatino-Bold /Palatino-Bold-iso isol2vec ReEncode
+/Palatino-BoldItalic /Palatino-BoldItalic-iso isol2vec ReEncode
+%% End of uk_UA.KOI8-U.ps
diff --git a/media-gfx/transfig/transfig-3.2.5-r2.ebuild b/media-gfx/transfig/transfig-3.2.5-r2.ebuild
new file mode 100644
index 000000000000..e6d988bc9493
--- /dev/null
+++ b/media-gfx/transfig/transfig-3.2.5-r2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/transfig/transfig-3.2.5-r2.ebuild,v 1.1 2008/08/27 09:45:01 pva Exp $
+
+inherit toolchain-funcs eutils flag-o-matic
+
+MY_P=${PN}.${PV}
+
+DESCRIPTION="A set of tools for creating TeX documents with graphics which can be printed in a wide variety of environments"
+SRC_URI="http://xfig.org/software/xfig/${PV}/${MY_P}.tar.gz
+ mirror://gentoo/transfig-3.2.5-fig2mpdf.patch.bz2"
+HOMEPAGE="http://www.xfig.org"
+IUSE=""
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="x11-libs/libXpm
+ >=media-libs/jpeg-6
+ media-libs/libpng
+ x11-apps/rgb"
+DEPEND="${RDEPEND}
+ x11-misc/imake
+ app-text/rman"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ find "${S}" -type f -exec chmod -x \{\} \;
+ epatch "${FILESDIR}"/${P}-arrows-and-QA.patch
+ epatch "${FILESDIR}"/${P}-imagemap.patch
+ epatch "${FILESDIR}"/${P}-SetFigFont-params.patch
+ epatch "${FILESDIR}"/${P}-displaywho.patch
+ epatch "${FILESDIR}"/${P}-locale.patch
+ epatch "${FILESDIR}"/${P}-fig2ps2tex_bashisms.patch
+ epatch "${WORKDIR}"/${P}-fig2mpdf.patch
+}
+
+sed_Imakefile() {
+ # see fig2dev/Imakefile for details
+ vars2subs="BINDIR=/usr/bin
+ MANDIR=/usr/share/man/man\$\(MANSUFFIX\)
+ XFIGLIBDIR=/usr/share/xfig
+ USEINLINE=-DUSE_INLINE
+ RGB=/usr/share/X11/rgb.txt
+ FIG2DEV_LIBDIR=/usr/share/fig2dev"
+
+ for variable in ${vars2subs} ; do
+ varname=${variable%%=*}
+ varval=${variable##*=}
+ sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@"
+ done
+}
+
+src_compile() {
+ sed_Imakefile fig2dev/Imakefile fig2dev/dev/Imakefile
+
+ # without append transfig compiles with warining
+ # incompatible implicit declaration of built-in function ‘strlen’
+ # but are we really SVR4?
+ #append-flags -DSVR4
+ xmkmf || die "xmkmf failed"
+ make Makefiles || die "make Makefiles failed"
+
+ emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
+ USRLIBDIR=/usr/$(get_libdir) || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" \
+ ${transfig_conf} install install.man || die
+
+ insinto /usr/share/fig2dev/
+ doins "${FILESDIR}/transfig-ru_RU.CP1251.ps" || die
+ doins "${FILESDIR}/transfig-ru_RU.KOI8-R.ps" || die
+ doins "${FILESDIR}/transfig-uk_UA.KOI8-U.ps" || die
+ #Install docs
+ dodoc README CHANGES LATEX.AND.XFIG NOTES
+}