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) |
---|
-
Portfile
5 5 PortGroup github 1.0 6 6 PortGroup gobject_introspection 1.0 7 7 8 github.setup engla keybinder 0.3.0 v 9 revision 1 8 github.setup engla keybinder 0.3.1 v 10 9 categories gnome devel 11 10 platforms darwin 12 11 maintainers ryandesign openmaintainer … … 15 14 description library for global keyboard shortcuts in GTK applications 16 15 17 16 long_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 \ 19 18 System. 20 19 21 master_sites http://kaizer.se/publicfiles/keybinder/ 20 checksums rmd160 5540b349f193c49413e5e443c40dec2291a715c9 \ 21 sha256 3c4636965a228902ef70fb8df34e3cc11036b82c2c3be45819d0780f34345b7b 22 22 23 checksums rmd160 2f2e25860fa116f7872bbdb2850b75e3e43958cf \ 24 sha256 42863ca0174d568a8c02c6fb243fee1681823825e8bcb1718c51611d8e9793bb 23 depends_build port:pkgconfig \ 24 port:autoconf \ 25 port:automake \ 26 port:libtool \ 27 port:gnome-common \ 28 port:gtk-doc 25 29 26 depends_build port:pkgconfig27 28 30 depends_lib port:gtk2 29 31 30 patchfiles patch_python-keybinder_Makefile.in.diff 32 patchfiles patch-configure.ac.diff \ 33 patch_python-keybinder_Makefile.am.diff 31 34 35 configure.cmd ./autogen.sh 36 32 37 configure.args --disable-silent-rules \ 33 -- disable-gtk-doc \38 --enable-gtk-doc \ 34 39 --disable-lua 35 40 36 41 if {${name} eq ${subport}} { … … 38 43 gobject_introspection yes 39 44 } 40 45 41 set python.versions {2 6 27}46 set python.versions {27} 42 47 43 48 foreach v ${python.versions} { 44 49 set python.version ${v} … … 49 54 subport py${python.version}-keybinder { 50 55 depends_lib-append port:${name} \ 51 56 port:python${python.version} \ 57 port:py${python.version}-gobject \ 52 58 port:py${python.version}-pygtk 53 59 54 60 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 56 62 57 63 configure.python ${python.bin} 58 64 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 -05002 +++ python-keybinder/Makefile.in 2013-12-09 09:34:22.000000000 -06003 @@ -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.lo11 nodist__keybinder_la_OBJECTS = _keybinder_la-_keybinder.lo12 @@ -314,7 +314,7 @@13 _keybinder_LTLIBRARIES = _keybinder.la14 _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.c19 nodist__keybinder_la_SOURCES = _keybinder.c20 _keybinder_PYTHON = \