aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gobby.rb
blob: e712a395bc6c7b516f191b71363ee496969219c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
require 'formula'

class Gobby < Formula
  homepage 'http://gobby.0x539.de'
  url 'http://releases.0x539.de/gobby/gobby-0.4.94.tar.gz'
  sha1 '921979da611601ee6e220e2396bd2c86f0fb8c66'

  head 'git://git.0x539.de/git/gobby.git'

  depends_on 'pkg-config' => :build
  depends_on 'intltool' => :build
  depends_on 'gtkmm'
  depends_on 'libgsasl'
  depends_on 'libxml++'
  depends_on 'gtksourceview'
  depends_on 'obby'
  depends_on 'gettext'
  depends_on 'hicolor-icon-theme'
  depends_on 'libinfinity'
  depends_on :x11

  def patches
    { :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
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
    # Don't link this into share!
    (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