homebrew-core/Formula/gobby.rb
2019-09-07 18:53:36 +02:00

102 lines
3 KiB
Ruby

class Gobby < Formula
desc "Multi-platform collaborative text editor"
homepage "https://gobby.github.io/"
url "http://releases.0x539.de/gobby/gobby-0.5.0.tar.gz"
sha256 "8ceb3598d27cfccdf9c9889b781c4c5c8e1731ca6beb183f5d4555644c06bd98"
revision 6
head "https://github.com/gobby/gobby"
bottle do
sha256 "1df49cd1dfdf83a2be9410580e236a1d5f53c00d10422a0cc477f5fa0ab19caf" => :mojave
sha256 "8c668399bc39b26879cab9e3fe62275ce7075083f740e92243475cd9588b9036" => :high_sierra
sha256 "9d44cf7da6a4864a88eff1ec9d191bbfdb7c7cc2cb41cc5e52285102fa310c91" => :sierra
end
depends_on "intltool" => :build
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gnutls"
depends_on "gsasl"
depends_on "gtkmm3"
depends_on "gtksourceview3"
depends_on "hicolor-icon-theme"
depends_on "libinfinity"
depends_on "libxml++"
# 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
def install
ENV.cxx11
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--with-gtk3"
system "make", "install"
end
test do
# executable (GUI)
system bin/"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