forked from rdowinton/homebrew-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gobby.rb
101 lines (90 loc) · 2.99 KB
/
gobby.rb
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
class Gobby < Formula
desc "A collaborative editor supporting multiple documents a multi-use chatbox"
homepage "http://gobby.0x539.de"
url "http://releases.0x539.de/gobby/gobby-0.5.0.tar.gz"
sha256 "8ceb3598d27cfccdf9c9889b781c4c5c8e1731ca6beb183f5d4555644c06bd98"
revision 1
head "git://git.0x539.de/git/gobby.git"
bottle do
sha256 "82f4008ddd4d54f1ad79a11490ad86e59ffc29aab209119c120ec8416f895e26" => :yosemite
sha256 "65f91501dcadab0d3c8df6659781a9d44e07565afeec56114fcf78cea0cc0291" => :mavericks
sha256 "5327d1640f65a713b97e104b19b70080534f3975dc30ae78db14b29fee8f972e" => :mountain_lion
end
# necessary to remove mandatory gtk-mac-integration
# it's badly broken as it depends on an ancient version of ige-mac-integration
# since it depends on gtk3, it doesn't even need gtk-mac-integration anymore
# This has already been fixed upstream: gtk2 support has been dropped completely
# and all traces of ige-mac-integration have been removed from the code
patch :DATA
depends_on "pkg-config" => :build
depends_on "intltool" => :build
depends_on "gtkmm3"
depends_on "gsasl"
depends_on "libxml++"
depends_on "gtksourceview3"
depends_on "gettext"
depends_on "hicolor-icon-theme"
depends_on "libinfinity"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--with-gtk3"
system "make", "install"
end
test do
# executable (GUI)
system "gobby-0.5", "--version"
end
end
__END__
diff --git a/code/core/header.cpp b/code/core/header.cpp
index eba2fb1..510608e 100644
--- a/code/core/header.cpp
+++ b/code/core/header.cpp
@@ -24,10 +24,6 @@
#include <gtksourceview/gtksourcelanguage.h>
#include <gdk/gdkkeysyms.h>
-#ifdef PLATFORM_OSX_NATIVE
-#include <ige-mac-menu.h>
-#endif
-
namespace {
Glib::ustring ui_desc =
"<ui>"
@@ -519,28 +515,7 @@ Gobby::Header::Header(Preferences& preferences,
);
}
-#ifdef PLATFORM_OSX_NATIVE
- ige_mac_menu_set_menu_bar(GTK_MENU_SHELL(m_menubar->gobj()));
-
- ige_mac_menu_set_quit_menu_item(GTK_MENU_ITEM(
- m_ui_manager->get_widget(
- "/MenuMainBar/MenuFile/FileQuit")->gobj()));
-
- ige_mac_menu_add_app_menu_item(
- ige_mac_menu_add_app_menu_group(), GTK_MENU_ITEM(
- m_ui_manager->get_widget(
- "/MenuMainBar/MenuHelp/HelpAbout")->gobj()),
- NULL);
-
- ige_mac_menu_add_app_menu_item(
- ige_mac_menu_add_app_menu_group(), GTK_MENU_ITEM(
- m_ui_manager->get_widget(
- "/MenuMainBar/MenuEdit/EditPreferences")
- ->gobj()),
- NULL);
-#else
pack_start(*m_menubar, Gtk::PACK_SHRINK);
-#endif
pack_start(*m_toolbar, Gtk::PACK_SHRINK);
m_toolbar->set_toolbar_style(preferences.appearance.toolbar_style);
diff --git a/configure b/configure
index 7dabb26..0987444 100755
--- a/configure
+++ b/configure
@@ -4955,7 +4955,7 @@ $as_echo "#define PLATFORM_OSX 1" >>confdefs.h
$as_echo "#define PLATFORM_OSX_NATIVE 1" >>confdefs.h
- required_libs="$required_libs ige-mac-integration"
+ required_libs="$required_libs"
fi
fi
cat >confcache <<\_ACEOF