diff -urN gtk-osx-application.old/Portfile gtk-osx-application/Portfile
old
|
new
|
|
4 | 4 | PortSystem 1.0 |
5 | 5 | |
6 | 6 | name gtk-osx-application |
7 | | version 1.0.1 |
8 | | revision 2 |
| 7 | version 2.0.1 |
| 8 | revision 0 |
9 | 9 | set branch [join [lrange [split ${version} .] 0 1] .] |
10 | 10 | categories devel |
11 | 11 | maintainers elelay openmaintainer |
12 | 12 | |
13 | | description Mac OS X menu bar integration library for GTK2 quartz |
| 13 | description Mac OS X menu bar integration library for GTK2 quartz |
14 | 14 | |
15 | 15 | long_description \ |
16 | | A simple library whose purpose is to \ |
17 | | allow GTK2 quartz applications to integrate with \ |
18 | | the Mac OS X menu bar. Requires gtk2 and its \ |
| 16 | A simple library whose purpose is to \ |
| 17 | allow GTK2 quartz applications to integrate with \ |
| 18 | the Mac OS X menu bar. Requires gtk2 and its \ |
19 | 19 | dependencies to be built with variants +no_x11 +quartz |
20 | 20 | |
21 | 21 | homepage http://live.gnome.org/GTK%2B/OSX/Integration |
… |
… |
|
24 | 24 | platforms darwin |
25 | 25 | |
26 | 26 | master_sites gnome:sources/gtk-mac-integration/${branch}/ |
27 | | distname gtk-mac-integration-${version} |
28 | | use_bzip2 yes |
| 27 | distname gtk-mac-integration-${version} |
| 28 | use_xz yes |
29 | 29 | |
30 | | checksums md5 9706d7f55ed82b3d838c48968060b54d \ |
31 | | sha1 57d7adad87c596242f8413ec40191a5b93aad0f6 \ |
32 | | rmd160 3ffc7919d56eb284ca30e2416870614b9b9f3561 |
| 30 | checksums md5 45a4d217d0a7d6f3d4f974f99ec50c29 \ |
| 31 | sha1 9d939a2e4fb6c0ab4fe3d544ac712a152451249a \ |
| 32 | rmd160 67b4c9bff4aaab9efcbc4042b452e8a79c038828 |
33 | 33 | |
34 | 34 | depends_build port:pkgconfig |
35 | 35 | |
… |
… |
|
50 | 50 | |
51 | 51 | variant python25 conflicts python26 description {Use Python 2.5} { |
52 | 52 | depends_lib-append port:py25-pygtk |
53 | | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.5 |
| 53 | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.5 |
54 | 54 | |
55 | | configure.python ${python_prefix}/bin/python2.5 |
56 | | configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0 |
57 | | configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0 |
| 55 | configure.python ${python_prefix}/bin/python2.5 |
| 56 | configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0 |
| 57 | configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0 |
58 | 58 | configure.pkg_config_path ${python_prefix}/lib/pkgconfig/ |
59 | | configure.pre_args --prefix=${python_prefix} |
| 59 | configure.pre_args --prefix=${python_prefix} |
60 | 60 | } |
61 | 61 | |
62 | 62 | variant python26 conflicts python25 description {Use Python 2.6} { |
63 | 63 | depends_lib-append port:py26-pygtk |
64 | | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 |
| 64 | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 |
65 | 65 | |
66 | | configure.python ${python_prefix}/bin/python2.6 |
67 | | configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0 |
68 | | configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0 |
| 66 | configure.python ${python_prefix}/bin/python2.6 |
| 67 | configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0 |
| 68 | configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0 |
69 | 69 | configure.pkg_config_path ${python_prefix}/lib/pkgconfig/ |
70 | | configure.pre_args --prefix=${python_prefix} |
| 70 | configure.pre_args --prefix=${python_prefix} |
71 | 71 | } |
72 | 72 | |
73 | 73 | variant python27 conflicts python26 conflicts python25 description {Use Python 2.7} { |
… |
… |
|
85 | 85 | default_variants +python27 |
86 | 86 | } |
87 | 87 | |
88 | | |
89 | | configure.ccache no |
| 88 | configure.ccache no |
90 | 89 | configure.cmd-append --libdir=${prefix}/lib --includedir=${prefix}/include |
91 | 90 | |
92 | | patchfiles-append patch-bindings-python-gtk_osxapplication-Makefile-in.diff \ |
93 | | patch-bindings-python-gtkmacintegration-Makefile-in.diff \ |
94 | | patch-gtkosxapplication.h.diff |
| 91 | patchfiles-append patch-bindings-python-gtkmacintegration-Makefile-in.diff \ |
| 92 | patch-cocoa-menu-item-c.diff |
diff -urN gtk-osx-application.old/files/patch-bindings-python-gtk_osxapplication-Makefile-in.diff gtk-osx-application/files/patch-bindings-python-gtk_osxapplication-Makefile-in.diff
old
|
new
|
|
1 | | --- bindings/python/gtk_osxapplication/Makefile.in.old 2010-07-19 19:32:49.000000000 +0200 |
2 | | +++ bindings/python/gtk_osxapplication/Makefile.in 2010-07-19 19:33:32.000000000 +0200 |
3 | | @@ -232,7 +232,7 @@ |
4 | | top_builddir = @top_builddir@ |
5 | | top_srcdir = @top_srcdir@ |
6 | | INCLUDES = -I$(top_srcdir)/src $(PYTHON_INCLUDES) |
7 | | -gtk_osxapplicationdir = $(libdir)/python$(PYTHON_VERSION)/site-packages/gtk_osxapplication |
8 | | +gtk_osxapplicationdir = @pythondir@/gtk_osxapplication |
9 | | gtk_osxapplication_PYTHON = __init__.py |
10 | | gtk_osxapplication_LTLIBRARIES = _gtk_osxapplication.la |
11 | | headers = $(top_srcdir)/src/gtkosxapplication.h |
diff -urN gtk-osx-application.old/files/patch-bindings-python-gtkmacintegration-Makefile-in.diff gtk-osx-application/files/patch-bindings-python-gtkmacintegration-Makefile-in.diff
old
|
new
|
|
1 | | --- bindings/python/gtkmacintegration/Makefile.in.old 2010-07-19 19:42:18.000000000 +0200 |
2 | | +++ bindings/python/gtkmacintegration/Makefile.in 2010-07-19 19:43:04.000000000 +0200 |
3 | | @@ -232,7 +232,7 @@ |
| 1 | --- bindings/python/gtkmacintegration/Makefile.in.old 2013-01-19 17:30:25.000000000 +0100 |
| 2 | +++ bindings/python/gtkmacintegration/Makefile.in 2013-01-19 17:31:37.000000000 +0100 |
| 3 | @@ -252,7 +252,7 @@ |
4 | 4 | top_builddir = @top_builddir@ |
5 | 5 | top_srcdir = @top_srcdir@ |
6 | 6 | INCLUDES = -I$(top_srcdir)/src $(PYTHON_INCLUDES) |
diff -urN gtk-osx-application.old/files/patch-cocoa-menu-item-c.diff gtk-osx-application/files/patch-cocoa-menu-item-c.diff
old
|
new
|
|
| 1 | --- src/cocoa_menu_item.c.old 2013-01-19 17:50:18.000000000 +0100 |
| 2 | +++ src/cocoa_menu_item.c 2013-01-19 17:50:49.000000000 +0100 |
| 3 | @@ -524,7 +524,7 @@ |
| 4 | DEBUG ("\ta separator\n"); |
| 5 | } else { |
| 6 | const gchar* text = get_menu_label_text (menu_item, &label); |
| 7 | - NSString *title = [NSString stringWithUTF8String:(text ? text : @"")]; |
| 8 | + NSString *title = [NSString stringWithUTF8String:(text ? text : "")]; |
| 9 | |
| 10 | GClosure *menu_action = |
| 11 | g_cclosure_new_object_swap(G_CALLBACK(gtk_menu_item_activate), |
diff -urN gtk-osx-application.old/files/patch-gtkosxapplication.h.diff gtk-osx-application/files/patch-gtkosxapplication.h.diff
old
|
new
|
|
1 | | --- src/gtkosxapplication.h.orig 2011-11-06 01:15:07.000000000 -0400 |
2 | | +++ src/gtkosxapplication.h 2011-11-06 01:15:07.000000000 -0400 |
3 | | @@ -143,5 +143,6 @@ |
4 | | gchar *quartz_application_get_bundle_id(void); |
5 | | gchar *quartz_application_get_bundle_info(const gchar *key); |
6 | | |
7 | | +G_END_DECLS |
8 | | |
9 | | #endif /* __GTK_OSX_APPLICATION_H__ */ |