aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-19 08:45:26 -0700
committerAdam Vandenberg2013-06-19 08:45:26 -0700
commit46b286cf0cc56039f67e5cc2c1ae3fd09afd1164 (patch)
tree17e606c8a56f6968403f4c6be8b0cdb76b3d2f3e /Library/Formula
parent9e3aa8925cf4b03a5b1fda13971dde84e1162c41 (diff)
downloadhomebrew-46b286cf0cc56039f67e5cc2c1ae3fd09afd1164.tar.bz2
gobby: fix build against gtkmm
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gobby.rb32
1 files changed, 29 insertions, 3 deletions
diff --git a/Library/Formula/gobby.rb b/Library/Formula/gobby.rb
index e67801bfa..e712a395b 100644
--- a/Library/Formula/gobby.rb
+++ b/Library/Formula/gobby.rb
@@ -19,11 +19,10 @@ class Gobby < Formula
depends_on 'libinfinity'
depends_on :x11
- # Fix compilation on clang per MacPorts
def patches
- { :p0 => [
+ { :p0 => [ # Fix compilation on clang per MacPorts
"https://trac.macports.org/export/101720/trunk/dports/x11/gobby/files/patch-code-util-config.hpp.diff"
- ]}
+ ], :p1 => DATA } # Fix gtkmm issues
end
def install
@@ -34,3 +33,30 @@ class Gobby < Formula
(share/"icons/hicolor/icon-theme.cache").unlink
end
end
+
+__END__
+diff --git a/code/util/config.hpp b/code/util/config.hpp
+index 61c0cf4..7fcfe46 100644
+--- a/code/util/config.hpp
++++ b/code/util/config.hpp
+@@ -23,6 +23,7 @@
+
+ #include <map>
+ #include <memory>
++#include <glibmm.h>
+ #include <glibmm/error.h>
+ #include <glibmm/ustring.h>
+ #include <gdkmm/color.h>
+diff --git a/code/util/color.hpp b/code/util/color.hpp
+index 476a26c..8fad8b1 100644
+--- a/code/util/color.hpp
++++ b/code/util/color.hpp
+@@ -18,7 +18,7 @@
+
+ #ifndef _GOBBY_COLORUTIL_HPP_
+ #define _GOBBY_COLORUTIL_HPP_
+-
++#include <glibmm.h>
+ #include <gdkmm/color.h>
+
+ namespace Gobby