From e9b3af8012a466d4f4883303ad4d71921b47ef7c Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 27 Feb 2005 01:49:22 +0000 Subject: [PATCH] added transfig package --- doc/CHANGELOG | 4 ++++ packages/x11/transfig/gensvg.patch | 21 +++++++++++++++++++++ packages/x11/transfig/transfig | 26 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 packages/x11/transfig/gensvg.patch create mode 100644 packages/x11/transfig/transfig diff --git a/doc/CHANGELOG b/doc/CHANGELOG index feae399..2a65278 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -1,3 +1,7 @@ +*) 2005-02-27 + +- added transfig package + *) 2005-02-26 - added xfig package diff --git a/packages/x11/transfig/gensvg.patch b/packages/x11/transfig/gensvg.patch new file mode 100644 index 0000000..44d845e --- /dev/null +++ b/packages/x11/transfig/gensvg.patch @@ -0,0 +1,21 @@ +--- ./fig2dev/dev/gensvg.c.orig 2005-02-26 19:52:57.058538744 +0100 ++++ ./fig2dev/dev/gensvg.c 2005-02-26 19:57:17.537939856 +0100 +@@ -692,16 +692,14 @@ + if (t->angle != 0) { + fprintf (tfp, "\n", + (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle)); +- fprintf (tfp, "\n", ++ fprintf (tfp, "\n", + rgbColorVal (t->color), family[(int) ceil ((t->font + 1) / 4)], + (t->font % 2 == 0 ? "normal" : "italic"), + (t->font % 4 < 2 ? "normal" : "bold"), (int) (ceil (t->size * 12 * mag)), + anchor[t->type]); + } + else +- fprintf (tfp, "\n", ++ fprintf (tfp, "\n", + (int) (t->base_x * mag), (int) (t->base_y * mag), rgbColorVal (t->color), + family[(int) ceil ((t->font + 1) / 4)], + (t->font % 2 == 0 ? "normal" : "italic"), diff --git a/packages/x11/transfig/transfig b/packages/x11/transfig/transfig new file mode 100644 index 0000000..6f1e1d3 --- /dev/null +++ b/packages/x11/transfig/transfig @@ -0,0 +1,26 @@ +# hdw - linux transfig package +# +# author: hackbard@hackdaworld.dyndns.org +# +# [V] 3.2.4 +# [S] 3-8 +# [D] transfig.3.2.4.tar.gz ftp://epb.lbl.gov/xfig/ + +pre_install() { + for i in ./fig2dev/Imakefile ./fig2dev/dev/Imakefile; do + sed "s%/usr/local%$prefix%g" $i > tmp~ + mv tmp~ $i + sed "s%/usr/include/X11%$prefix/X11R6/include/X11%g" $i > tmp~ + mv tmp~ $i + done + sed 's/varargs/stdarg/g' ./fig2dev/fig2dev.h > tmp~ + mv tmp~ ./fig2dev/fig2dev.h + } + +build_main() { + xmkmf + make Makefiles + make + make install + make install.man + } -- 2.39.2