Ticket #52545: patch-keybinder-0.3.1-with-gtk-doc.diff

File patch-keybinder-0.3.1-with-gtk-doc.diff, 6.2 KB (added by dbevans (David B. Evans), 8 years ago)

Proposed patch updated to enable gtk-docs per GNOME library common usage

  • Portfile

     
    55PortGroup           github 1.0
    66PortGroup           gobject_introspection 1.0
    77
    8 github.setup        engla keybinder 0.3.0 v
    9 revision            1
     8github.setup        engla keybinder 0.3.1 v
    109categories          gnome devel
    1110platforms           darwin
    1211maintainers         ryandesign openmaintainer
     
    1514description         library for global keyboard shortcuts in GTK applications
    1615
    1716long_description    ${name} is a library for registering global keyboard \
    18                     shortcuts in GTK-based applications using the X Window \
     17                    shortcuts in GTK2-based applications using the X Window \
    1918                    System.
    2019
    21 master_sites        http://kaizer.se/publicfiles/keybinder/
     20checksums           rmd160  5540b349f193c49413e5e443c40dec2291a715c9 \
     21                    sha256  3c4636965a228902ef70fb8df34e3cc11036b82c2c3be45819d0780f34345b7b
    2222
    23 checksums           rmd160  2f2e25860fa116f7872bbdb2850b75e3e43958cf \
    24                     sha256  42863ca0174d568a8c02c6fb243fee1681823825e8bcb1718c51611d8e9793bb
     23depends_build       port:pkgconfig \
     24                    port:autoconf \
     25                    port:automake \
     26                    port:libtool \
     27                    port:gnome-common \
     28                    port:gtk-doc
    2529
    26 depends_build       port:pkgconfig
    27 
    2830depends_lib         port:gtk2
    2931
    30 patchfiles          patch_python-keybinder_Makefile.in.diff
     32patchfiles          patch-configure.ac.diff \
     33                    patch_python-keybinder_Makefile.am.diff
    3134
     35configure.cmd       ./autogen.sh
     36
    3237configure.args      --disable-silent-rules \
    33                     --disable-gtk-doc \
     38                    --enable-gtk-doc \
    3439                    --disable-lua
    3540
    3641if {${name} eq ${subport}} {
     
    3843    gobject_introspection yes
    3944}
    4045
    41 set python.versions {26 27}
     46set python.versions {27}
    4247 
    4348foreach v ${python.versions} {
    4449    set python.version  ${v}
     
    4954    subport py${python.version}-keybinder {
    5055        depends_lib-append      port:${name} \
    5156                                port:python${python.version} \
     57                                port:py${python.version}-gobject \
    5258                                port:py${python.version}-pygtk
    5359
    5460        configure.args-append   --enable-python \
    55                                 ac_cv_path_PYGTK_CODEGEN=${prefix}/bin/pygtk-codegen-2.0-${python.branch}
     61                                PYGOBJECT_CODEGEN=${python.prefix}/bin/pygtk-codegen-2.0
    5662
    5763        configure.python        ${python.bin}
    5864        configure.pkg_config_path   ${python.prefix}/lib/pkgconfig
  • files/patch-configure.ac.diff

     
     1--- configure.ac.orig   2016-10-12 11:42:01.000000000 -0700
     2+++ configure.ac        2016-10-12 11:47:28.000000000 -0700
     3@@ -21,7 +21,9 @@
     4 AC_SUBST(LT_REVISION)
     5 AC_SUBST(LT_AGE)
     6 
     7-GNOME_COMMON_INIT
     8+dnl long deprecated GNOME_COMMON_INIT removed in gnome-common 3.18.0
     9+dnl https://git.gnome.org/browse/gnome-common/commit/?id=6684e2fa5d5a4c72c9bf116f74688c0b47f350cf
     10+dnl GNOME_COMMON_INIT
     11 
     12 AM_MAINTAINER_MODE
     13 AM_DISABLE_STATIC
     14@@ -115,6 +117,18 @@
     15        dnl ****************************************************************************
     16        have_python="yes"
     17        AM_PATH_PYTHON(2.5)
     18+
     19+       dnl Override standard python locations with MacPorts version specific ones
     20+
     21+       AC_SUBST([PYTHON_PREFIX], [`$PYTHON -c 'import sys; print(sys.prefix);'`])
     22+       AC_SUBST([PYTHON_EXEC_PREFIX], [`$PYTHON -c 'import sys; print(sys.exec_prefix)'`])
     23+
     24+       am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
     25+       am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
     26+
     27+       AC_SUBST([pythondir], [$am_cv_python_pythondir])
     28+       AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
     29+
     30        AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
     31 
     32        PKG_CHECK_MODULES(PYGTK,
  • files/patch_python-keybinder_Makefile.am.diff

     
     1--- python-keybinder/Makefile.am.orig   2015-11-06 07:08:46.000000000 -0800
     2+++ python-keybinder/Makefile.am        2016-10-12 08:08:43.000000000 -0700
     3@@ -6,7 +6,7 @@
     4 _keybinder_LTLIBRARIES = _keybinder.la
     5 _keybinder_la_CPPFLAGS = $(AM_CPPFLAGS) $(X_CFLAGS) $(PYEXTRAFLAGS)
     6 _keybinder_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_keybinder $(X_LDFLAGS)
     7-_keybinder_la_LIBADD = ../libkeybinder/libkeybinder.la $(PYGTK_LIBS)
     8+_keybinder_la_LIBADD = $(LIBDIR)/libkeybinder.dylib $(PYGTK_LIBS)
     9 _keybinder_la_SOURCES = _keybindermodule.c
     10 
     11 nodist__keybinder_la_SOURCES = _keybinder.c
  • files/patch_python-keybinder_Makefile.in.diff

     
    1 --- python-keybinder/Makefile.in.orig   2012-06-17 11:25:51.000000000 -0500
    2 +++ python-keybinder/Makefile.in        2013-12-09 09:34:22.000000000 -0600
    3 @@ -97,7 +97,7 @@
    4         "$(DESTDIR)$(_keybinderdir)"
    5  LTLIBRARIES = $(_keybinder_LTLIBRARIES)
    6  am__DEPENDENCIES_1 =
    7 -_keybinder_la_DEPENDENCIES = ../libkeybinder/libkeybinder.la \
    8 +_keybinder_la_DEPENDENCIES = $(LIBDIR)/libkeybinder.dylib \
    9         $(am__DEPENDENCIES_1)
    10  am__keybinder_la_OBJECTS = _keybinder_la-_keybindermodule.lo
    11  nodist__keybinder_la_OBJECTS = _keybinder_la-_keybinder.lo
    12 @@ -314,7 +314,7 @@
    13  _keybinder_LTLIBRARIES = _keybinder.la
    14  _keybinder_la_CPPFLAGS = $(X_CFLAGS) $(PYEXTRAFLAGS)
    15  _keybinder_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_keybinder $(X_LDFLAGS)
    16 -_keybinder_la_LIBADD = ../libkeybinder/libkeybinder.la $(PYGTK_LIBS)
    17 +_keybinder_la_LIBADD = $(LIBDIR)/libkeybinder.dylib $(PYGTK_LIBS)
    18  _keybinder_la_SOURCES = _keybindermodule.c
    19  nodist__keybinder_la_SOURCES = _keybinder.c
    20  _keybinder_PYTHON = \