Ticket #37700: gtk-osx-application-2.0.1.patch

File gtk-osx-application-2.0.1.patch, 7.7 KB (added by macports@…, 12 years ago)

Updated patch, with whitespace fixes, revision set to 0 and gtkosxapplication.h patch removed

  • gtk-osx-application

    diff -urN gtk-osx-application.old/Portfile gtk-osx-application/Portfile
    old new  
    44PortSystem 1.0
    55
    66name            gtk-osx-application
    7 version         1.0.1
    8 revision        2
     7version         2.0.1
     8revision        0
    99set branch      [join [lrange [split ${version} .] 0 1] .]
    1010categories      devel
    1111maintainers     elelay openmaintainer
    1212
    13 description     Mac OS X menu bar integration library for GTK2 quartz
     13description     Mac OS X menu bar integration library for GTK2 quartz
    1414
    1515long_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 \
    1919                dependencies to be built with variants +no_x11 +quartz
    2020
    2121homepage        http://live.gnome.org/GTK%2B/OSX/Integration
     
    2424platforms       darwin
    2525
    2626master_sites    gnome:sources/gtk-mac-integration/${branch}/
    27 distname            gtk-mac-integration-${version}
    28 use_bzip2       yes
     27distname        gtk-mac-integration-${version}
     28use_xz          yes
    2929
    30 checksums       md5     9706d7f55ed82b3d838c48968060b54d \
    31                 sha1    57d7adad87c596242f8413ec40191a5b93aad0f6 \
    32                 rmd160  3ffc7919d56eb284ca30e2416870614b9b9f3561
     30checksums       md5     45a4d217d0a7d6f3d4f974f99ec50c29 \
     31                sha1    9d939a2e4fb6c0ab4fe3d544ac712a152451249a \
     32                rmd160  67b4c9bff4aaab9efcbc4042b452e8a79c038828
    3333
    3434depends_build   port:pkgconfig
    3535
     
    5050
    5151variant python25 conflicts python26 description {Use Python 2.5} {
    5252    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
    5454
    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
    5858    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig/
    59     configure.pre_args          --prefix=${python_prefix}
     59    configure.pre_args          --prefix=${python_prefix}
    6060}
    6161
    6262variant python26 conflicts python25 description {Use Python 2.6} {
    6363    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
    6565
    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
    6969    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig/
    70     configure.pre_args          --prefix=${python_prefix}
     70    configure.pre_args           --prefix=${python_prefix}
    7171}
    7272
    7373variant python27 conflicts python26 conflicts python25 description {Use Python 2.7} {
     
    8585    default_variants +python27
    8686}
    8787
    88 
    89 configure.ccache        no
     88configure.ccache        no
    9089configure.cmd-append    --libdir=${prefix}/lib --includedir=${prefix}/include
    9190
    92 patchfiles-append       patch-bindings-python-gtk_osxapplication-Makefile-in.diff \
    93                         patch-bindings-python-gtkmacintegration-Makefile-in.diff \
    94                         patch-gtkosxapplication.h.diff
     91patchfiles-append       patch-bindings-python-gtkmacintegration-Makefile-in.diff \
     92                        patch-cocoa-menu-item-c.diff
  • files/patch-bindings-python-gtk_osxapplication-Makefile-in.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
  • files/patch-bindings-python-gtkmacintegration-Makefile-in.diff

    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 @@
    44 top_builddir = @top_builddir@
    55 top_srcdir = @top_srcdir@
    66 INCLUDES = -I$(top_srcdir)/src $(PYTHON_INCLUDES)
  • files/patch-cocoa-menu-item-c.diff

    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),
  • files/patch-gtkosxapplication.h.diff

    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__ */