aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorstefan.kral2013-03-17 00:46:57 +0100
committerAdam Vandenberg2013-03-18 11:25:25 -0700
commit19028b5163b5ccab1a1755195f9137448d7d441c (patch)
tree9941deb3eeae56d87a091d20f779d4311ec159a8 /Library
parent9c1717e289e5b9d7b77828f06a8b1360bd6ed43c (diff)
downloadhomebrew-19028b5163b5ccab1a1755195f9137448d7d441c.tar.bz2
gnuplot: fix for cairo backend
call g_type_init() in cairo.trm Closes #18528. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gnuplot.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb
index f738eaa30..0eb750f48 100644
--- a/Library/Formula/gnuplot.rb
+++ b/Library/Formula/gnuplot.rb
@@ -34,6 +34,12 @@ class Gnuplot < Formula
depends_on 'qt' if build.include? 'qt'
depends_on :tex if build.include? 'latex'
+ def patches
+ # see discussion on this cairo issue: https://github.com/fontforge/fontforge/issues/222
+ # and the gnuplot bug report: https://sourceforge.net/p/gnuplot/bugs/1223/
+ DATA
+ end
+
def install
# Help configure find libraries
readline = Formula.factory 'readline'
@@ -74,3 +80,17 @@ class Gnuplot < Formula
system "#{bin}/gnuplot", "--version"
end
end
+
+__END__
+diff --git a/term/cairo.trm b/term/cairo.trm
+index 48fac72..c5d110f 100644
+--- a/term/cairo.trm
++++ b/term/cairo.trm
+@@ -615,6 +615,7 @@ TERM_PUBLIC void cairotrm_options()
+ * Is the 'main' function of the terminal. */
+ void cairotrm_init()
+ {
++ g_type_init();
+ cairo_surface_t *surface = NULL;
+
+ FPRINTF((stderr,"Init\n"));