102 lines
3 KiB
Ruby
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 5
|
|
head "https://github.com/gobby/gobby"
|
|
|
|
bottle do
|
|
sha256 "b9509f4b93991026ed5e7a6c05858b2e9a82c0f5b2dfa9eb5e41678a6ede2402" => :mojave
|
|
sha256 "8ab2cf88ce693663ac49494dd0c36536389fe9e136ff59ad085c3aa386155b93" => :high_sierra
|
|
sha256 "53acc1a62333d50117be930770ee09bf4b15893837c51b5de4f723f312b9d763" => :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
|