[101593] trunk/dports/python/py-pyproj

stromnov at macports.org stromnov at macports.org
Mon Jan 14 03:48:31 PST 2013


Revision: 101593
          https://trac.macports.org/changeset/101593
Author:   stromnov at macports.org
Date:     2013-01-14 03:48:31 -0800 (Mon, 14 Jan 2013)
Log Message:
-----------
py-pyproj: using the right compiler (where applicable)

Modified Paths:
--------------
    trunk/dports/python/py-pyproj/Portfile

Added Paths:
-----------
    trunk/dports/python/py-pyproj/files/
    trunk/dports/python/py-pyproj/files/patch-setup.py.diff

Modified: trunk/dports/python/py-pyproj/Portfile
===================================================================
--- trunk/dports/python/py-pyproj/Portfile	2013-01-14 11:23:56 UTC (rev 101592)
+++ trunk/dports/python/py-pyproj/Portfile	2013-01-14 11:48:31 UTC (rev 101593)
@@ -6,7 +6,7 @@
 
 name                py-pyproj
 version             1.9.3
-revision            0
+revision            1
 categories-append   devel
 license             MIT
 platforms           darwin
@@ -32,6 +32,11 @@
 
 if {$subport != $name} {
     depends_lib-append  port:py${python.version}-distribute
+
+    if {$subport != "py33-pyproj"} {
+        patchfiles-append   patch-setup.py.diff
+    }
+
     post-destroot {
         xinstall -m 644 -W ${worksrcpath} \
             README PKG-INFO \

Added: trunk/dports/python/py-pyproj/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-pyproj/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-pyproj/files/patch-setup.py.diff	2013-01-14 11:48:31 UTC (rev 101593)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2013-01-14 15:15:28.000000000 +0400
++++ setup.py	2013-01-14 15:15:38.000000000 +0400
+@@ -9,7 +9,7 @@
+ pathout = os.path.join('lib',os.path.join('pyproj','data'))
+ if sys.argv[1] != 'sdist':
+     cc = ccompiler.new_compiler()
+-    #sysconfig.customize_compiler(cc) # doesn't work in python 3.3
++    sysconfig.customize_compiler(cc) # doesn't work in python 3.3
+     cc.set_include_dirs(['src'])
+     objects = cc.compile(['nad2bin.c', 'src/pj_malloc.c'])
+     execname = 'nad2bin'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130114/7dc9d965/attachment.html>


More information about the macports-changes mailing list