[99956] trunk/dports/gnome/keybinder

ryandesign at macports.org ryandesign at macports.org
Thu Nov 22 00:46:14 PST 2012


Revision: 99956
          https://trac.macports.org/changeset/99956
Author:   ryandesign at macports.org
Date:     2012-11-22 00:46:13 -0800 (Thu, 22 Nov 2012)
Log Message:
-----------
keybinder: add py-keybinder subports (#37092)

Modified Paths:
--------------
    trunk/dports/gnome/keybinder/Portfile

Added Paths:
-----------
    trunk/dports/gnome/keybinder/files/
    trunk/dports/gnome/keybinder/files/patch_python-keybinder_Makefile.in.diff

Modified: trunk/dports/gnome/keybinder/Portfile
===================================================================
--- trunk/dports/gnome/keybinder/Portfile	2012-11-22 08:25:59 UTC (rev 99955)
+++ trunk/dports/gnome/keybinder/Portfile	2012-11-22 08:46:13 UTC (rev 99956)
@@ -26,9 +26,36 @@
 depends_lib         port:gtk2 \
                     port:gobject-introspection
 
+patchfiles          patch_python-keybinder_Makefile.in.diff
+
 configure.args      --disable-silent-rules \
-                    --disable-python \
+                    --disable-gtk-doc \
                     --disable-lua
 
-# gobject-introspection uses $CC from env
-build.args-append   CC="${configure.cc} ${configure.cc_archflags}"
+if {${name} == ${subport}} {
+    configure.args-append       --disable-python
+    
+    # gobject-introspection uses $CC from env
+    build.args-append           CC="${configure.cc} ${configure.cc_archflags}"
+}
+
+set python.versions {25 26 27}
+
+foreach v ${python.versions} {
+    set python.version  ${v}
+    set python.branch   [string range ${python.version} 0 end-1].[string index ${python.version} end]
+    set python.bin      ${prefix}/bin/python${python.branch}
+    
+    subport py${python.version}-keybinder {
+        depends_lib-append      port:${name} \
+                                port:python${python.version} \
+                                port:py${python.version}-gtk
+        
+        configure.args-append   --enable-python \
+                                --disable-introspection
+        
+        configure.python        ${python.bin}
+        
+        build.dir               ${worksrcpath}/python-keybinder
+    }
+}

Added: trunk/dports/gnome/keybinder/files/patch_python-keybinder_Makefile.in.diff
===================================================================
--- trunk/dports/gnome/keybinder/files/patch_python-keybinder_Makefile.in.diff	                        (rev 0)
+++ trunk/dports/gnome/keybinder/files/patch_python-keybinder_Makefile.in.diff	2012-11-22 08:46:13 UTC (rev 99956)
@@ -0,0 +1,20 @@
+--- python-keybinder/Makefile.in.orig	2012-06-17 11:25:51.000000000 -0500
++++ python-keybinder/Makefile.in	2012-11-22 02:20:15.000000000 -0600
+@@ -97,7 +97,7 @@
+ 	"$(DESTDIR)$(_keybinderdir)"
+ LTLIBRARIES = $(_keybinder_LTLIBRARIES)
+ am__DEPENDENCIES_1 =
+-_keybinder_la_DEPENDENCIES = ../libkeybinder/libkeybinder.la \
++_keybinder_la_DEPENDENCIES = $(LIBDIR)/libkeybinder.la \
+ 	$(am__DEPENDENCIES_1)
+ am__keybinder_la_OBJECTS = _keybinder_la-_keybindermodule.lo
+ nodist__keybinder_la_OBJECTS = _keybinder_la-_keybinder.lo
+@@ -314,7 +314,7 @@
+ _keybinder_LTLIBRARIES = _keybinder.la
+ _keybinder_la_CPPFLAGS = $(X_CFLAGS) $(PYEXTRAFLAGS)
+ _keybinder_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_keybinder $(X_LDFLAGS)
+-_keybinder_la_LIBADD = ../libkeybinder/libkeybinder.la $(PYGTK_LIBS)
++_keybinder_la_LIBADD = $(LIBDIR)/libkeybinder.la $(PYGTK_LIBS)
+ _keybinder_la_SOURCES = _keybindermodule.c
+ nodist__keybinder_la_SOURCES = _keybinder.c
+ _keybinder_PYTHON = \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121122/dcf114da/attachment.html>


More information about the macports-changes mailing list