aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gsmartcontrol.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-18 15:50:29 -0700
committerAdam Vandenberg2013-06-18 15:50:29 -0700
commit1e7570fbcc06adc0c6213097442d68d008024dcf (patch)
tree40954c8fd41d6c9ab309d8f0ccb0844f5a1bbca6 /Library/Formula/gsmartcontrol.rb
parent66361fd6ba4625c63e50531da3e7ba677454fe84 (diff)
downloadhomebrew-1e7570fbcc06adc0c6213097442d68d008024dcf.tar.bz2
gsmartcontrol: fix build against gtkmm
Also, don't clobber icon cache Fixes #20559.
Diffstat (limited to 'Library/Formula/gsmartcontrol.rb')
-rw-r--r--Library/Formula/gsmartcontrol.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/gsmartcontrol.rb b/Library/Formula/gsmartcontrol.rb
index 28c317493..f0afe9d6f 100644
--- a/Library/Formula/gsmartcontrol.rb
+++ b/Library/Formula/gsmartcontrol.rb
@@ -12,14 +12,48 @@ class Gsmartcontrol < Formula
depends_on 'pcre'
depends_on 'libglademm'
+ # Fix bad includes with gtkmm-2.24.3
+ # Check if this is still needed with new versions of gsmartcontrol and gtkmm
+ def patches
+ DATA
+ end
+
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make install"
+ # Don't link this into share!
+ (share/"icons/hicolor/icon-theme.cache").unlink
end
def test
system "#{bin}/gsmartcontrol", "--version"
end
end
+
+__END__
+diff --git a/src/applib/cmdex_sync_gui.cpp b/src/applib/cmdex_sync_gui.cpp
+index d253a17..83b2e11 100644
+--- a/src/applib/cmdex_sync_gui.cpp
++++ b/src/applib/cmdex_sync_gui.cpp
+@@ -9,6 +9,7 @@
+ /// \weakgroup applib
+ /// @{
+
++#include <glibmm.h>
+ #include <gtkmm/main.h> // Gtk::Main
+
+ #include "hz/fs_path.h"
+diff --git a/src/gsc_init.cpp b/src/gsc_init.cpp
+index 0ded7bc..6fb1bb7 100644
+--- a/src/gsc_init.cpp
++++ b/src/gsc_init.cpp
+@@ -15,6 +15,7 @@
+ #include <cstdio> // std::printf
+ #include <vector>
+ #include <sstream>
++#include <glibmm.h>
+ #include <gtkmm/main.h>
+ #include <gtkmm/messagedialog.h>
+ #include <gtk/gtk.h> // gtk_window_set_default_icon_name, gtk_icon_theme_*