diff options
Diffstat (limited to 'homebrew/gobby')
-rw-r--r-- | homebrew/gobby/.beer | 123 | ||||
-rw-r--r-- | homebrew/gobby/.make.sh-auto | 4 | ||||
-rw-r--r-- | homebrew/gobby/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/gobby/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/gobby/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/gobby/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/gobby/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/gobby/patches.sh | 60 |
8 files changed, 192 insertions, 0 deletions
diff --git a/homebrew/gobby/.beer b/homebrew/gobby/.beer new file mode 100644 index 000000000..36feb7847 --- /dev/null +++ b/homebrew/gobby/.beer @@ -0,0 +1,123 @@ +{ + "name": "Gobby", + "description": "Multi-platform collaborative text editor", + "url": "http://releases.0x539.de/gobby/gobby-0.5.0.tar.gz", + "mirror": null, + "homepage": "https://gobby.github.io/", + "depends": [ + { + "depend": "intltool", + "build-depend": true + }, + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "gettext", + "build-depend": false + }, + { + "depend": "gnutls", + "build-depend": false + }, + { + "depend": "gsasl", + "build-depend": false + }, + { + "depend": "gtkmm3", + "build-depend": false + }, + { + "depend": "gtksourceview3", + "build-depend": false + }, + { + "depend": "hicolor-icon-theme", + "build-depend": false + }, + { + "depend": "libinfinity", + "build-depend": false + }, + { + "depend": "libxml++", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "diff --git a/code/core/header.cpp b/code/core/header.cpp\n", + "index eba2fb1..510608e 100644\n", + "--- a/code/core/header.cpp\n", + "+++ b/code/core/header.cpp\n", + "@@ -24,10 +24,6 @@\n", + " #include <gtksourceview/gtksourcelanguage.h>\n", + " #include <gdk/gdkkeysyms.h>\n", + "\n", + "-#ifdef PLATFORM_OSX_NATIVE\n", + "-#include <ige-mac-menu.h>\n", + "-#endif\n", + "-\n", + " namespace {\n", + "\tGlib::ustring ui_desc =\n", + "\t\t\"<ui>\"\n", + "@@ -519,28 +515,7 @@ Gobby::Header::Header(Preferences& preferences,\n", + "\t\t);\n", + "\t}\n", + "\n", + "-#ifdef PLATFORM_OSX_NATIVE\n", + "-\tige_mac_menu_set_menu_bar(GTK_MENU_SHELL(m_menubar->gobj()));\n", + "-\n", + "-\tige_mac_menu_set_quit_menu_item(GTK_MENU_ITEM(\n", + "-\t\tm_ui_manager->get_widget(\n", + "-\t\t\t\"/MenuMainBar/MenuFile/FileQuit\")->gobj()));\n", + "-\n", + "-\tige_mac_menu_add_app_menu_item(\n", + "-\t\tige_mac_menu_add_app_menu_group(), GTK_MENU_ITEM(\n", + "-\t\t\tm_ui_manager->get_widget(\n", + "-\t\t\t\t\"/MenuMainBar/MenuHelp/HelpAbout\")->gobj()),\n", + "-\t\tNULL);\n", + "-\n", + "-\t ige_mac_menu_add_app_menu_item(\n", + "-\t \tige_mac_menu_add_app_menu_group(), GTK_MENU_ITEM(\n", + "-\t\t\tm_ui_manager->get_widget(\n", + "-\t\t\t\t\"/MenuMainBar/MenuEdit/EditPreferences\")\n", + "-\t\t\t->gobj()),\n", + "-\t\tNULL);\n", + "-#else\n", + "\tpack_start(*m_menubar, Gtk::PACK_SHRINK);\n", + "-#endif\n", + "\tpack_start(*m_toolbar, Gtk::PACK_SHRINK);\n", + "\n", + "\tm_toolbar->set_toolbar_style(preferences.appearance.toolbar_style);\n", + "diff --git a/configure b/configure\n", + "index 7dabb26..0987444 100755\n", + "--- a/configure\n", + "+++ b/configure\n", + "@@ -4955,7 +4955,7 @@ $as_echo \"#define PLATFORM_OSX 1\" >>confdefs.h\n", + "\n", + " $as_echo \"#define PLATFORM_OSX_NATIVE 1\" >>confdefs.h\n", + "\n", + "- required_libs=\"$required_libs ige-mac-integration\"\n", + "+ required_libs=\"$required_libs\"\n", + " fi\n", + " fi\n", + " cat >confcache <<\\_ACEOF\n" + ] + } + ], + "install": [ + "ENV.cxx11", + "system \"./configure\", \"--disable-dependency-tracking\",", + "\"--prefix=#{prefix}\", \"--with-gtk3\"", + "system \"make\", \"install\"" + ], + "version": "0.5.0", + "file": "gobby.rb" +}
\ No newline at end of file diff --git a/homebrew/gobby/.make.sh-auto b/homebrew/gobby/.make.sh-auto new file mode 100644 index 000000000..8d02e49e6 --- /dev/null +++ b/homebrew/gobby/.make.sh-auto @@ -0,0 +1,4 @@ +pkg:setup +ENV.cxx11 +pkg:configure --disable-dependency-tracking --with-gtk3 +make DESTDIR=${PKG_DEST} install diff --git a/homebrew/gobby/_metadata/description b/homebrew/gobby/_metadata/description new file mode 100644 index 000000000..e72c4c3a8 --- /dev/null +++ b/homebrew/gobby/_metadata/description @@ -0,0 +1 @@ +Multi-platform collaborative text editor diff --git a/homebrew/gobby/_metadata/homepage b/homebrew/gobby/_metadata/homepage new file mode 100644 index 000000000..12d8ac399 --- /dev/null +++ b/homebrew/gobby/_metadata/homepage @@ -0,0 +1 @@ +https://gobby.github.io/ diff --git a/homebrew/gobby/_metadata/name b/homebrew/gobby/_metadata/name new file mode 100644 index 000000000..db4b1d681 --- /dev/null +++ b/homebrew/gobby/_metadata/name @@ -0,0 +1 @@ +Gobby diff --git a/homebrew/gobby/_metadata/version b/homebrew/gobby/_metadata/version new file mode 100644 index 000000000..8f0916f76 --- /dev/null +++ b/homebrew/gobby/_metadata/version @@ -0,0 +1 @@ +0.5.0 diff --git a/homebrew/gobby/download.sh b/homebrew/gobby/download.sh new file mode 100755 index 000000000..b441f2b2f --- /dev/null +++ b/homebrew/gobby/download.sh @@ -0,0 +1 @@ +wget http://releases.0x539.de/gobby/gobby-0.5.0.tar.gz
\ No newline at end of file diff --git a/homebrew/gobby/patches.sh b/homebrew/gobby/patches.sh new file mode 100755 index 000000000..e4ae3b4ff --- /dev/null +++ b/homebrew/gobby/patches.sh @@ -0,0 +1,60 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +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 +EOF |