]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
added transfig package
authorhackbard <hackbard>
Sun, 27 Feb 2005 01:49:22 +0000 (01:49 +0000)
committerhackbard <hackbard>
Sun, 27 Feb 2005 01:49:22 +0000 (01:49 +0000)
doc/CHANGELOG
packages/x11/transfig/gensvg.patch [new file with mode: 0644]
packages/x11/transfig/transfig [new file with mode: 0644]

index feae3994391e7bfa3bc4fd8defe63bd77b36532a..2a6527858ba59c3fac0192de6ca17488dae9940c 100644 (file)
@@ -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 (file)
index 0000000..44d845e
--- /dev/null
@@ -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, "<g transform=\"translate(%d,%d) rotate(%d)\" >\n",
+                (int) (t->base_x * mag), (int) (t->base_y * mag), degrees (t->angle));
+-      fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\"  font-family=\"%s\" 
+-               font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
++      fprintf (tfp, "<text x=\"0\" y=\"0\" fill=\"#%6.6x\"  font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\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, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\"  font-family=\"%s\" 
+-               font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\n",
++      fprintf (tfp, "<text x=\"%d\" y=\"%d\" fill=\"#%6.6x\"  font-family=\"%s\" font-style=\"%s\" font-weight=\"%s\" font-size=\"%d\" text-anchor=\"%s\" >\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 (file)
index 0000000..6f1e1d3
--- /dev/null
@@ -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
+               }