This patch incorporates two commits in the tree at the Gnome Repository
that were never released. It fixes the problem of gtksourceview2 failing to build under
Mavericks and later when both gtk2 and gtk3 macports are installed.
This version of the patch uses the upstream package naming conventions that
are canon as of August 2015.
From e88357c5f210a8796104505c090fb6a04c213902 Mon Sep 17 00:00:00 2001
From: Philip Chimento <philip.chimento@gmail.com>
Date: Mon, 21 Nov 2011 22:26:21 +0100
Subject: Change IgeMacIntegration to GtkOSXApplication
Instead of using the deprecated IgeMacIntegration which doesn't work
on 32-bit Macs, get the locale dir using the quartz_application_...
API from GtkOSXApplication.
From e38712a2061f6f45116f6316fd32cc166c68baf6 Mon Sep 17 00:00:00 2001
From: Pierre Boutillier <pierre.boutillier@ens-lyon.org>
Date: Tue, 6 Nov 2012 15:49:43 +0100
Subject: Update to gtk-mac-integration 2.0 API
Fixes bgo#687766. quartz_application_... becomes
gtkosx_application_...
https://bugzilla.gnome.org/show_bug.cgi?id=687766
diff --git configure.ac configure.ac
index ccfe986..42fe313 100644
|
|
AM_CONDITIONAL(OS_OSX, test "$os_osx" = "yes") |
76 | 76 | if test "$os_osx" = "yes"; then |
77 | 77 | AC_DEFINE([OS_OSX],[1],[Defined if os is Mac OSX]) |
78 | 78 | |
79 | | PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration) |
| 79 | PKG_CHECK_MODULES(GTK_MAC, gtk-mac-integration-gtk2 >= 2.0.0) |
80 | 80 | fi |
81 | 81 | |
82 | 82 | # Check for Glade3 |
diff --git gtksourceview/Makefile.am gtksourceview/Makefile.am
index f3781d5..d1136a4 100644
|
|
INCLUDES = \ |
10 | 10 | -I$(top_srcdir) -I$(srcdir) \ |
11 | 11 | $(DISABLE_DEPRECATED) \ |
12 | 12 | $(WARN_CFLAGS) \ |
13 | | $(IGE_MAC_CFLAGS) \ |
| 13 | $(GTK_MAC_CFLAGS) \ |
14 | 14 | $(DEP_CFLAGS) |
15 | 15 | |
16 | 16 | BUILT_SOURCES = \ |
… |
… |
nodist_libgtksourceview_2_0_la_SOURCES =\ |
96 | 96 | completion_providers = \ |
97 | 97 | completion-providers/words/libgtksourcecompletionwords.la |
98 | 98 | |
99 | | libgtksourceview_2_0_la_LIBADD = $(DEP_LIBS) $(IGE_MAC_LIBS) $(completion_providers) |
| 99 | libgtksourceview_2_0_la_LIBADD = $(DEP_LIBS) $(GTK_MAC_LIBS) $(completion_providers) |
100 | 100 | libgtksourceview_2_0_la_LDFLAGS = -no-undefined -export-symbols-regex "^gtk_source_.*" |
101 | 101 | libgtksourceview_2_0_includedir = $(includedir)/gtksourceview-2.0/gtksourceview |
102 | 102 | |
diff --git gtksourceview/gtksourceview-i18n.c gtksourceview/gtksourceview-i18n.c
index e4db3eb..32f8068 100644
|
|
|
24 | 24 | #endif |
25 | 25 | |
26 | 26 | #ifdef OS_OSX |
27 | | #include <ige-mac-bundle.h> |
| 27 | #include <gtkosxapplication.h> |
28 | 28 | #endif |
29 | 29 | |
30 | 30 | #include <string.h> |
… |
… |
get_locale_dir (void) |
45 | 45 | |
46 | 46 | g_free (win32_dir); |
47 | 47 | #elif defined (OS_OSX) |
48 | | IgeMacBundle *bundle = ige_mac_bundle_get_default (); |
49 | | |
50 | | if (ige_mac_bundle_get_is_app_bundle (bundle)) |
| 48 | if (gtkosx_application_get_bundle_id () != NULL) |
51 | 49 | { |
52 | | locale_dir = g_strdup (ige_mac_bundle_get_localedir (bundle)); |
| 50 | locale_dir = g_build_filename (gtkosx_application_get_resource_path (), "share", "locale", NULL); |
53 | 51 | } |
54 | 52 | else |
55 | 53 | { |
diff --git a/tests/Makefile.am b/tests/Makefile.am
index dfca414..1c6085b 100644
|
|
test_regex_SOURCES = test-regex.c |
78 | 78 | test_regex_LDADD = \ |
79 | 79 | $(top_builddir)/gtksourceview/libgtksourceview-private.la \ |
80 | 80 | $(DEP_LIBS) \ |
| 81 | $(GTK_MAC_LIBS) \ |
81 | 82 | $(TESTS_LIBS) |
82 | 83 | |
83 | 84 | UNIT_TEST_PROGS += test-completion-model |