From 19028b5163b5ccab1a1755195f9137448d7d441c Mon Sep 17 00:00:00 2001 From: stefan.kral Date: Sun, 17 Mar 2013 00:46:57 +0100 Subject: gnuplot: fix for cairo backend call g_type_init() in cairo.trm Closes #18528. Signed-off-by: Adam Vandenberg --- Library/Formula/gnuplot.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Library/Formula/gnuplot.rb') 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")); -- cgit v1.2.3