aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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"));