aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkusle <markusle@32389bae-6d03-0410-99cf-db05cde120eb>2008-05-28 21:46:19 +0000
committermarkusle <markusle@32389bae-6d03-0410-99cf-db05cde120eb>2008-05-28 21:46:19 +0000
commit71105d28f87ad812235799f6cbc94bd93d7c15b7 (patch)
treecaa17fb2cba5faa6de0e7940c1443154a0ceaed7 /sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch
parentpyglet-1.1_beta1 (diff)
downloadsci-71105d28f87ad812235799f6cbc94bd93d7c15b7.tar.gz
sci-71105d28f87ad812235799f6cbc94bd93d7c15b7.tar.bz2
sci-71105d28f87ad812235799f6cbc94bd93d7c15b7.zip
Major ebuild cleanup. Disabled failing tests and added patched from
debian svn. git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@1107 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch')
-rw-r--r--sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch b/sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch
new file mode 100644
index 000000000..35a7c9915
--- /dev/null
+++ b/sci-mathematics/octave/files/octave-3.0.1-no_helvetica.patch
@@ -0,0 +1,48 @@
+## patch from debian svn
+## don_set_helvetica.dpatch by Thomas Weber <thomas.weber.mail@gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Don't set Helvetica as default font, it's not available as TrueType font
+## DP: #477688
+diff -urNad octave3.0-3.0.1~/scripts/plot/__go_draw_axes__.m octave3.0-3.0.1/scripts/plot/__go_draw_axes__.m
+--- octave3.0-3.0.1~/scripts/plot/__go_draw_axes__.m 2008-04-21 18:00:20.000000000 +0200
++++ octave3.0-3.0.1/scripts/plot/__go_draw_axes__.m 2008-05-25 17:30:08.000000000 +0200
+@@ -1601,7 +1601,7 @@
+
+ function [f, s, fnt, it, bld] = get_fontname_and_size (t)
+ if (isempty (t.fontname))
+- fnt = "Helvetica";
++ fnt = "";
+ else
+ fnt = t.fontname;
+ endif
+@@ -1639,7 +1639,7 @@
+ if (strcmp (fld, "string"))
+ [f, s, fnt, it, bld] = get_fontname_and_size (obj);
+ else
+- f = "Helvetica";
++ f = "";
+ s = 10;
+ fnt = f;
+ it = false;
+diff -urNad octave3.0-3.0.1~/src/graphics.cc octave3.0-3.0.1/src/graphics.cc
+--- octave3.0-3.0.1~/src/graphics.cc 2008-04-21 18:00:20.000000000 +0200
++++ octave3.0-3.0.1/src/graphics.cc 2008-05-25 17:30:08.000000000 +0200
+@@ -2336,7 +2336,7 @@
+ rotation (0),
+ horizontalalignment ("left"),
+ color (Matrix (1, 3, 0.0)),
+- fontname ("Helvetica"),
++ fontname (""),
+ fontsize (10),
+ fontangle (radio_values ("{normal}|italic|oblique")),
+ fontweight (radio_values ("{normal}|bold|demi|light")),
+@@ -2470,7 +2470,7 @@
+ m["rotation"] = 0;
+ m["horizontalalignment"] = "left";
+ m["color"] = Matrix (1, 3, 1.0);
+- m["fontname"] = "Helvetica";
++ m["fontname"] = "";
+ m["fontsize"] = 10;
+ m["fontangle"] = radio_property (radio_values ("{normal}|italic|oblique"));
+ m["fontweight"] = radio_property (radio_values ("{normal}|bold|demi|light"));