[97515] trunk/dports/python

devans at macports.org devans at macports.org
Fri Sep 7 13:25:27 PDT 2012


Revision: 97515
          https://trac.macports.org/changeset/97515
Author:   devans at macports.org
Date:     2012-09-07 13:25:25 -0700 (Fri, 07 Sep 2012)
Log Message:
-----------
py2[67]-osmgpsmap: new ports, Python interfaces for osm-gps-map.

Added Paths:
-----------
    trunk/dports/python/py26-osmgpsmap/
    trunk/dports/python/py26-osmgpsmap/Portfile
    trunk/dports/python/py26-osmgpsmap/files/
    trunk/dports/python/py26-osmgpsmap/files/patch-aclocal.m4.diff
    trunk/dports/python/py26-osmgpsmap/files/patch-configure.ac.diff
    trunk/dports/python/py26-osmgpsmap/files/patch-configure.diff
    trunk/dports/python/py26-osmgpsmap/files/patch-osmgpsmapmodule.c.diff
    trunk/dports/python/py27-osmgpsmap/
    trunk/dports/python/py27-osmgpsmap/Portfile
    trunk/dports/python/py27-osmgpsmap/files/
    trunk/dports/python/py27-osmgpsmap/files/patch-aclocal.m4.diff
    trunk/dports/python/py27-osmgpsmap/files/patch-configure.ac.diff
    trunk/dports/python/py27-osmgpsmap/files/patch-configure.diff
    trunk/dports/python/py27-osmgpsmap/files/patch-osmgpsmapmodule.c.diff

Added: trunk/dports/python/py26-osmgpsmap/Portfile
===================================================================
--- trunk/dports/python/py26-osmgpsmap/Portfile	                        (rev 0)
+++ trunk/dports/python/py26-osmgpsmap/Portfile	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,38 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name            py26-osmgpsmap
+version         0.7.3
+categories      python graphics
+license         GPL-3
+platforms       darwin
+maintainers     devans openmaintainer
+description     Python interfaces for osm-gps-map
+long_description    ${description}
+
+homepage        http://nzjrs.github.com/osm-gps-map/
+master_sites    http://www.johnstowers.co.nz/files/osm-gps-map/
+distname        python-osmgpsmap-${version}
+
+checksums       rmd160  a6e6908977cdb0e340f98c5bda6c41bb16f55f09 \
+                sha256  fcd0339a5922bdbbb9c934aa3c2fb9a2b8d04487d037e36cbf308dc83a02a9cf
+
+depends_build   port:pkgconfig
+
+depends_lib     port:osm-gps-map \
+                port:py26-gtk
+
+patchfiles      patch-osmgpsmapmodule.c.diff
+
+use_autoreconf  yes
+
+configure.python            ${prefix}/bin/python2.6
+set python_framework        ${frameworks_dir}/Python.framework/Versions/2.6
+configure.pkg_config_path   ${python_framework}/lib/pkgconfig
+
+prefix          ${python_framework}
+
+livecheck.type  regex
+livecheck.regex "python-osmgpsmap-(\\d+(?:\\.\\d+)*)${extract.suffix}"


Property changes on: trunk/dports/python/py26-osmgpsmap/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py26-osmgpsmap/files/patch-aclocal.m4.diff
===================================================================
--- trunk/dports/python/py26-osmgpsmap/files/patch-aclocal.m4.diff	                        (rev 0)
+++ trunk/dports/python/py26-osmgpsmap/files/patch-aclocal.m4.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,13 @@
+--- aclocal.m4.orig	2012-03-23 13:13:37.000000000 -0700
++++ aclocal.m4	2012-03-23 13:15:39.000000000 -0700
+@@ -1087,8 +1087,8 @@
+   dnl distinct variables so they can be overridden if need be.  However,
+   dnl general consensus is that you shouldn't need this ability.
+ 
+-  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
+-  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
++  AC_SUBST([PYTHON_PREFIX], ['`$PYTHON -c 'import sys; print sys.prefix;'`'])
++  AC_SUBST([PYTHON_EXEC_PREFIX], ['`$PYTHON -c 'import sys; print sys.exec_prefix;'`'])
+ 
+   dnl At times (like when building shared libraries) you may want
+   dnl to know which OS platform Python thinks this is.

Added: trunk/dports/python/py26-osmgpsmap/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/python/py26-osmgpsmap/files/patch-configure.ac.diff	                        (rev 0)
+++ trunk/dports/python/py26-osmgpsmap/files/patch-configure.ac.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,11 @@
+--- configure.ac.orig	2012-03-23 13:08:56.000000000 -0700
++++ configure.ac	2012-03-23 13:09:45.000000000 -0700
+@@ -28,6 +28,8 @@
+ 		-Wmissing-prototypes -Wnested-externs -Wpointer-arith"
+ fi
+ 
++PYTHON_PREFIX=`$PYTHON -c 'import sys; print sys.prefix;'`
++PYTHON_EXEC_PREFIX=`$PYTHON -c 'import sys; print sys.exec_prefix;'`
+ 
+ AM_PATH_PYTHON()
+ AM_CHECK_PYTHON_HEADERS(,AC_MSG_ERROR([install python-devel]))

Added: trunk/dports/python/py26-osmgpsmap/files/patch-configure.diff
===================================================================
--- trunk/dports/python/py26-osmgpsmap/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/python/py26-osmgpsmap/files/patch-configure.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,14 @@
+--- configure.orig	2011-11-28 02:05:56.000000000 -0800
++++ configure	2011-11-28 15:07:06.000000000 -0800
+@@ -13556,9 +13556,9 @@
+ 
+ 
+ 
+-  PYTHON_PREFIX='${prefix}'
++  PYTHON_PREFIX=`$PYTHON -c 'import sys; print sys.prefix;'`
+ 
+-  PYTHON_EXEC_PREFIX='${exec_prefix}'
++  PYTHON_EXEC_PREFIX=`$PYTHON -c 'import sys; print sys.exec_prefix;'`
+ 
+ 
+ 

Added: trunk/dports/python/py26-osmgpsmap/files/patch-osmgpsmapmodule.c.diff
===================================================================
--- trunk/dports/python/py26-osmgpsmap/files/patch-osmgpsmapmodule.c.diff	                        (rev 0)
+++ trunk/dports/python/py26-osmgpsmap/files/patch-osmgpsmapmodule.c.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,11 @@
+--- osmgpsmapmodule.c.orig	2012-03-23 13:31:26.000000000 -0700
++++ osmgpsmapmodule.c	2012-03-23 13:32:14.000000000 -0700
+@@ -16,6 +16,8 @@
+  * along with this program; if not, see <http://www.gnu.org/licenses/>.
+  */
+ 
++#define NO_IMPORT_PYGOBJECT
++
+ #include <pygobject.h>
+ #include <osm-gps-map.h>
+ #include <osm-gps-map-osd.h>

Added: trunk/dports/python/py27-osmgpsmap/Portfile
===================================================================
--- trunk/dports/python/py27-osmgpsmap/Portfile	                        (rev 0)
+++ trunk/dports/python/py27-osmgpsmap/Portfile	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,38 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name            py27-osmgpsmap
+version         0.7.3
+categories      python graphics
+license         GPL-3
+platforms       darwin
+maintainers     devans openmaintainer
+description     Python interfaces for osm-gps-map
+long_description    ${description}
+
+homepage        http://nzjrs.github.com/osm-gps-map/
+master_sites    http://www.johnstowers.co.nz/files/osm-gps-map/
+distname        python-osmgpsmap-${version}
+
+checksums       rmd160  a6e6908977cdb0e340f98c5bda6c41bb16f55f09 \
+                sha256  fcd0339a5922bdbbb9c934aa3c2fb9a2b8d04487d037e36cbf308dc83a02a9cf
+
+depends_build   port:pkgconfig
+
+depends_lib     port:osm-gps-map \
+                port:py27-gtk
+
+patchfiles      patch-osmgpsmapmodule.c.diff
+
+use_autoreconf  yes
+
+configure.python            ${prefix}/bin/python2.7
+set python_framework        ${frameworks_dir}/Python.framework/Versions/2.7
+configure.pkg_config_path   ${python_framework}/lib/pkgconfig
+
+prefix          ${python_framework}
+
+livecheck.type  regex
+livecheck.regex "python-osmgpsmap-(\\d+(?:\\.\\d+)*)${extract.suffix}"


Property changes on: trunk/dports/python/py27-osmgpsmap/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py27-osmgpsmap/files/patch-aclocal.m4.diff
===================================================================
--- trunk/dports/python/py27-osmgpsmap/files/patch-aclocal.m4.diff	                        (rev 0)
+++ trunk/dports/python/py27-osmgpsmap/files/patch-aclocal.m4.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,13 @@
+--- aclocal.m4.orig	2012-03-23 13:13:37.000000000 -0700
++++ aclocal.m4	2012-03-23 13:15:39.000000000 -0700
+@@ -1087,8 +1087,8 @@
+   dnl distinct variables so they can be overridden if need be.  However,
+   dnl general consensus is that you shouldn't need this ability.
+ 
+-  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
+-  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
++  AC_SUBST([PYTHON_PREFIX], ['`$PYTHON -c 'import sys; print sys.prefix;'`'])
++  AC_SUBST([PYTHON_EXEC_PREFIX], ['`$PYTHON -c 'import sys; print sys.exec_prefix;'`'])
+ 
+   dnl At times (like when building shared libraries) you may want
+   dnl to know which OS platform Python thinks this is.

Added: trunk/dports/python/py27-osmgpsmap/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/python/py27-osmgpsmap/files/patch-configure.ac.diff	                        (rev 0)
+++ trunk/dports/python/py27-osmgpsmap/files/patch-configure.ac.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,11 @@
+--- configure.ac.orig	2012-03-23 13:08:56.000000000 -0700
++++ configure.ac	2012-03-23 13:09:45.000000000 -0700
+@@ -28,6 +28,8 @@
+ 		-Wmissing-prototypes -Wnested-externs -Wpointer-arith"
+ fi
+ 
++PYTHON_PREFIX=`$PYTHON -c 'import sys; print sys.prefix;'`
++PYTHON_EXEC_PREFIX=`$PYTHON -c 'import sys; print sys.exec_prefix;'`
+ 
+ AM_PATH_PYTHON()
+ AM_CHECK_PYTHON_HEADERS(,AC_MSG_ERROR([install python-devel]))

Added: trunk/dports/python/py27-osmgpsmap/files/patch-configure.diff
===================================================================
--- trunk/dports/python/py27-osmgpsmap/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/python/py27-osmgpsmap/files/patch-configure.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,14 @@
+--- configure.orig	2011-11-28 02:05:56.000000000 -0800
++++ configure	2011-11-28 15:07:06.000000000 -0800
+@@ -13556,9 +13556,9 @@
+ 
+ 
+ 
+-  PYTHON_PREFIX='${prefix}'
++  PYTHON_PREFIX=`$PYTHON -c 'import sys; print sys.prefix;'`
+ 
+-  PYTHON_EXEC_PREFIX='${exec_prefix}'
++  PYTHON_EXEC_PREFIX=`$PYTHON -c 'import sys; print sys.exec_prefix;'`
+ 
+ 
+ 

Added: trunk/dports/python/py27-osmgpsmap/files/patch-osmgpsmapmodule.c.diff
===================================================================
--- trunk/dports/python/py27-osmgpsmap/files/patch-osmgpsmapmodule.c.diff	                        (rev 0)
+++ trunk/dports/python/py27-osmgpsmap/files/patch-osmgpsmapmodule.c.diff	2012-09-07 20:25:25 UTC (rev 97515)
@@ -0,0 +1,11 @@
+--- osmgpsmapmodule.c.orig	2012-03-23 13:31:26.000000000 -0700
++++ osmgpsmapmodule.c	2012-03-23 13:32:14.000000000 -0700
+@@ -16,6 +16,8 @@
+  * along with this program; if not, see <http://www.gnu.org/licenses/>.
+  */
+ 
++#define NO_IMPORT_PYGOBJECT
++
+ #include <pygobject.h>
+ #include <osm-gps-map.h>
+ #include <osm-gps-map-osd.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120907/fedafeae/attachment.html>


More information about the macports-changes mailing list